@aws-sdk/client-iot-data-plane 3.721.0 → 3.726.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -143,7 +143,14 @@ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions
143
143
  }, "resolveRuntimeExtensions");
144
144
 
145
145
  // src/IoTDataPlaneClient.ts
146
- var _IoTDataPlaneClient = class _IoTDataPlaneClient extends import_smithy_client.Client {
146
+ var IoTDataPlaneClient = class extends import_smithy_client.Client {
147
+ static {
148
+ __name(this, "IoTDataPlaneClient");
149
+ }
150
+ /**
151
+ * The resolved configuration of IoTDataPlaneClient class. This is resolved and normalized from the {@link IoTDataPlaneClientConfig | constructor configuration interface}.
152
+ */
153
+ config;
147
154
  constructor(...[configuration]) {
148
155
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
149
156
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -153,7 +160,7 @@ var _IoTDataPlaneClient = class _IoTDataPlaneClient extends import_smithy_client
153
160
  const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
154
161
  const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5);
155
162
  const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6);
156
- const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
163
+ const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
157
164
  super(_config_8);
158
165
  this.config = _config_8;
159
166
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
@@ -181,8 +188,6 @@ var _IoTDataPlaneClient = class _IoTDataPlaneClient extends import_smithy_client
181
188
  super.destroy();
182
189
  }
183
190
  };
184
- __name(_IoTDataPlaneClient, "IoTDataPlaneClient");
185
- var IoTDataPlaneClient = _IoTDataPlaneClient;
186
191
 
187
192
  // src/IoTDataPlane.ts
188
193
 
@@ -199,7 +204,10 @@ var import_core2 = require("@aws-sdk/core");
199
204
 
200
205
  // src/models/IoTDataPlaneServiceException.ts
201
206
 
202
- var _IoTDataPlaneServiceException = class _IoTDataPlaneServiceException extends import_smithy_client.ServiceException {
207
+ var IoTDataPlaneServiceException = class _IoTDataPlaneServiceException extends import_smithy_client.ServiceException {
208
+ static {
209
+ __name(this, "IoTDataPlaneServiceException");
210
+ }
203
211
  /**
204
212
  * @internal
205
213
  */
@@ -208,11 +216,14 @@ var _IoTDataPlaneServiceException = class _IoTDataPlaneServiceException extends
208
216
  Object.setPrototypeOf(this, _IoTDataPlaneServiceException.prototype);
209
217
  }
210
218
  };
211
- __name(_IoTDataPlaneServiceException, "IoTDataPlaneServiceException");
212
- var IoTDataPlaneServiceException = _IoTDataPlaneServiceException;
213
219
 
214
220
  // src/models/models_0.ts
215
- var _ConflictException = class _ConflictException extends IoTDataPlaneServiceException {
221
+ var ConflictException = class _ConflictException extends IoTDataPlaneServiceException {
222
+ static {
223
+ __name(this, "ConflictException");
224
+ }
225
+ name = "ConflictException";
226
+ $fault = "client";
216
227
  /**
217
228
  * @internal
218
229
  */
@@ -222,14 +233,15 @@ var _ConflictException = class _ConflictException extends IoTDataPlaneServiceExc
222
233
  $fault: "client",
223
234
  ...opts
224
235
  });
225
- this.name = "ConflictException";
226
- this.$fault = "client";
227
236
  Object.setPrototypeOf(this, _ConflictException.prototype);
228
237
  }
229
238
  };
230
- __name(_ConflictException, "ConflictException");
231
- var ConflictException = _ConflictException;
232
- var _InternalFailureException = class _InternalFailureException extends IoTDataPlaneServiceException {
239
+ var InternalFailureException = class _InternalFailureException extends IoTDataPlaneServiceException {
240
+ static {
241
+ __name(this, "InternalFailureException");
242
+ }
243
+ name = "InternalFailureException";
244
+ $fault = "server";
233
245
  /**
234
246
  * @internal
235
247
  */
@@ -239,14 +251,15 @@ var _InternalFailureException = class _InternalFailureException extends IoTDataP
239
251
  $fault: "server",
240
252
  ...opts
241
253
  });
242
- this.name = "InternalFailureException";
243
- this.$fault = "server";
244
254
  Object.setPrototypeOf(this, _InternalFailureException.prototype);
245
255
  }
246
256
  };
247
- __name(_InternalFailureException, "InternalFailureException");
248
- var InternalFailureException = _InternalFailureException;
249
- var _InvalidRequestException = class _InvalidRequestException extends IoTDataPlaneServiceException {
257
+ var InvalidRequestException = class _InvalidRequestException extends IoTDataPlaneServiceException {
258
+ static {
259
+ __name(this, "InvalidRequestException");
260
+ }
261
+ name = "InvalidRequestException";
262
+ $fault = "client";
250
263
  /**
251
264
  * @internal
252
265
  */
@@ -256,14 +269,15 @@ var _InvalidRequestException = class _InvalidRequestException extends IoTDataPla
256
269
  $fault: "client",
257
270
  ...opts
258
271
  });
259
- this.name = "InvalidRequestException";
260
- this.$fault = "client";
261
272
  Object.setPrototypeOf(this, _InvalidRequestException.prototype);
262
273
  }
263
274
  };
264
- __name(_InvalidRequestException, "InvalidRequestException");
265
- var InvalidRequestException = _InvalidRequestException;
266
- var _MethodNotAllowedException = class _MethodNotAllowedException extends IoTDataPlaneServiceException {
275
+ var MethodNotAllowedException = class _MethodNotAllowedException extends IoTDataPlaneServiceException {
276
+ static {
277
+ __name(this, "MethodNotAllowedException");
278
+ }
279
+ name = "MethodNotAllowedException";
280
+ $fault = "client";
267
281
  /**
268
282
  * @internal
269
283
  */
@@ -273,14 +287,15 @@ var _MethodNotAllowedException = class _MethodNotAllowedException extends IoTDat
273
287
  $fault: "client",
274
288
  ...opts
275
289
  });
276
- this.name = "MethodNotAllowedException";
277
- this.$fault = "client";
278
290
  Object.setPrototypeOf(this, _MethodNotAllowedException.prototype);
279
291
  }
280
292
  };
281
- __name(_MethodNotAllowedException, "MethodNotAllowedException");
282
- var MethodNotAllowedException = _MethodNotAllowedException;
283
- var _ResourceNotFoundException = class _ResourceNotFoundException extends IoTDataPlaneServiceException {
293
+ var ResourceNotFoundException = class _ResourceNotFoundException extends IoTDataPlaneServiceException {
294
+ static {
295
+ __name(this, "ResourceNotFoundException");
296
+ }
297
+ name = "ResourceNotFoundException";
298
+ $fault = "client";
284
299
  /**
285
300
  * @internal
286
301
  */
@@ -290,14 +305,15 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends IoTDat
290
305
  $fault: "client",
291
306
  ...opts
292
307
  });
293
- this.name = "ResourceNotFoundException";
294
- this.$fault = "client";
295
308
  Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
296
309
  }
297
310
  };
298
- __name(_ResourceNotFoundException, "ResourceNotFoundException");
299
- var ResourceNotFoundException = _ResourceNotFoundException;
300
- var _ServiceUnavailableException = class _ServiceUnavailableException extends IoTDataPlaneServiceException {
311
+ var ServiceUnavailableException = class _ServiceUnavailableException extends IoTDataPlaneServiceException {
312
+ static {
313
+ __name(this, "ServiceUnavailableException");
314
+ }
315
+ name = "ServiceUnavailableException";
316
+ $fault = "server";
301
317
  /**
302
318
  * @internal
303
319
  */
@@ -307,14 +323,15 @@ var _ServiceUnavailableException = class _ServiceUnavailableException extends Io
307
323
  $fault: "server",
308
324
  ...opts
309
325
  });
310
- this.name = "ServiceUnavailableException";
311
- this.$fault = "server";
312
326
  Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
313
327
  }
314
328
  };
315
- __name(_ServiceUnavailableException, "ServiceUnavailableException");
316
- var ServiceUnavailableException = _ServiceUnavailableException;
317
- var _ThrottlingException = class _ThrottlingException extends IoTDataPlaneServiceException {
329
+ var ThrottlingException = class _ThrottlingException extends IoTDataPlaneServiceException {
330
+ static {
331
+ __name(this, "ThrottlingException");
332
+ }
333
+ name = "ThrottlingException";
334
+ $fault = "client";
318
335
  /**
319
336
  * @internal
320
337
  */
@@ -324,14 +341,15 @@ var _ThrottlingException = class _ThrottlingException extends IoTDataPlaneServic
324
341
  $fault: "client",
325
342
  ...opts
326
343
  });
327
- this.name = "ThrottlingException";
328
- this.$fault = "client";
329
344
  Object.setPrototypeOf(this, _ThrottlingException.prototype);
330
345
  }
331
346
  };
332
- __name(_ThrottlingException, "ThrottlingException");
333
- var ThrottlingException = _ThrottlingException;
334
- var _UnauthorizedException = class _UnauthorizedException extends IoTDataPlaneServiceException {
347
+ var UnauthorizedException = class _UnauthorizedException extends IoTDataPlaneServiceException {
348
+ static {
349
+ __name(this, "UnauthorizedException");
350
+ }
351
+ name = "UnauthorizedException";
352
+ $fault = "client";
335
353
  /**
336
354
  * @internal
337
355
  */
@@ -341,14 +359,15 @@ var _UnauthorizedException = class _UnauthorizedException extends IoTDataPlaneSe
341
359
  $fault: "client",
342
360
  ...opts
343
361
  });
344
- this.name = "UnauthorizedException";
345
- this.$fault = "client";
346
362
  Object.setPrototypeOf(this, _UnauthorizedException.prototype);
347
363
  }
348
364
  };
349
- __name(_UnauthorizedException, "UnauthorizedException");
350
- var UnauthorizedException = _UnauthorizedException;
351
- var _UnsupportedDocumentEncodingException = class _UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException {
365
+ var UnsupportedDocumentEncodingException = class _UnsupportedDocumentEncodingException extends IoTDataPlaneServiceException {
366
+ static {
367
+ __name(this, "UnsupportedDocumentEncodingException");
368
+ }
369
+ name = "UnsupportedDocumentEncodingException";
370
+ $fault = "client";
352
371
  /**
353
372
  * @internal
354
373
  */
@@ -358,18 +377,19 @@ var _UnsupportedDocumentEncodingException = class _UnsupportedDocumentEncodingEx
358
377
  $fault: "client",
359
378
  ...opts
360
379
  });
361
- this.name = "UnsupportedDocumentEncodingException";
362
- this.$fault = "client";
363
380
  Object.setPrototypeOf(this, _UnsupportedDocumentEncodingException.prototype);
364
381
  }
365
382
  };
366
- __name(_UnsupportedDocumentEncodingException, "UnsupportedDocumentEncodingException");
367
- var UnsupportedDocumentEncodingException = _UnsupportedDocumentEncodingException;
368
383
  var PayloadFormatIndicator = {
369
384
  UNSPECIFIED_BYTES: "UNSPECIFIED_BYTES",
370
385
  UTF8_DATA: "UTF8_DATA"
371
386
  };
372
- var _RequestEntityTooLargeException = class _RequestEntityTooLargeException extends IoTDataPlaneServiceException {
387
+ var RequestEntityTooLargeException = class _RequestEntityTooLargeException extends IoTDataPlaneServiceException {
388
+ static {
389
+ __name(this, "RequestEntityTooLargeException");
390
+ }
391
+ name = "RequestEntityTooLargeException";
392
+ $fault = "client";
373
393
  /**
374
394
  * @internal
375
395
  */
@@ -379,13 +399,9 @@ var _RequestEntityTooLargeException = class _RequestEntityTooLargeException exte
379
399
  $fault: "client",
380
400
  ...opts
381
401
  });
382
- this.name = "RequestEntityTooLargeException";
383
- this.$fault = "client";
384
402
  Object.setPrototypeOf(this, _RequestEntityTooLargeException.prototype);
385
403
  }
386
404
  };
387
- __name(_RequestEntityTooLargeException, "RequestEntityTooLargeException");
388
- var RequestEntityTooLargeException = _RequestEntityTooLargeException;
389
405
 
390
406
  // src/protocols/Aws_restJson1.ts
391
407
  var se_DeleteThingShadowCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -783,99 +799,106 @@ var _xampfi = "x-amz-mqtt5-payload-format-indicator";
783
799
  var _xamup = "x-amz-mqtt5-user-properties";
784
800
 
785
801
  // src/commands/DeleteThingShadowCommand.ts
786
- var _DeleteThingShadowCommand = class _DeleteThingShadowCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
802
+ var DeleteThingShadowCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
787
803
  return [
788
804
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
789
805
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
790
806
  ];
791
807
  }).s("IotMoonrakerService", "DeleteThingShadow", {}).n("IoTDataPlaneClient", "DeleteThingShadowCommand").f(void 0, void 0).ser(se_DeleteThingShadowCommand).de(de_DeleteThingShadowCommand).build() {
808
+ static {
809
+ __name(this, "DeleteThingShadowCommand");
810
+ }
792
811
  };
793
- __name(_DeleteThingShadowCommand, "DeleteThingShadowCommand");
794
- var DeleteThingShadowCommand = _DeleteThingShadowCommand;
795
812
 
796
813
  // src/commands/GetRetainedMessageCommand.ts
797
814
 
798
815
 
799
816
 
800
- var _GetRetainedMessageCommand = class _GetRetainedMessageCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
817
+ var GetRetainedMessageCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
801
818
  return [
802
819
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
803
820
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
804
821
  ];
805
822
  }).s("IotMoonrakerService", "GetRetainedMessage", {}).n("IoTDataPlaneClient", "GetRetainedMessageCommand").f(void 0, void 0).ser(se_GetRetainedMessageCommand).de(de_GetRetainedMessageCommand).build() {
823
+ static {
824
+ __name(this, "GetRetainedMessageCommand");
825
+ }
806
826
  };
807
- __name(_GetRetainedMessageCommand, "GetRetainedMessageCommand");
808
- var GetRetainedMessageCommand = _GetRetainedMessageCommand;
809
827
 
810
828
  // src/commands/GetThingShadowCommand.ts
811
829
 
812
830
 
813
831
 
814
- var _GetThingShadowCommand = class _GetThingShadowCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
832
+ var GetThingShadowCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
815
833
  return [
816
834
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
817
835
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
818
836
  ];
819
837
  }).s("IotMoonrakerService", "GetThingShadow", {}).n("IoTDataPlaneClient", "GetThingShadowCommand").f(void 0, void 0).ser(se_GetThingShadowCommand).de(de_GetThingShadowCommand).build() {
838
+ static {
839
+ __name(this, "GetThingShadowCommand");
840
+ }
820
841
  };
821
- __name(_GetThingShadowCommand, "GetThingShadowCommand");
822
- var GetThingShadowCommand = _GetThingShadowCommand;
823
842
 
824
843
  // src/commands/ListNamedShadowsForThingCommand.ts
825
844
 
826
845
 
827
846
 
828
- var _ListNamedShadowsForThingCommand = class _ListNamedShadowsForThingCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
847
+ var ListNamedShadowsForThingCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
829
848
  return [
830
849
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
831
850
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
832
851
  ];
833
852
  }).s("IotMoonrakerService", "ListNamedShadowsForThing", {}).n("IoTDataPlaneClient", "ListNamedShadowsForThingCommand").f(void 0, void 0).ser(se_ListNamedShadowsForThingCommand).de(de_ListNamedShadowsForThingCommand).build() {
853
+ static {
854
+ __name(this, "ListNamedShadowsForThingCommand");
855
+ }
834
856
  };
835
- __name(_ListNamedShadowsForThingCommand, "ListNamedShadowsForThingCommand");
836
- var ListNamedShadowsForThingCommand = _ListNamedShadowsForThingCommand;
837
857
 
838
858
  // src/commands/ListRetainedMessagesCommand.ts
839
859
 
840
860
 
841
861
 
842
- var _ListRetainedMessagesCommand = class _ListRetainedMessagesCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
862
+ var ListRetainedMessagesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
843
863
  return [
844
864
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
845
865
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
846
866
  ];
847
867
  }).s("IotMoonrakerService", "ListRetainedMessages", {}).n("IoTDataPlaneClient", "ListRetainedMessagesCommand").f(void 0, void 0).ser(se_ListRetainedMessagesCommand).de(de_ListRetainedMessagesCommand).build() {
868
+ static {
869
+ __name(this, "ListRetainedMessagesCommand");
870
+ }
848
871
  };
849
- __name(_ListRetainedMessagesCommand, "ListRetainedMessagesCommand");
850
- var ListRetainedMessagesCommand = _ListRetainedMessagesCommand;
851
872
 
852
873
  // src/commands/PublishCommand.ts
853
874
 
854
875
 
855
876
 
856
- var _PublishCommand = class _PublishCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
877
+ var PublishCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
857
878
  return [
858
879
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
859
880
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
860
881
  ];
861
882
  }).s("IotMoonrakerService", "Publish", {}).n("IoTDataPlaneClient", "PublishCommand").f(void 0, void 0).ser(se_PublishCommand).de(de_PublishCommand).build() {
883
+ static {
884
+ __name(this, "PublishCommand");
885
+ }
862
886
  };
863
- __name(_PublishCommand, "PublishCommand");
864
- var PublishCommand = _PublishCommand;
865
887
 
866
888
  // src/commands/UpdateThingShadowCommand.ts
867
889
 
868
890
 
869
891
 
870
- var _UpdateThingShadowCommand = class _UpdateThingShadowCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
892
+ var UpdateThingShadowCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
871
893
  return [
872
894
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
873
895
  (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
874
896
  ];
875
897
  }).s("IotMoonrakerService", "UpdateThingShadow", {}).n("IoTDataPlaneClient", "UpdateThingShadowCommand").f(void 0, void 0).ser(se_UpdateThingShadowCommand).de(de_UpdateThingShadowCommand).build() {
898
+ static {
899
+ __name(this, "UpdateThingShadowCommand");
900
+ }
876
901
  };
877
- __name(_UpdateThingShadowCommand, "UpdateThingShadowCommand");
878
- var UpdateThingShadowCommand = _UpdateThingShadowCommand;
879
902
 
880
903
  // src/IoTDataPlane.ts
881
904
  var commands = {
@@ -887,10 +910,11 @@ var commands = {
887
910
  PublishCommand,
888
911
  UpdateThingShadowCommand
889
912
  };
890
- var _IoTDataPlane = class _IoTDataPlane extends IoTDataPlaneClient {
913
+ var IoTDataPlane = class extends IoTDataPlaneClient {
914
+ static {
915
+ __name(this, "IoTDataPlane");
916
+ }
891
917
  };
892
- __name(_IoTDataPlane, "IoTDataPlane");
893
- var IoTDataPlane = _IoTDataPlane;
894
918
  (0, import_smithy_client.createAggregatedClient)(commands, IoTDataPlane);
895
919
 
896
920
  // src/pagination/ListRetainedMessagesPaginator.ts
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class IoTDataPlaneClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,109 +1,109 @@
1
1
  import { IoTDataPlaneServiceException as __BaseException } from "./IoTDataPlaneServiceException";
2
2
  export class ConflictException extends __BaseException {
3
+ name = "ConflictException";
4
+ $fault = "client";
3
5
  constructor(opts) {
4
6
  super({
5
7
  name: "ConflictException",
6
8
  $fault: "client",
7
9
  ...opts,
8
10
  });
9
- this.name = "ConflictException";
10
- this.$fault = "client";
11
11
  Object.setPrototypeOf(this, ConflictException.prototype);
12
12
  }
13
13
  }
14
14
  export class InternalFailureException extends __BaseException {
15
+ name = "InternalFailureException";
16
+ $fault = "server";
15
17
  constructor(opts) {
16
18
  super({
17
19
  name: "InternalFailureException",
18
20
  $fault: "server",
19
21
  ...opts,
20
22
  });
21
- this.name = "InternalFailureException";
22
- this.$fault = "server";
23
23
  Object.setPrototypeOf(this, InternalFailureException.prototype);
24
24
  }
25
25
  }
26
26
  export class InvalidRequestException extends __BaseException {
27
+ name = "InvalidRequestException";
28
+ $fault = "client";
27
29
  constructor(opts) {
28
30
  super({
29
31
  name: "InvalidRequestException",
30
32
  $fault: "client",
31
33
  ...opts,
32
34
  });
33
- this.name = "InvalidRequestException";
34
- this.$fault = "client";
35
35
  Object.setPrototypeOf(this, InvalidRequestException.prototype);
36
36
  }
37
37
  }
38
38
  export class MethodNotAllowedException extends __BaseException {
39
+ name = "MethodNotAllowedException";
40
+ $fault = "client";
39
41
  constructor(opts) {
40
42
  super({
41
43
  name: "MethodNotAllowedException",
42
44
  $fault: "client",
43
45
  ...opts,
44
46
  });
45
- this.name = "MethodNotAllowedException";
46
- this.$fault = "client";
47
47
  Object.setPrototypeOf(this, MethodNotAllowedException.prototype);
48
48
  }
49
49
  }
50
50
  export class ResourceNotFoundException extends __BaseException {
51
+ name = "ResourceNotFoundException";
52
+ $fault = "client";
51
53
  constructor(opts) {
52
54
  super({
53
55
  name: "ResourceNotFoundException",
54
56
  $fault: "client",
55
57
  ...opts,
56
58
  });
57
- this.name = "ResourceNotFoundException";
58
- this.$fault = "client";
59
59
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
60
60
  }
61
61
  }
62
62
  export class ServiceUnavailableException extends __BaseException {
63
+ name = "ServiceUnavailableException";
64
+ $fault = "server";
63
65
  constructor(opts) {
64
66
  super({
65
67
  name: "ServiceUnavailableException",
66
68
  $fault: "server",
67
69
  ...opts,
68
70
  });
69
- this.name = "ServiceUnavailableException";
70
- this.$fault = "server";
71
71
  Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
72
72
  }
73
73
  }
74
74
  export class ThrottlingException extends __BaseException {
75
+ name = "ThrottlingException";
76
+ $fault = "client";
75
77
  constructor(opts) {
76
78
  super({
77
79
  name: "ThrottlingException",
78
80
  $fault: "client",
79
81
  ...opts,
80
82
  });
81
- this.name = "ThrottlingException";
82
- this.$fault = "client";
83
83
  Object.setPrototypeOf(this, ThrottlingException.prototype);
84
84
  }
85
85
  }
86
86
  export class UnauthorizedException extends __BaseException {
87
+ name = "UnauthorizedException";
88
+ $fault = "client";
87
89
  constructor(opts) {
88
90
  super({
89
91
  name: "UnauthorizedException",
90
92
  $fault: "client",
91
93
  ...opts,
92
94
  });
93
- this.name = "UnauthorizedException";
94
- this.$fault = "client";
95
95
  Object.setPrototypeOf(this, UnauthorizedException.prototype);
96
96
  }
97
97
  }
98
98
  export class UnsupportedDocumentEncodingException extends __BaseException {
99
+ name = "UnsupportedDocumentEncodingException";
100
+ $fault = "client";
99
101
  constructor(opts) {
100
102
  super({
101
103
  name: "UnsupportedDocumentEncodingException",
102
104
  $fault: "client",
103
105
  ...opts,
104
106
  });
105
- this.name = "UnsupportedDocumentEncodingException";
106
- this.$fault = "client";
107
107
  Object.setPrototypeOf(this, UnsupportedDocumentEncodingException.prototype);
108
108
  }
109
109
  }
@@ -112,14 +112,14 @@ export const PayloadFormatIndicator = {
112
112
  UTF8_DATA: "UTF8_DATA",
113
113
  };
114
114
  export class RequestEntityTooLargeException extends __BaseException {
115
+ name = "RequestEntityTooLargeException";
116
+ $fault = "client";
115
117
  constructor(opts) {
116
118
  super({
117
119
  name: "RequestEntityTooLargeException",
118
120
  $fault: "client",
119
121
  ...opts,
120
122
  });
121
- this.name = "RequestEntityTooLargeException";
122
- this.$fault = "client";
123
123
  Object.setPrototypeOf(this, RequestEntityTooLargeException.prototype);
124
124
  }
125
125
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: IoTDataPlaneClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: IoTDataPlaneClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: IoTDataPlaneClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: IoTDataPlaneClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: IoTDataPlaneClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: IoTDataPlaneClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: IoTDataPlaneClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: IoTDataPlaneClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
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.721.0",
4
+ "version": "3.726.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,57 +20,57 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.721.0",
24
- "@aws-sdk/client-sts": "3.721.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.721.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.721.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.721.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-stream": "^3.3.2",
61
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.726.0",
24
+ "@aws-sdk/client-sts": "3.726.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.726.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.726.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.726.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.726.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-stream": "^4.0.0",
61
+ "@smithy/util-utf8": "^4.0.0",
62
62
  "tslib": "^2.6.2"
63
63
  },
64
64
  "devDependencies": {
65
- "@tsconfig/node16": "16.1.3",
66
- "@types/node": "^16.18.96",
65
+ "@tsconfig/node18": "18.2.4",
66
+ "@types/node": "^18.19.69",
67
67
  "concurrently": "7.0.0",
68
68
  "downlevel-dts": "0.10.1",
69
69
  "rimraf": "3.0.2",
70
- "typescript": "~4.9.5"
70
+ "typescript": "~5.2.2"
71
71
  },
72
72
  "engines": {
73
- "node": ">=16.0.0"
73
+ "node": ">=18.0.0"
74
74
  },
75
75
  "typesVersions": {
76
76
  "<4.0": {