@aws-sdk/client-iot-data-plane 3.54.1 → 3.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,30 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.58.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.57.0...v3.58.0) (2022-03-28)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-iot-data-plane
9
+
10
+
11
+
12
+
13
+
14
+ # [3.56.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.55.0...v3.56.0) (2022-03-24)
15
+
16
+ **Note:** Version bump only for package @aws-sdk/client-iot-data-plane
17
+
18
+
19
+
20
+
21
+
22
+ # [3.55.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.1...v3.55.0) (2022-03-21)
23
+
24
+ **Note:** Version bump only for package @aws-sdk/client-iot-data-plane
25
+
26
+
27
+
28
+
29
+
6
30
  ## [3.54.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.54.0...v3.54.1) (2022-03-15)
7
31
 
8
32
  **Note:** Version bump only for package @aws-sdk/client-iot-data-plane
@@ -12,21 +12,21 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
12
12
  const runtimeConfig_1 = require("./runtimeConfig");
13
13
  class IoTDataPlaneClient extends smithy_client_1.Client {
14
14
  constructor(configuration) {
15
- const _config_0 = runtimeConfig_1.getRuntimeConfig(configuration);
16
- const _config_1 = config_resolver_1.resolveRegionConfig(_config_0);
17
- const _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1);
18
- const _config_3 = middleware_retry_1.resolveRetryConfig(_config_2);
19
- const _config_4 = middleware_host_header_1.resolveHostHeaderConfig(_config_3);
20
- const _config_5 = middleware_signing_1.resolveAwsAuthConfig(_config_4);
21
- const _config_6 = middleware_user_agent_1.resolveUserAgentConfig(_config_5);
15
+ const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration);
16
+ const _config_1 = (0, config_resolver_1.resolveRegionConfig)(_config_0);
17
+ const _config_2 = (0, config_resolver_1.resolveEndpointsConfig)(_config_1);
18
+ const _config_3 = (0, middleware_retry_1.resolveRetryConfig)(_config_2);
19
+ const _config_4 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_3);
20
+ const _config_5 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_4);
21
+ const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5);
22
22
  super(_config_6);
23
23
  this.config = _config_6;
24
- this.middlewareStack.use(middleware_retry_1.getRetryPlugin(this.config));
25
- this.middlewareStack.use(middleware_content_length_1.getContentLengthPlugin(this.config));
26
- this.middlewareStack.use(middleware_host_header_1.getHostHeaderPlugin(this.config));
27
- this.middlewareStack.use(middleware_logger_1.getLoggerPlugin(this.config));
28
- this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(this.config));
29
- this.middlewareStack.use(middleware_user_agent_1.getUserAgentPlugin(this.config));
24
+ this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config));
25
+ this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config));
26
+ this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config));
27
+ this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config));
28
+ this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config));
29
+ this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config));
30
30
  }
31
31
  destroy() {
32
32
  super.destroy();
@@ -11,7 +11,7 @@ class DeleteThingShadowCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "IoTDataPlaneClient";
@@ -27,10 +27,10 @@ class DeleteThingShadowCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1DeleteThingShadowCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1DeleteThingShadowCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1DeleteThingShadowCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteThingShadowCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.DeleteThingShadowCommand = DeleteThingShadowCommand;
@@ -11,7 +11,7 @@ class GetRetainedMessageCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "IoTDataPlaneClient";
@@ -27,10 +27,10 @@ class GetRetainedMessageCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1GetRetainedMessageCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1GetRetainedMessageCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1GetRetainedMessageCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1GetRetainedMessageCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.GetRetainedMessageCommand = GetRetainedMessageCommand;
@@ -11,7 +11,7 @@ class GetThingShadowCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "IoTDataPlaneClient";
@@ -27,10 +27,10 @@ class GetThingShadowCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1GetThingShadowCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1GetThingShadowCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1GetThingShadowCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1GetThingShadowCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.GetThingShadowCommand = GetThingShadowCommand;
@@ -11,7 +11,7 @@ class ListNamedShadowsForThingCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "IoTDataPlaneClient";
@@ -27,10 +27,10 @@ class ListNamedShadowsForThingCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1ListNamedShadowsForThingCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListNamedShadowsForThingCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1ListNamedShadowsForThingCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListNamedShadowsForThingCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.ListNamedShadowsForThingCommand = ListNamedShadowsForThingCommand;
@@ -11,7 +11,7 @@ class ListRetainedMessagesCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "IoTDataPlaneClient";
@@ -27,10 +27,10 @@ class ListRetainedMessagesCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1ListRetainedMessagesCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1ListRetainedMessagesCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1ListRetainedMessagesCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1ListRetainedMessagesCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.ListRetainedMessagesCommand = ListRetainedMessagesCommand;
@@ -11,7 +11,7 @@ class PublishCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "IoTDataPlaneClient";
@@ -27,10 +27,10 @@ class PublishCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1PublishCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1PublishCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1PublishCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1PublishCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.PublishCommand = PublishCommand;
@@ -11,7 +11,7 @@ class UpdateThingShadowCommand extends smithy_client_1.Command {
11
11
  this.input = input;
12
12
  }
13
13
  resolveMiddleware(clientStack, configuration, options) {
14
- this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
14
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
15
15
  const stack = clientStack.concat(this.middlewareStack);
16
16
  const { logger } = configuration;
17
17
  const clientName = "IoTDataPlaneClient";
@@ -27,10 +27,10 @@ class UpdateThingShadowCommand extends smithy_client_1.Command {
27
27
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
28
  }
29
29
  serialize(input, context) {
30
- return Aws_restJson1_1.serializeAws_restJson1UpdateThingShadowCommand(input, context);
30
+ return (0, Aws_restJson1_1.serializeAws_restJson1UpdateThingShadowCommand)(input, context);
31
31
  }
32
32
  deserialize(output, context) {
33
- return Aws_restJson1_1.deserializeAws_restJson1UpdateThingShadowCommand(output, context);
33
+ return (0, Aws_restJson1_1.deserializeAws_restJson1UpdateThingShadowCommand)(output, context);
34
34
  }
35
35
  }
36
36
  exports.UpdateThingShadowCommand = UpdateThingShadowCommand;
@@ -184,7 +184,7 @@ const partitionHash = {
184
184
  ],
185
185
  },
186
186
  };
187
- const defaultRegionInfoProvider = async (region, options) => config_resolver_1.getRegionInfo(region, {
187
+ const defaultRegionInfoProvider = async (region, options) => (0, config_resolver_1.getRegionInfo)(region, {
188
188
  ...options,
189
189
  signingService: "iotdata",
190
190
  regionHash,
@@ -14,7 +14,7 @@ const serializeAws_restJson1DeleteThingShadowCommand = async (input, context) =>
14
14
  if (labelValue.length <= 0) {
15
15
  throw new Error("Empty value provided for input HTTP label: thingName.");
16
16
  }
17
- resolvedPath = resolvedPath.replace("{thingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
17
+ resolvedPath = resolvedPath.replace("{thingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
18
18
  }
19
19
  else {
20
20
  throw new Error("No value provided for input HTTP label: thingName.");
@@ -44,7 +44,7 @@ const serializeAws_restJson1GetRetainedMessageCommand = async (input, context) =
44
44
  if (labelValue.length <= 0) {
45
45
  throw new Error("Empty value provided for input HTTP label: topic.");
46
46
  }
47
- resolvedPath = resolvedPath.replace("{topic}", smithy_client_1.extendedEncodeURIComponent(labelValue));
47
+ resolvedPath = resolvedPath.replace("{topic}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
48
48
  }
49
49
  else {
50
50
  throw new Error("No value provided for input HTTP label: topic.");
@@ -70,7 +70,7 @@ const serializeAws_restJson1GetThingShadowCommand = async (input, context) => {
70
70
  if (labelValue.length <= 0) {
71
71
  throw new Error("Empty value provided for input HTTP label: thingName.");
72
72
  }
73
- resolvedPath = resolvedPath.replace("{thingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
73
+ resolvedPath = resolvedPath.replace("{thingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
74
74
  }
75
75
  else {
76
76
  throw new Error("No value provided for input HTTP label: thingName.");
@@ -101,7 +101,7 @@ const serializeAws_restJson1ListNamedShadowsForThingCommand = async (input, cont
101
101
  if (labelValue.length <= 0) {
102
102
  throw new Error("Empty value provided for input HTTP label: thingName.");
103
103
  }
104
- resolvedPath = resolvedPath.replace("{thingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
104
+ resolvedPath = resolvedPath.replace("{thingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
105
105
  }
106
106
  else {
107
107
  throw new Error("No value provided for input HTTP label: thingName.");
@@ -155,7 +155,7 @@ const serializeAws_restJson1PublishCommand = async (input, context) => {
155
155
  if (labelValue.length <= 0) {
156
156
  throw new Error("Empty value provided for input HTTP label: topic.");
157
157
  }
158
- resolvedPath = resolvedPath.replace("{topic}", smithy_client_1.extendedEncodeURIComponent(labelValue));
158
+ resolvedPath = resolvedPath.replace("{topic}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
159
159
  }
160
160
  else {
161
161
  throw new Error("No value provided for input HTTP label: topic.");
@@ -191,7 +191,7 @@ const serializeAws_restJson1UpdateThingShadowCommand = async (input, context) =>
191
191
  if (labelValue.length <= 0) {
192
192
  throw new Error("Empty value provided for input HTTP label: thingName.");
193
193
  }
194
- resolvedPath = resolvedPath.replace("{thingName}", smithy_client_1.extendedEncodeURIComponent(labelValue));
194
+ resolvedPath = resolvedPath.replace("{thingName}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
195
195
  }
196
196
  else {
197
197
  throw new Error("No value provided for input HTTP label: thingName.");
@@ -268,7 +268,7 @@ const deserializeAws_restJson1DeleteThingShadowCommandError = async (output, con
268
268
  $fault: "client",
269
269
  $metadata: deserializeMetadata(output),
270
270
  });
271
- throw smithy_client_1.decorateServiceException(response, parsedBody);
271
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
272
272
  }
273
273
  };
274
274
  const deserializeAws_restJson1GetRetainedMessageCommand = async (output, context) => {
@@ -282,18 +282,18 @@ const deserializeAws_restJson1GetRetainedMessageCommand = async (output, context
282
282
  qos: undefined,
283
283
  topic: undefined,
284
284
  };
285
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
285
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
286
286
  if (data.lastModifiedTime !== undefined && data.lastModifiedTime !== null) {
287
- contents.lastModifiedTime = smithy_client_1.expectLong(data.lastModifiedTime);
287
+ contents.lastModifiedTime = (0, smithy_client_1.expectLong)(data.lastModifiedTime);
288
288
  }
289
289
  if (data.payload !== undefined && data.payload !== null) {
290
290
  contents.payload = context.base64Decoder(data.payload);
291
291
  }
292
292
  if (data.qos !== undefined && data.qos !== null) {
293
- contents.qos = smithy_client_1.expectInt32(data.qos);
293
+ contents.qos = (0, smithy_client_1.expectInt32)(data.qos);
294
294
  }
295
295
  if (data.topic !== undefined && data.topic !== null) {
296
- contents.topic = smithy_client_1.expectString(data.topic);
296
+ contents.topic = (0, smithy_client_1.expectString)(data.topic);
297
297
  }
298
298
  return Promise.resolve(contents);
299
299
  };
@@ -335,7 +335,7 @@ const deserializeAws_restJson1GetRetainedMessageCommandError = async (output, co
335
335
  $fault: "client",
336
336
  $metadata: deserializeMetadata(output),
337
337
  });
338
- throw smithy_client_1.decorateServiceException(response, parsedBody);
338
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
339
339
  }
340
340
  };
341
341
  const deserializeAws_restJson1GetThingShadowCommand = async (output, context) => {
@@ -391,7 +391,7 @@ const deserializeAws_restJson1GetThingShadowCommandError = async (output, contex
391
391
  $fault: "client",
392
392
  $metadata: deserializeMetadata(output),
393
393
  });
394
- throw smithy_client_1.decorateServiceException(response, parsedBody);
394
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
395
395
  }
396
396
  };
397
397
  const deserializeAws_restJson1ListNamedShadowsForThingCommand = async (output, context) => {
@@ -404,15 +404,15 @@ const deserializeAws_restJson1ListNamedShadowsForThingCommand = async (output, c
404
404
  results: undefined,
405
405
  timestamp: undefined,
406
406
  };
407
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
407
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
408
408
  if (data.nextToken !== undefined && data.nextToken !== null) {
409
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
409
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
410
410
  }
411
411
  if (data.results !== undefined && data.results !== null) {
412
412
  contents.results = deserializeAws_restJson1NamedShadowList(data.results, context);
413
413
  }
414
414
  if (data.timestamp !== undefined && data.timestamp !== null) {
415
- contents.timestamp = smithy_client_1.expectLong(data.timestamp);
415
+ contents.timestamp = (0, smithy_client_1.expectLong)(data.timestamp);
416
416
  }
417
417
  return Promise.resolve(contents);
418
418
  };
@@ -454,7 +454,7 @@ const deserializeAws_restJson1ListNamedShadowsForThingCommandError = async (outp
454
454
  $fault: "client",
455
455
  $metadata: deserializeMetadata(output),
456
456
  });
457
- throw smithy_client_1.decorateServiceException(response, parsedBody);
457
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
458
458
  }
459
459
  };
460
460
  const deserializeAws_restJson1ListRetainedMessagesCommand = async (output, context) => {
@@ -466,9 +466,9 @@ const deserializeAws_restJson1ListRetainedMessagesCommand = async (output, conte
466
466
  nextToken: undefined,
467
467
  retainedTopics: undefined,
468
468
  };
469
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
469
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
470
470
  if (data.nextToken !== undefined && data.nextToken !== null) {
471
- contents.nextToken = smithy_client_1.expectString(data.nextToken);
471
+ contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
472
472
  }
473
473
  if (data.retainedTopics !== undefined && data.retainedTopics !== null) {
474
474
  contents.retainedTopics = deserializeAws_restJson1RetainedMessageList(data.retainedTopics, context);
@@ -510,7 +510,7 @@ const deserializeAws_restJson1ListRetainedMessagesCommandError = async (output,
510
510
  $fault: "client",
511
511
  $metadata: deserializeMetadata(output),
512
512
  });
513
- throw smithy_client_1.decorateServiceException(response, parsedBody);
513
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
514
514
  }
515
515
  };
516
516
  const deserializeAws_restJson1PublishCommand = async (output, context) => {
@@ -552,7 +552,7 @@ const deserializeAws_restJson1PublishCommandError = async (output, context) => {
552
552
  $fault: "client",
553
553
  $metadata: deserializeMetadata(output),
554
554
  });
555
- throw smithy_client_1.decorateServiceException(response, parsedBody);
555
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
556
556
  }
557
557
  };
558
558
  const deserializeAws_restJson1UpdateThingShadowCommand = async (output, context) => {
@@ -611,128 +611,128 @@ const deserializeAws_restJson1UpdateThingShadowCommandError = async (output, con
611
611
  $fault: "client",
612
612
  $metadata: deserializeMetadata(output),
613
613
  });
614
- throw smithy_client_1.decorateServiceException(response, parsedBody);
614
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
615
615
  }
616
616
  };
617
617
  const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
618
618
  const contents = {};
619
619
  const data = parsedOutput.body;
620
620
  if (data.message !== undefined && data.message !== null) {
621
- contents.message = smithy_client_1.expectString(data.message);
621
+ contents.message = (0, smithy_client_1.expectString)(data.message);
622
622
  }
623
623
  const exception = new models_0_1.ConflictException({
624
624
  $metadata: deserializeMetadata(parsedOutput),
625
625
  ...contents,
626
626
  });
627
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
627
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
628
628
  };
629
629
  const deserializeAws_restJson1InternalFailureExceptionResponse = async (parsedOutput, context) => {
630
630
  const contents = {};
631
631
  const data = parsedOutput.body;
632
632
  if (data.message !== undefined && data.message !== null) {
633
- contents.message = smithy_client_1.expectString(data.message);
633
+ contents.message = (0, smithy_client_1.expectString)(data.message);
634
634
  }
635
635
  const exception = new models_0_1.InternalFailureException({
636
636
  $metadata: deserializeMetadata(parsedOutput),
637
637
  ...contents,
638
638
  });
639
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
639
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
640
640
  };
641
641
  const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
642
642
  const contents = {};
643
643
  const data = parsedOutput.body;
644
644
  if (data.message !== undefined && data.message !== null) {
645
- contents.message = smithy_client_1.expectString(data.message);
645
+ contents.message = (0, smithy_client_1.expectString)(data.message);
646
646
  }
647
647
  const exception = new models_0_1.InvalidRequestException({
648
648
  $metadata: deserializeMetadata(parsedOutput),
649
649
  ...contents,
650
650
  });
651
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
651
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
652
652
  };
653
653
  const deserializeAws_restJson1MethodNotAllowedExceptionResponse = async (parsedOutput, context) => {
654
654
  const contents = {};
655
655
  const data = parsedOutput.body;
656
656
  if (data.message !== undefined && data.message !== null) {
657
- contents.message = smithy_client_1.expectString(data.message);
657
+ contents.message = (0, smithy_client_1.expectString)(data.message);
658
658
  }
659
659
  const exception = new models_0_1.MethodNotAllowedException({
660
660
  $metadata: deserializeMetadata(parsedOutput),
661
661
  ...contents,
662
662
  });
663
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
663
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
664
664
  };
665
665
  const deserializeAws_restJson1RequestEntityTooLargeExceptionResponse = async (parsedOutput, context) => {
666
666
  const contents = {};
667
667
  const data = parsedOutput.body;
668
668
  if (data.message !== undefined && data.message !== null) {
669
- contents.message = smithy_client_1.expectString(data.message);
669
+ contents.message = (0, smithy_client_1.expectString)(data.message);
670
670
  }
671
671
  const exception = new models_0_1.RequestEntityTooLargeException({
672
672
  $metadata: deserializeMetadata(parsedOutput),
673
673
  ...contents,
674
674
  });
675
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
675
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
676
676
  };
677
677
  const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
678
678
  const contents = {};
679
679
  const data = parsedOutput.body;
680
680
  if (data.message !== undefined && data.message !== null) {
681
- contents.message = smithy_client_1.expectString(data.message);
681
+ contents.message = (0, smithy_client_1.expectString)(data.message);
682
682
  }
683
683
  const exception = new models_0_1.ResourceNotFoundException({
684
684
  $metadata: deserializeMetadata(parsedOutput),
685
685
  ...contents,
686
686
  });
687
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
687
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
688
688
  };
689
689
  const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
690
690
  const contents = {};
691
691
  const data = parsedOutput.body;
692
692
  if (data.message !== undefined && data.message !== null) {
693
- contents.message = smithy_client_1.expectString(data.message);
693
+ contents.message = (0, smithy_client_1.expectString)(data.message);
694
694
  }
695
695
  const exception = new models_0_1.ServiceUnavailableException({
696
696
  $metadata: deserializeMetadata(parsedOutput),
697
697
  ...contents,
698
698
  });
699
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
699
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
700
700
  };
701
701
  const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
702
702
  const contents = {};
703
703
  const data = parsedOutput.body;
704
704
  if (data.message !== undefined && data.message !== null) {
705
- contents.message = smithy_client_1.expectString(data.message);
705
+ contents.message = (0, smithy_client_1.expectString)(data.message);
706
706
  }
707
707
  const exception = new models_0_1.ThrottlingException({
708
708
  $metadata: deserializeMetadata(parsedOutput),
709
709
  ...contents,
710
710
  });
711
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
711
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
712
712
  };
713
713
  const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutput, context) => {
714
714
  const contents = {};
715
715
  const data = parsedOutput.body;
716
716
  if (data.message !== undefined && data.message !== null) {
717
- contents.message = smithy_client_1.expectString(data.message);
717
+ contents.message = (0, smithy_client_1.expectString)(data.message);
718
718
  }
719
719
  const exception = new models_0_1.UnauthorizedException({
720
720
  $metadata: deserializeMetadata(parsedOutput),
721
721
  ...contents,
722
722
  });
723
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
723
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
724
724
  };
725
725
  const deserializeAws_restJson1UnsupportedDocumentEncodingExceptionResponse = async (parsedOutput, context) => {
726
726
  const contents = {};
727
727
  const data = parsedOutput.body;
728
728
  if (data.message !== undefined && data.message !== null) {
729
- contents.message = smithy_client_1.expectString(data.message);
729
+ contents.message = (0, smithy_client_1.expectString)(data.message);
730
730
  }
731
731
  const exception = new models_0_1.UnsupportedDocumentEncodingException({
732
732
  $metadata: deserializeMetadata(parsedOutput),
733
733
  ...contents,
734
734
  });
735
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
735
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
736
736
  };
737
737
  const deserializeAws_restJson1NamedShadowList = (output, context) => {
738
738
  const retVal = (output || [])
@@ -741,7 +741,7 @@ const deserializeAws_restJson1NamedShadowList = (output, context) => {
741
741
  if (entry === null) {
742
742
  return null;
743
743
  }
744
- return smithy_client_1.expectString(entry);
744
+ return (0, smithy_client_1.expectString)(entry);
745
745
  });
746
746
  return retVal;
747
747
  };
@@ -758,10 +758,10 @@ const deserializeAws_restJson1RetainedMessageList = (output, context) => {
758
758
  };
759
759
  const deserializeAws_restJson1RetainedMessageSummary = (output, context) => {
760
760
  return {
761
- lastModifiedTime: smithy_client_1.expectLong(output.lastModifiedTime),
762
- payloadSize: smithy_client_1.expectLong(output.payloadSize),
763
- qos: smithy_client_1.expectInt32(output.qos),
764
- topic: smithy_client_1.expectString(output.topic),
761
+ lastModifiedTime: (0, smithy_client_1.expectLong)(output.lastModifiedTime),
762
+ payloadSize: (0, smithy_client_1.expectLong)(output.payloadSize),
763
+ qos: (0, smithy_client_1.expectInt32)(output.qos),
764
+ topic: (0, smithy_client_1.expectString)(output.topic),
765
765
  };
766
766
  };
767
767
  const deserializeMetadata = (output) => {
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
@@ -19,7 +19,7 @@ var IoTDataPlane = (function (_super) {
19
19
  }
20
20
  else if (typeof cb === "function") {
21
21
  if (typeof optionsOrCb !== "object")
22
- throw new Error("Expect http options but get " + typeof optionsOrCb);
22
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
23
23
  this.send(command, optionsOrCb || {}, cb);
24
24
  }
25
25
  else {
@@ -33,7 +33,7 @@ var IoTDataPlane = (function (_super) {
33
33
  }
34
34
  else if (typeof cb === "function") {
35
35
  if (typeof optionsOrCb !== "object")
36
- throw new Error("Expect http options but get " + typeof optionsOrCb);
36
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
37
37
  this.send(command, optionsOrCb || {}, cb);
38
38
  }
39
39
  else {
@@ -47,7 +47,7 @@ var IoTDataPlane = (function (_super) {
47
47
  }
48
48
  else if (typeof cb === "function") {
49
49
  if (typeof optionsOrCb !== "object")
50
- throw new Error("Expect http options but get " + typeof optionsOrCb);
50
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
51
51
  this.send(command, optionsOrCb || {}, cb);
52
52
  }
53
53
  else {
@@ -61,7 +61,7 @@ var IoTDataPlane = (function (_super) {
61
61
  }
62
62
  else if (typeof cb === "function") {
63
63
  if (typeof optionsOrCb !== "object")
64
- throw new Error("Expect http options but get " + typeof optionsOrCb);
64
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
65
65
  this.send(command, optionsOrCb || {}, cb);
66
66
  }
67
67
  else {
@@ -75,7 +75,7 @@ var IoTDataPlane = (function (_super) {
75
75
  }
76
76
  else if (typeof cb === "function") {
77
77
  if (typeof optionsOrCb !== "object")
78
- throw new Error("Expect http options but get " + typeof optionsOrCb);
78
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
79
  this.send(command, optionsOrCb || {}, cb);
80
80
  }
81
81
  else {
@@ -89,7 +89,7 @@ var IoTDataPlane = (function (_super) {
89
89
  }
90
90
  else if (typeof cb === "function") {
91
91
  if (typeof optionsOrCb !== "object")
92
- throw new Error("Expect http options but get " + typeof optionsOrCb);
92
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
93
  this.send(command, optionsOrCb || {}, cb);
94
94
  }
95
95
  else {
@@ -103,7 +103,7 @@ var IoTDataPlane = (function (_super) {
103
103
  }
104
104
  else if (typeof cb === "function") {
105
105
  if (typeof optionsOrCb !== "object")
106
- throw new Error("Expect http options but get " + typeof optionsOrCb);
106
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
107
  this.send(command, optionsOrCb || {}, cb);
108
108
  }
109
109
  else {
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
10
10
  return __awaiter(void 0, void 0, void 0, function () {
11
11
  return __generator(this, function (_a) {
12
12
  switch (_a.label) {
13
- case 0: return [4, client.send.apply(client, __spreadArray([new ListRetainedMessagesCommand(input)], __read(args)))];
13
+ case 0: return [4, client.send.apply(client, __spreadArray([new ListRetainedMessagesCommand(input)], __read(args), false))];
14
14
  case 1: return [2, _a.sent()];
15
15
  }
16
16
  });
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
24
24
  return __awaiter(void 0, void 0, void 0, function () {
25
25
  return __generator(this, function (_a) {
26
26
  switch (_a.label) {
27
- case 0: return [4, client.listRetainedMessages.apply(client, __spreadArray([input], __read(args)))];
27
+ case 0: return [4, client.listRetainedMessages.apply(client, __spreadArray([input], __read(args), false))];
28
28
  case 1: return [2, _a.sent()];
29
29
  }
30
30
  });
@@ -48,13 +48,13 @@ export function paginateListRetainedMessages(config, input) {
48
48
  input.nextToken = token;
49
49
  input["maxResults"] = config.pageSize;
50
50
  if (!(config.client instanceof IoTDataPlane)) return [3, 3];
51
- return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
51
+ return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
52
52
  case 2:
53
53
  page = _a.sent();
54
54
  return [3, 6];
55
55
  case 3:
56
56
  if (!(config.client instanceof IoTDataPlaneClient)) return [3, 5];
57
- return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
57
+ return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
58
58
  case 4:
59
59
  page = _a.sent();
60
60
  return [3, 6];
@@ -11,7 +11,7 @@ export var serializeAws_restJson1DeleteThingShadowCommand = function (input, con
11
11
  case 1:
12
12
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
13
13
  headers = {};
14
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/shadow";
14
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/shadow";
15
15
  if (input.thingName !== undefined) {
16
16
  labelValue = input.thingName;
17
17
  if (labelValue.length <= 0) {
@@ -44,7 +44,7 @@ export var serializeAws_restJson1GetRetainedMessageCommand = function (input, co
44
44
  case 1:
45
45
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
46
46
  headers = {};
47
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/retainedMessage/{topic}";
47
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/retainedMessage/{topic}";
48
48
  if (input.topic !== undefined) {
49
49
  labelValue = input.topic;
50
50
  if (labelValue.length <= 0) {
@@ -75,7 +75,7 @@ export var serializeAws_restJson1GetThingShadowCommand = function (input, contex
75
75
  case 1:
76
76
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
77
77
  headers = {};
78
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/shadow";
78
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/shadow";
79
79
  if (input.thingName !== undefined) {
80
80
  labelValue = input.thingName;
81
81
  if (labelValue.length <= 0) {
@@ -108,7 +108,7 @@ export var serializeAws_restJson1ListNamedShadowsForThingCommand = function (inp
108
108
  case 1:
109
109
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
110
110
  headers = {};
111
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
111
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") +
112
112
  "/api/things/shadow/ListNamedShadowsForThing/{thingName}";
113
113
  if (input.thingName !== undefined) {
114
114
  labelValue = input.thingName;
@@ -142,7 +142,7 @@ export var serializeAws_restJson1ListRetainedMessagesCommand = function (input,
142
142
  case 1:
143
143
  _a = _c.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
144
144
  headers = {};
145
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/retainedMessage";
145
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/retainedMessage";
146
146
  query = __assign(__assign({}, (input.nextToken !== undefined && { nextToken: input.nextToken })), (input.maxResults !== undefined && { maxResults: input.maxResults.toString() }));
147
147
  return [2, new __HttpRequest({
148
148
  protocol: protocol,
@@ -167,7 +167,7 @@ export var serializeAws_restJson1PublishCommand = function (input, context) { re
167
167
  headers = {
168
168
  "content-type": "application/octet-stream",
169
169
  };
170
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/topics/{topic}";
170
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/topics/{topic}";
171
171
  if (input.topic !== undefined) {
172
172
  labelValue = input.topic;
173
173
  if (labelValue.length <= 0) {
@@ -205,7 +205,7 @@ export var serializeAws_restJson1UpdateThingShadowCommand = function (input, con
205
205
  headers = {
206
206
  "content-type": "application/octet-stream",
207
207
  };
208
- resolvedPath = "" + ((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/shadow";
208
+ resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/things/{thingName}/shadow";
209
209
  if (input.thingName !== undefined) {
210
210
  labelValue = input.thingName;
211
211
  if (labelValue.length <= 0) {
@@ -21,11 +21,11 @@ export declare const getRuntimeConfig: (config: IoTDataPlaneClientConfig) => {
21
21
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
22
22
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
23
23
  serviceId: string;
24
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
24
+ region: string | import("@aws-sdk/types").Provider<any>;
25
25
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
26
26
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
27
27
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
28
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
28
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
29
29
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
30
30
  tls?: boolean | undefined;
31
31
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
@@ -19,11 +19,11 @@ export declare const getRuntimeConfig: (config: IoTDataPlaneClientConfig) => {
19
19
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
20
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
21
21
  serviceId: string;
22
- region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;
22
+ region: string | import("@aws-sdk/types").Provider<any>;
23
23
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
24
24
  regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider;
25
25
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
26
- defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode> | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
26
+ defaultsMode: import("@aws-sdk/smithy-client").DefaultsMode | import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").DefaultsMode>;
27
27
  endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined;
28
28
  tls?: boolean | undefined;
29
29
  retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined;
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.54.1",
4
+ "version": "3.58.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,47 +18,47 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.54.1",
22
- "@aws-sdk/config-resolver": "3.54.1",
23
- "@aws-sdk/credential-provider-node": "3.54.1",
24
- "@aws-sdk/fetch-http-handler": "3.54.1",
25
- "@aws-sdk/hash-node": "3.54.1",
26
- "@aws-sdk/invalid-dependency": "3.54.1",
27
- "@aws-sdk/middleware-content-length": "3.54.1",
28
- "@aws-sdk/middleware-host-header": "3.54.1",
29
- "@aws-sdk/middleware-logger": "3.54.1",
30
- "@aws-sdk/middleware-retry": "3.54.1",
31
- "@aws-sdk/middleware-serde": "3.54.1",
32
- "@aws-sdk/middleware-signing": "3.54.1",
33
- "@aws-sdk/middleware-stack": "3.54.1",
34
- "@aws-sdk/middleware-user-agent": "3.54.1",
35
- "@aws-sdk/node-config-provider": "3.54.1",
36
- "@aws-sdk/node-http-handler": "3.54.1",
37
- "@aws-sdk/protocol-http": "3.54.1",
38
- "@aws-sdk/smithy-client": "3.54.1",
39
- "@aws-sdk/types": "3.54.1",
40
- "@aws-sdk/url-parser": "3.54.1",
41
- "@aws-sdk/util-base64-browser": "3.52.0",
42
- "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.54.0",
44
- "@aws-sdk/util-body-length-node": "3.54.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.54.1",
46
- "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
- "@aws-sdk/util-user-agent-browser": "3.54.1",
48
- "@aws-sdk/util-user-agent-node": "3.54.1",
49
- "@aws-sdk/util-utf8-browser": "3.52.0",
50
- "@aws-sdk/util-utf8-node": "3.52.0",
51
- "tslib": "^2.3.0"
21
+ "@aws-sdk/client-sts": "3.58.0",
22
+ "@aws-sdk/config-resolver": "3.58.0",
23
+ "@aws-sdk/credential-provider-node": "3.58.0",
24
+ "@aws-sdk/fetch-http-handler": "3.58.0",
25
+ "@aws-sdk/hash-node": "3.55.0",
26
+ "@aws-sdk/invalid-dependency": "3.55.0",
27
+ "@aws-sdk/middleware-content-length": "3.58.0",
28
+ "@aws-sdk/middleware-host-header": "3.58.0",
29
+ "@aws-sdk/middleware-logger": "3.55.0",
30
+ "@aws-sdk/middleware-retry": "3.58.0",
31
+ "@aws-sdk/middleware-serde": "3.55.0",
32
+ "@aws-sdk/middleware-signing": "3.58.0",
33
+ "@aws-sdk/middleware-stack": "3.55.0",
34
+ "@aws-sdk/middleware-user-agent": "3.58.0",
35
+ "@aws-sdk/node-config-provider": "3.58.0",
36
+ "@aws-sdk/node-http-handler": "3.58.0",
37
+ "@aws-sdk/protocol-http": "3.58.0",
38
+ "@aws-sdk/smithy-client": "3.55.0",
39
+ "@aws-sdk/types": "3.55.0",
40
+ "@aws-sdk/url-parser": "3.55.0",
41
+ "@aws-sdk/util-base64-browser": "3.58.0",
42
+ "@aws-sdk/util-base64-node": "3.55.0",
43
+ "@aws-sdk/util-body-length-browser": "3.55.0",
44
+ "@aws-sdk/util-body-length-node": "3.55.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.55.0",
46
+ "@aws-sdk/util-defaults-mode-node": "3.58.0",
47
+ "@aws-sdk/util-user-agent-browser": "3.58.0",
48
+ "@aws-sdk/util-user-agent-node": "3.58.0",
49
+ "@aws-sdk/util-utf8-browser": "3.55.0",
50
+ "@aws-sdk/util-utf8-node": "3.55.0",
51
+ "tslib": "^2.3.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@aws-sdk/service-client-documentation-generator": "3.52.0",
54
+ "@aws-sdk/service-client-documentation-generator": "3.58.0",
55
55
  "@tsconfig/recommended": "1.0.1",
56
56
  "@types/node": "^12.7.5",
57
57
  "concurrently": "7.0.0",
58
58
  "downlevel-dts": "0.7.0",
59
59
  "rimraf": "3.0.2",
60
60
  "typedoc": "0.19.2",
61
- "typescript": "~4.3.5"
61
+ "typescript": "~4.6.2"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=12.0.0"