@aws-sdk/client-iotsecuretunneling 3.118.0 → 3.127.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,33 @@
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.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
9
+
10
+
11
+
12
+
13
+
14
+ # [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
15
+
16
+
17
+ ### Features
18
+
19
+ * **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
20
+
21
+
22
+
23
+
24
+
25
+ ## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
7
34
 
8
35
  **Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
@@ -105,18 +105,19 @@ const deserializeAws_json1_1CloseTunnelCommandError = async (output, context) =>
105
105
  body: await parseBody(output.body, context),
106
106
  };
107
107
  let response;
108
- let errorCode = "UnknownError";
109
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
108
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
110
109
  switch (errorCode) {
111
110
  case "ResourceNotFoundException":
112
111
  case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
113
112
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
114
113
  default:
115
114
  const parsedBody = parsedOutput.body;
115
+ const $metadata = deserializeMetadata(output);
116
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
116
117
  response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
117
- name: parsedBody.code || parsedBody.Code || errorCode,
118
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
118
119
  $fault: "client",
119
- $metadata: deserializeMetadata(output),
120
+ $metadata,
120
121
  });
121
122
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
122
123
  }
@@ -141,18 +142,19 @@ const deserializeAws_json1_1DescribeTunnelCommandError = async (output, context)
141
142
  body: await parseBody(output.body, context),
142
143
  };
143
144
  let response;
144
- let errorCode = "UnknownError";
145
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
145
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
146
146
  switch (errorCode) {
147
147
  case "ResourceNotFoundException":
148
148
  case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
149
149
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
150
150
  default:
151
151
  const parsedBody = parsedOutput.body;
152
+ const $metadata = deserializeMetadata(output);
153
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
152
154
  response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
153
- name: parsedBody.code || parsedBody.Code || errorCode,
155
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
154
156
  $fault: "client",
155
- $metadata: deserializeMetadata(output),
157
+ $metadata,
156
158
  });
157
159
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
158
160
  }
@@ -177,18 +179,19 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
177
179
  body: await parseBody(output.body, context),
178
180
  };
179
181
  let response;
180
- let errorCode = "UnknownError";
181
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
182
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
182
183
  switch (errorCode) {
183
184
  case "ResourceNotFoundException":
184
185
  case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
185
186
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
186
187
  default:
187
188
  const parsedBody = parsedOutput.body;
189
+ const $metadata = deserializeMetadata(output);
190
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
188
191
  response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
189
- name: parsedBody.code || parsedBody.Code || errorCode,
192
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
190
193
  $fault: "client",
191
- $metadata: deserializeMetadata(output),
194
+ $metadata,
192
195
  });
193
196
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
194
197
  }
@@ -213,15 +216,16 @@ const deserializeAws_json1_1ListTunnelsCommandError = async (output, context) =>
213
216
  body: await parseBody(output.body, context),
214
217
  };
215
218
  let response;
216
- let errorCode = "UnknownError";
217
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
219
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
218
220
  switch (errorCode) {
219
221
  default:
220
222
  const parsedBody = parsedOutput.body;
223
+ const $metadata = deserializeMetadata(output);
224
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
221
225
  response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
222
- name: parsedBody.code || parsedBody.Code || errorCode,
226
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
223
227
  $fault: "client",
224
- $metadata: deserializeMetadata(output),
228
+ $metadata,
225
229
  });
226
230
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
227
231
  }
@@ -246,18 +250,19 @@ const deserializeAws_json1_1OpenTunnelCommandError = async (output, context) =>
246
250
  body: await parseBody(output.body, context),
247
251
  };
248
252
  let response;
249
- let errorCode = "UnknownError";
250
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
253
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
251
254
  switch (errorCode) {
252
255
  case "LimitExceededException":
253
256
  case "com.amazonaws.iotsecuretunneling#LimitExceededException":
254
257
  throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
255
258
  default:
256
259
  const parsedBody = parsedOutput.body;
260
+ const $metadata = deserializeMetadata(output);
261
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
257
262
  response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
258
- name: parsedBody.code || parsedBody.Code || errorCode,
263
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
259
264
  $fault: "client",
260
- $metadata: deserializeMetadata(output),
265
+ $metadata,
261
266
  });
262
267
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
263
268
  }
@@ -282,18 +287,19 @@ const deserializeAws_json1_1RotateTunnelAccessTokenCommandError = async (output,
282
287
  body: await parseBody(output.body, context),
283
288
  };
284
289
  let response;
285
- let errorCode = "UnknownError";
286
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
290
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
287
291
  switch (errorCode) {
288
292
  case "ResourceNotFoundException":
289
293
  case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
290
294
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
291
295
  default:
292
296
  const parsedBody = parsedOutput.body;
297
+ const $metadata = deserializeMetadata(output);
298
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
293
299
  response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
294
- name: parsedBody.code || parsedBody.Code || errorCode,
300
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
295
301
  $fault: "client",
296
- $metadata: deserializeMetadata(output),
302
+ $metadata,
297
303
  });
298
304
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
299
305
  }
@@ -318,18 +324,19 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
318
324
  body: await parseBody(output.body, context),
319
325
  };
320
326
  let response;
321
- let errorCode = "UnknownError";
322
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
327
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
323
328
  switch (errorCode) {
324
329
  case "ResourceNotFoundException":
325
330
  case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
326
331
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
327
332
  default:
328
333
  const parsedBody = parsedOutput.body;
334
+ const $metadata = deserializeMetadata(output);
335
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
329
336
  response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
330
- name: parsedBody.code || parsedBody.Code || errorCode,
337
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
331
338
  $fault: "client",
332
- $metadata: deserializeMetadata(output),
339
+ $metadata,
333
340
  });
334
341
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
335
342
  }
@@ -354,18 +361,19 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
354
361
  body: await parseBody(output.body, context),
355
362
  };
356
363
  let response;
357
- let errorCode = "UnknownError";
358
- errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
364
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
359
365
  switch (errorCode) {
360
366
  case "ResourceNotFoundException":
361
367
  case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
362
368
  throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
363
369
  default:
364
370
  const parsedBody = parsedOutput.body;
371
+ const $metadata = deserializeMetadata(output);
372
+ const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
365
373
  response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
366
- name: parsedBody.code || parsedBody.Code || errorCode,
374
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
367
375
  $fault: "client",
368
- $metadata: deserializeMetadata(output),
376
+ $metadata,
369
377
  });
370
378
  throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
371
379
  }
@@ -390,56 +398,52 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
390
398
  };
391
399
  const serializeAws_json1_1CloseTunnelRequest = (input, context) => {
392
400
  return {
393
- ...(input.delete !== undefined && input.delete !== null && { delete: input.delete }),
394
- ...(input.tunnelId !== undefined && input.tunnelId !== null && { tunnelId: input.tunnelId }),
401
+ ...(input.delete != null && { delete: input.delete }),
402
+ ...(input.tunnelId != null && { tunnelId: input.tunnelId }),
395
403
  };
396
404
  };
397
405
  const serializeAws_json1_1DescribeTunnelRequest = (input, context) => {
398
406
  return {
399
- ...(input.tunnelId !== undefined && input.tunnelId !== null && { tunnelId: input.tunnelId }),
407
+ ...(input.tunnelId != null && { tunnelId: input.tunnelId }),
400
408
  };
401
409
  };
402
410
  const serializeAws_json1_1DestinationConfig = (input, context) => {
403
411
  return {
404
- ...(input.services !== undefined &&
405
- input.services !== null && { services: serializeAws_json1_1ServiceList(input.services, context) }),
406
- ...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
412
+ ...(input.services != null && { services: serializeAws_json1_1ServiceList(input.services, context) }),
413
+ ...(input.thingName != null && { thingName: input.thingName }),
407
414
  };
408
415
  };
409
416
  const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
410
417
  return {
411
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
418
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
412
419
  };
413
420
  };
414
421
  const serializeAws_json1_1ListTunnelsRequest = (input, context) => {
415
422
  return {
416
- ...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
417
- ...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
418
- ...(input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }),
423
+ ...(input.maxResults != null && { maxResults: input.maxResults }),
424
+ ...(input.nextToken != null && { nextToken: input.nextToken }),
425
+ ...(input.thingName != null && { thingName: input.thingName }),
419
426
  };
420
427
  };
421
428
  const serializeAws_json1_1OpenTunnelRequest = (input, context) => {
422
429
  return {
423
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
424
- ...(input.destinationConfig !== undefined &&
425
- input.destinationConfig !== null && {
430
+ ...(input.description != null && { description: input.description }),
431
+ ...(input.destinationConfig != null && {
426
432
  destinationConfig: serializeAws_json1_1DestinationConfig(input.destinationConfig, context),
427
433
  }),
428
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
429
- ...(input.timeoutConfig !== undefined &&
430
- input.timeoutConfig !== null && {
434
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
435
+ ...(input.timeoutConfig != null && {
431
436
  timeoutConfig: serializeAws_json1_1TimeoutConfig(input.timeoutConfig, context),
432
437
  }),
433
438
  };
434
439
  };
435
440
  const serializeAws_json1_1RotateTunnelAccessTokenRequest = (input, context) => {
436
441
  return {
437
- ...(input.clientMode !== undefined && input.clientMode !== null && { clientMode: input.clientMode }),
438
- ...(input.destinationConfig !== undefined &&
439
- input.destinationConfig !== null && {
442
+ ...(input.clientMode != null && { clientMode: input.clientMode }),
443
+ ...(input.destinationConfig != null && {
440
444
  destinationConfig: serializeAws_json1_1DestinationConfig(input.destinationConfig, context),
441
445
  }),
442
- ...(input.tunnelId !== undefined && input.tunnelId !== null && { tunnelId: input.tunnelId }),
446
+ ...(input.tunnelId != null && { tunnelId: input.tunnelId }),
443
447
  };
444
448
  };
445
449
  const serializeAws_json1_1ServiceList = (input, context) => {
@@ -454,8 +458,8 @@ const serializeAws_json1_1ServiceList = (input, context) => {
454
458
  };
455
459
  const serializeAws_json1_1Tag = (input, context) => {
456
460
  return {
457
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
458
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
461
+ ...(input.key != null && { key: input.key }),
462
+ ...(input.value != null && { value: input.value }),
459
463
  };
460
464
  };
461
465
  const serializeAws_json1_1TagKeyList = (input, context) => {
@@ -480,21 +484,19 @@ const serializeAws_json1_1TagList = (input, context) => {
480
484
  };
481
485
  const serializeAws_json1_1TagResourceRequest = (input, context) => {
482
486
  return {
483
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
484
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
487
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
488
+ ...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
485
489
  };
486
490
  };
487
491
  const serializeAws_json1_1TimeoutConfig = (input, context) => {
488
492
  return {
489
- ...(input.maxLifetimeTimeoutMinutes !== undefined &&
490
- input.maxLifetimeTimeoutMinutes !== null && { maxLifetimeTimeoutMinutes: input.maxLifetimeTimeoutMinutes }),
493
+ ...(input.maxLifetimeTimeoutMinutes != null && { maxLifetimeTimeoutMinutes: input.maxLifetimeTimeoutMinutes }),
491
494
  };
492
495
  };
493
496
  const serializeAws_json1_1UntagResourceRequest = (input, context) => {
494
497
  return {
495
- ...(input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }),
496
- ...(input.tagKeys !== undefined &&
497
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
498
+ ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
499
+ ...(input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }),
498
500
  };
499
501
  };
500
502
  const deserializeAws_json1_1CloseTunnelResponse = (output, context) => {
@@ -502,7 +504,7 @@ const deserializeAws_json1_1CloseTunnelResponse = (output, context) => {
502
504
  };
503
505
  const deserializeAws_json1_1ConnectionState = (output, context) => {
504
506
  return {
505
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
507
+ lastUpdatedAt: output.lastUpdatedAt != null
506
508
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
507
509
  : undefined,
508
510
  status: (0, smithy_client_1.expectString)(output.status),
@@ -510,16 +512,12 @@ const deserializeAws_json1_1ConnectionState = (output, context) => {
510
512
  };
511
513
  const deserializeAws_json1_1DescribeTunnelResponse = (output, context) => {
512
514
  return {
513
- tunnel: output.tunnel !== undefined && output.tunnel !== null
514
- ? deserializeAws_json1_1Tunnel(output.tunnel, context)
515
- : undefined,
515
+ tunnel: output.tunnel != null ? deserializeAws_json1_1Tunnel(output.tunnel, context) : undefined,
516
516
  };
517
517
  };
518
518
  const deserializeAws_json1_1DestinationConfig = (output, context) => {
519
519
  return {
520
- services: output.services !== undefined && output.services !== null
521
- ? deserializeAws_json1_1ServiceList(output.services, context)
522
- : undefined,
520
+ services: output.services != null ? deserializeAws_json1_1ServiceList(output.services, context) : undefined,
523
521
  thingName: (0, smithy_client_1.expectString)(output.thingName),
524
522
  };
525
523
  };
@@ -530,15 +528,13 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
530
528
  };
531
529
  const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
532
530
  return {
533
- tags: output.tags !== undefined && output.tags !== null
534
- ? deserializeAws_json1_1TagList(output.tags, context)
535
- : undefined,
531
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
536
532
  };
537
533
  };
538
534
  const deserializeAws_json1_1ListTunnelsResponse = (output, context) => {
539
535
  return {
540
536
  nextToken: (0, smithy_client_1.expectString)(output.nextToken),
541
- tunnelSummaries: output.tunnelSummaries !== undefined && output.tunnelSummaries !== null
537
+ tunnelSummaries: output.tunnelSummaries != null
542
538
  ? deserializeAws_json1_1TunnelSummaryList(output.tunnelSummaries, context)
543
539
  : undefined,
544
540
  };
@@ -601,40 +597,32 @@ const deserializeAws_json1_1TimeoutConfig = (output, context) => {
601
597
  };
602
598
  const deserializeAws_json1_1Tunnel = (output, context) => {
603
599
  return {
604
- createdAt: output.createdAt !== undefined && output.createdAt !== null
605
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
606
- : undefined,
600
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
607
601
  description: (0, smithy_client_1.expectString)(output.description),
608
- destinationConfig: output.destinationConfig !== undefined && output.destinationConfig !== null
602
+ destinationConfig: output.destinationConfig != null
609
603
  ? deserializeAws_json1_1DestinationConfig(output.destinationConfig, context)
610
604
  : undefined,
611
- destinationConnectionState: output.destinationConnectionState !== undefined && output.destinationConnectionState !== null
605
+ destinationConnectionState: output.destinationConnectionState != null
612
606
  ? deserializeAws_json1_1ConnectionState(output.destinationConnectionState, context)
613
607
  : undefined,
614
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
608
+ lastUpdatedAt: output.lastUpdatedAt != null
615
609
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
616
610
  : undefined,
617
- sourceConnectionState: output.sourceConnectionState !== undefined && output.sourceConnectionState !== null
611
+ sourceConnectionState: output.sourceConnectionState != null
618
612
  ? deserializeAws_json1_1ConnectionState(output.sourceConnectionState, context)
619
613
  : undefined,
620
614
  status: (0, smithy_client_1.expectString)(output.status),
621
- tags: output.tags !== undefined && output.tags !== null
622
- ? deserializeAws_json1_1TagList(output.tags, context)
623
- : undefined,
624
- timeoutConfig: output.timeoutConfig !== undefined && output.timeoutConfig !== null
625
- ? deserializeAws_json1_1TimeoutConfig(output.timeoutConfig, context)
626
- : undefined,
615
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
616
+ timeoutConfig: output.timeoutConfig != null ? deserializeAws_json1_1TimeoutConfig(output.timeoutConfig, context) : undefined,
627
617
  tunnelArn: (0, smithy_client_1.expectString)(output.tunnelArn),
628
618
  tunnelId: (0, smithy_client_1.expectString)(output.tunnelId),
629
619
  };
630
620
  };
631
621
  const deserializeAws_json1_1TunnelSummary = (output, context) => {
632
622
  return {
633
- createdAt: output.createdAt !== undefined && output.createdAt !== null
634
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
635
- : undefined,
623
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
636
624
  description: (0, smithy_client_1.expectString)(output.description),
637
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
625
+ lastUpdatedAt: output.lastUpdatedAt != null
638
626
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
639
627
  : undefined,
640
628
  status: (0, smithy_client_1.expectString)(output.status),
@@ -718,5 +706,4 @@ const loadRestJsonErrorCode = (output, data) => {
718
706
  if (data["__type"] !== undefined) {
719
707
  return sanitizeErrorCode(data["__type"]);
720
708
  }
721
- return "";
722
709
  };
@@ -110,7 +110,7 @@ export var deserializeAws_json1_1CloseTunnelCommand = function (output, context)
110
110
  });
111
111
  }); };
112
112
  var deserializeAws_json1_1CloseTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
113
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
113
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
114
114
  var _c;
115
115
  return __generator(this, function (_d) {
116
116
  switch (_d.label) {
@@ -120,7 +120,6 @@ var deserializeAws_json1_1CloseTunnelCommandError = function (output, context) {
120
120
  return [4, parseBody(output.body, context)];
121
121
  case 1:
122
122
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
123
- errorCode = "UnknownError";
124
123
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
125
124
  _b = errorCode;
126
125
  switch (_b) {
@@ -132,10 +131,12 @@ var deserializeAws_json1_1CloseTunnelCommandError = function (output, context) {
132
131
  case 3: throw _d.sent();
133
132
  case 4:
134
133
  parsedBody = parsedOutput.body;
134
+ $metadata = deserializeMetadata(output);
135
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
135
136
  response = new __BaseException({
136
- name: parsedBody.code || parsedBody.Code || errorCode,
137
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
137
138
  $fault: "client",
138
- $metadata: deserializeMetadata(output),
139
+ $metadata: $metadata,
139
140
  });
140
141
  throw __decorateServiceException(response, parsedBody);
141
142
  }
@@ -160,7 +161,7 @@ export var deserializeAws_json1_1DescribeTunnelCommand = function (output, conte
160
161
  });
161
162
  }); };
162
163
  var deserializeAws_json1_1DescribeTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
163
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
164
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
164
165
  var _c;
165
166
  return __generator(this, function (_d) {
166
167
  switch (_d.label) {
@@ -170,7 +171,6 @@ var deserializeAws_json1_1DescribeTunnelCommandError = function (output, context
170
171
  return [4, parseBody(output.body, context)];
171
172
  case 1:
172
173
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
173
- errorCode = "UnknownError";
174
174
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
175
175
  _b = errorCode;
176
176
  switch (_b) {
@@ -182,10 +182,12 @@ var deserializeAws_json1_1DescribeTunnelCommandError = function (output, context
182
182
  case 3: throw _d.sent();
183
183
  case 4:
184
184
  parsedBody = parsedOutput.body;
185
+ $metadata = deserializeMetadata(output);
186
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
185
187
  response = new __BaseException({
186
- name: parsedBody.code || parsedBody.Code || errorCode,
188
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
187
189
  $fault: "client",
188
- $metadata: deserializeMetadata(output),
190
+ $metadata: $metadata,
189
191
  });
190
192
  throw __decorateServiceException(response, parsedBody);
191
193
  }
@@ -210,7 +212,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
210
212
  });
211
213
  }); };
212
214
  var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
213
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
215
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
214
216
  var _c;
215
217
  return __generator(this, function (_d) {
216
218
  switch (_d.label) {
@@ -220,7 +222,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
220
222
  return [4, parseBody(output.body, context)];
221
223
  case 1:
222
224
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
223
- errorCode = "UnknownError";
224
225
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
225
226
  _b = errorCode;
226
227
  switch (_b) {
@@ -232,10 +233,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
232
233
  case 3: throw _d.sent();
233
234
  case 4:
234
235
  parsedBody = parsedOutput.body;
236
+ $metadata = deserializeMetadata(output);
237
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
235
238
  response = new __BaseException({
236
- name: parsedBody.code || parsedBody.Code || errorCode,
239
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
237
240
  $fault: "client",
238
- $metadata: deserializeMetadata(output),
241
+ $metadata: $metadata,
239
242
  });
240
243
  throw __decorateServiceException(response, parsedBody);
241
244
  }
@@ -260,7 +263,7 @@ export var deserializeAws_json1_1ListTunnelsCommand = function (output, context)
260
263
  });
261
264
  }); };
262
265
  var deserializeAws_json1_1ListTunnelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
263
- var parsedOutput, _a, response, errorCode, parsedBody;
266
+ var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
264
267
  var _b;
265
268
  return __generator(this, function (_c) {
266
269
  switch (_c.label) {
@@ -270,15 +273,16 @@ var deserializeAws_json1_1ListTunnelsCommandError = function (output, context) {
270
273
  return [4, parseBody(output.body, context)];
271
274
  case 1:
272
275
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
273
- errorCode = "UnknownError";
274
276
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
275
277
  switch (errorCode) {
276
278
  default:
277
279
  parsedBody = parsedOutput.body;
280
+ $metadata = deserializeMetadata(output);
281
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
278
282
  response = new __BaseException({
279
- name: parsedBody.code || parsedBody.Code || errorCode,
283
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
280
284
  $fault: "client",
281
- $metadata: deserializeMetadata(output),
285
+ $metadata: $metadata,
282
286
  });
283
287
  throw __decorateServiceException(response, parsedBody);
284
288
  }
@@ -305,7 +309,7 @@ export var deserializeAws_json1_1OpenTunnelCommand = function (output, context)
305
309
  });
306
310
  }); };
307
311
  var deserializeAws_json1_1OpenTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
308
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
312
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
309
313
  var _c;
310
314
  return __generator(this, function (_d) {
311
315
  switch (_d.label) {
@@ -315,7 +319,6 @@ var deserializeAws_json1_1OpenTunnelCommandError = function (output, context) {
315
319
  return [4, parseBody(output.body, context)];
316
320
  case 1:
317
321
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
318
- errorCode = "UnknownError";
319
322
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
320
323
  _b = errorCode;
321
324
  switch (_b) {
@@ -327,10 +330,12 @@ var deserializeAws_json1_1OpenTunnelCommandError = function (output, context) {
327
330
  case 3: throw _d.sent();
328
331
  case 4:
329
332
  parsedBody = parsedOutput.body;
333
+ $metadata = deserializeMetadata(output);
334
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
330
335
  response = new __BaseException({
331
- name: parsedBody.code || parsedBody.Code || errorCode,
336
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
332
337
  $fault: "client",
333
- $metadata: deserializeMetadata(output),
338
+ $metadata: $metadata,
334
339
  });
335
340
  throw __decorateServiceException(response, parsedBody);
336
341
  }
@@ -355,7 +360,7 @@ export var deserializeAws_json1_1RotateTunnelAccessTokenCommand = function (outp
355
360
  });
356
361
  }); };
357
362
  var deserializeAws_json1_1RotateTunnelAccessTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
358
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
363
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
359
364
  var _c;
360
365
  return __generator(this, function (_d) {
361
366
  switch (_d.label) {
@@ -365,7 +370,6 @@ var deserializeAws_json1_1RotateTunnelAccessTokenCommandError = function (output
365
370
  return [4, parseBody(output.body, context)];
366
371
  case 1:
367
372
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
368
- errorCode = "UnknownError";
369
373
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
370
374
  _b = errorCode;
371
375
  switch (_b) {
@@ -377,10 +381,12 @@ var deserializeAws_json1_1RotateTunnelAccessTokenCommandError = function (output
377
381
  case 3: throw _d.sent();
378
382
  case 4:
379
383
  parsedBody = parsedOutput.body;
384
+ $metadata = deserializeMetadata(output);
385
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
380
386
  response = new __BaseException({
381
- name: parsedBody.code || parsedBody.Code || errorCode,
387
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
382
388
  $fault: "client",
383
- $metadata: deserializeMetadata(output),
389
+ $metadata: $metadata,
384
390
  });
385
391
  throw __decorateServiceException(response, parsedBody);
386
392
  }
@@ -405,7 +411,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
405
411
  });
406
412
  }); };
407
413
  var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
408
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
414
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
409
415
  var _c;
410
416
  return __generator(this, function (_d) {
411
417
  switch (_d.label) {
@@ -415,7 +421,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
415
421
  return [4, parseBody(output.body, context)];
416
422
  case 1:
417
423
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
418
- errorCode = "UnknownError";
419
424
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
420
425
  _b = errorCode;
421
426
  switch (_b) {
@@ -427,10 +432,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
427
432
  case 3: throw _d.sent();
428
433
  case 4:
429
434
  parsedBody = parsedOutput.body;
435
+ $metadata = deserializeMetadata(output);
436
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
430
437
  response = new __BaseException({
431
- name: parsedBody.code || parsedBody.Code || errorCode,
438
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
432
439
  $fault: "client",
433
- $metadata: deserializeMetadata(output),
440
+ $metadata: $metadata,
434
441
  });
435
442
  throw __decorateServiceException(response, parsedBody);
436
443
  }
@@ -455,7 +462,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
455
462
  });
456
463
  }); };
457
464
  var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
458
- var parsedOutput, _a, response, errorCode, _b, parsedBody;
465
+ var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
459
466
  var _c;
460
467
  return __generator(this, function (_d) {
461
468
  switch (_d.label) {
@@ -465,7 +472,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
465
472
  return [4, parseBody(output.body, context)];
466
473
  case 1:
467
474
  parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
468
- errorCode = "UnknownError";
469
475
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
470
476
  _b = errorCode;
471
477
  switch (_b) {
@@ -477,10 +483,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
477
483
  case 3: throw _d.sent();
478
484
  case 4:
479
485
  parsedBody = parsedOutput.body;
486
+ $metadata = deserializeMetadata(output);
487
+ statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
480
488
  response = new __BaseException({
481
- name: parsedBody.code || parsedBody.Code || errorCode,
489
+ name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
482
490
  $fault: "client",
483
- $metadata: deserializeMetadata(output),
491
+ $metadata: $metadata,
484
492
  });
485
493
  throw __decorateServiceException(response, parsedBody);
486
494
  }
@@ -505,35 +513,31 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
505
513
  });
506
514
  }); };
507
515
  var serializeAws_json1_1CloseTunnelRequest = function (input, context) {
508
- return __assign(__assign({}, (input.delete !== undefined && input.delete !== null && { delete: input.delete })), (input.tunnelId !== undefined && input.tunnelId !== null && { tunnelId: input.tunnelId }));
516
+ return __assign(__assign({}, (input.delete != null && { delete: input.delete })), (input.tunnelId != null && { tunnelId: input.tunnelId }));
509
517
  };
510
518
  var serializeAws_json1_1DescribeTunnelRequest = function (input, context) {
511
- return __assign({}, (input.tunnelId !== undefined && input.tunnelId !== null && { tunnelId: input.tunnelId }));
519
+ return __assign({}, (input.tunnelId != null && { tunnelId: input.tunnelId }));
512
520
  };
513
521
  var serializeAws_json1_1DestinationConfig = function (input, context) {
514
- return __assign(__assign({}, (input.services !== undefined &&
515
- input.services !== null && { services: serializeAws_json1_1ServiceList(input.services, context) })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }));
522
+ return __assign(__assign({}, (input.services != null && { services: serializeAws_json1_1ServiceList(input.services, context) })), (input.thingName != null && { thingName: input.thingName }));
516
523
  };
517
524
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
518
- return __assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn }));
525
+ return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
519
526
  };
520
527
  var serializeAws_json1_1ListTunnelsRequest = function (input, context) {
521
- return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.thingName !== undefined && input.thingName !== null && { thingName: input.thingName }));
528
+ return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.thingName != null && { thingName: input.thingName }));
522
529
  };
523
530
  var serializeAws_json1_1OpenTunnelRequest = function (input, context) {
524
- return __assign(__assign(__assign(__assign({}, (input.description !== undefined && input.description !== null && { description: input.description })), (input.destinationConfig !== undefined &&
525
- input.destinationConfig !== null && {
531
+ return __assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.destinationConfig != null && {
526
532
  destinationConfig: serializeAws_json1_1DestinationConfig(input.destinationConfig, context),
527
- })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.timeoutConfig !== undefined &&
528
- input.timeoutConfig !== null && {
533
+ })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.timeoutConfig != null && {
529
534
  timeoutConfig: serializeAws_json1_1TimeoutConfig(input.timeoutConfig, context),
530
535
  }));
531
536
  };
532
537
  var serializeAws_json1_1RotateTunnelAccessTokenRequest = function (input, context) {
533
- return __assign(__assign(__assign({}, (input.clientMode !== undefined && input.clientMode !== null && { clientMode: input.clientMode })), (input.destinationConfig !== undefined &&
534
- input.destinationConfig !== null && {
538
+ return __assign(__assign(__assign({}, (input.clientMode != null && { clientMode: input.clientMode })), (input.destinationConfig != null && {
535
539
  destinationConfig: serializeAws_json1_1DestinationConfig(input.destinationConfig, context),
536
- })), (input.tunnelId !== undefined && input.tunnelId !== null && { tunnelId: input.tunnelId }));
540
+ })), (input.tunnelId != null && { tunnelId: input.tunnelId }));
537
541
  };
538
542
  var serializeAws_json1_1ServiceList = function (input, context) {
539
543
  return input
@@ -546,7 +550,7 @@ var serializeAws_json1_1ServiceList = function (input, context) {
546
550
  });
547
551
  };
548
552
  var serializeAws_json1_1Tag = function (input, context) {
549
- return __assign(__assign({}, (input.key !== undefined && input.key !== null && { key: input.key })), (input.value !== undefined && input.value !== null && { value: input.value }));
553
+ return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
550
554
  };
551
555
  var serializeAws_json1_1TagKeyList = function (input, context) {
552
556
  return input
@@ -569,22 +573,20 @@ var serializeAws_json1_1TagList = function (input, context) {
569
573
  });
570
574
  };
571
575
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
572
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tags !== undefined && input.tags !== null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
576
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
573
577
  };
574
578
  var serializeAws_json1_1TimeoutConfig = function (input, context) {
575
- return __assign({}, (input.maxLifetimeTimeoutMinutes !== undefined &&
576
- input.maxLifetimeTimeoutMinutes !== null && { maxLifetimeTimeoutMinutes: input.maxLifetimeTimeoutMinutes }));
579
+ return __assign({}, (input.maxLifetimeTimeoutMinutes != null && { maxLifetimeTimeoutMinutes: input.maxLifetimeTimeoutMinutes }));
577
580
  };
578
581
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
579
- return __assign(__assign({}, (input.resourceArn !== undefined && input.resourceArn !== null && { resourceArn: input.resourceArn })), (input.tagKeys !== undefined &&
580
- input.tagKeys !== null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
582
+ return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tagKeys != null && { tagKeys: serializeAws_json1_1TagKeyList(input.tagKeys, context) }));
581
583
  };
582
584
  var deserializeAws_json1_1CloseTunnelResponse = function (output, context) {
583
585
  return {};
584
586
  };
585
587
  var deserializeAws_json1_1ConnectionState = function (output, context) {
586
588
  return {
587
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
589
+ lastUpdatedAt: output.lastUpdatedAt != null
588
590
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
589
591
  : undefined,
590
592
  status: __expectString(output.status),
@@ -592,16 +594,12 @@ var deserializeAws_json1_1ConnectionState = function (output, context) {
592
594
  };
593
595
  var deserializeAws_json1_1DescribeTunnelResponse = function (output, context) {
594
596
  return {
595
- tunnel: output.tunnel !== undefined && output.tunnel !== null
596
- ? deserializeAws_json1_1Tunnel(output.tunnel, context)
597
- : undefined,
597
+ tunnel: output.tunnel != null ? deserializeAws_json1_1Tunnel(output.tunnel, context) : undefined,
598
598
  };
599
599
  };
600
600
  var deserializeAws_json1_1DestinationConfig = function (output, context) {
601
601
  return {
602
- services: output.services !== undefined && output.services !== null
603
- ? deserializeAws_json1_1ServiceList(output.services, context)
604
- : undefined,
602
+ services: output.services != null ? deserializeAws_json1_1ServiceList(output.services, context) : undefined,
605
603
  thingName: __expectString(output.thingName),
606
604
  };
607
605
  };
@@ -612,15 +610,13 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
612
610
  };
613
611
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
614
612
  return {
615
- tags: output.tags !== undefined && output.tags !== null
616
- ? deserializeAws_json1_1TagList(output.tags, context)
617
- : undefined,
613
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
618
614
  };
619
615
  };
620
616
  var deserializeAws_json1_1ListTunnelsResponse = function (output, context) {
621
617
  return {
622
618
  nextToken: __expectString(output.nextToken),
623
- tunnelSummaries: output.tunnelSummaries !== undefined && output.tunnelSummaries !== null
619
+ tunnelSummaries: output.tunnelSummaries != null
624
620
  ? deserializeAws_json1_1TunnelSummaryList(output.tunnelSummaries, context)
625
621
  : undefined,
626
622
  };
@@ -683,40 +679,32 @@ var deserializeAws_json1_1TimeoutConfig = function (output, context) {
683
679
  };
684
680
  var deserializeAws_json1_1Tunnel = function (output, context) {
685
681
  return {
686
- createdAt: output.createdAt !== undefined && output.createdAt !== null
687
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
688
- : undefined,
682
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
689
683
  description: __expectString(output.description),
690
- destinationConfig: output.destinationConfig !== undefined && output.destinationConfig !== null
684
+ destinationConfig: output.destinationConfig != null
691
685
  ? deserializeAws_json1_1DestinationConfig(output.destinationConfig, context)
692
686
  : undefined,
693
- destinationConnectionState: output.destinationConnectionState !== undefined && output.destinationConnectionState !== null
687
+ destinationConnectionState: output.destinationConnectionState != null
694
688
  ? deserializeAws_json1_1ConnectionState(output.destinationConnectionState, context)
695
689
  : undefined,
696
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
690
+ lastUpdatedAt: output.lastUpdatedAt != null
697
691
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
698
692
  : undefined,
699
- sourceConnectionState: output.sourceConnectionState !== undefined && output.sourceConnectionState !== null
693
+ sourceConnectionState: output.sourceConnectionState != null
700
694
  ? deserializeAws_json1_1ConnectionState(output.sourceConnectionState, context)
701
695
  : undefined,
702
696
  status: __expectString(output.status),
703
- tags: output.tags !== undefined && output.tags !== null
704
- ? deserializeAws_json1_1TagList(output.tags, context)
705
- : undefined,
706
- timeoutConfig: output.timeoutConfig !== undefined && output.timeoutConfig !== null
707
- ? deserializeAws_json1_1TimeoutConfig(output.timeoutConfig, context)
708
- : undefined,
697
+ tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
698
+ timeoutConfig: output.timeoutConfig != null ? deserializeAws_json1_1TimeoutConfig(output.timeoutConfig, context) : undefined,
709
699
  tunnelArn: __expectString(output.tunnelArn),
710
700
  tunnelId: __expectString(output.tunnelId),
711
701
  };
712
702
  };
713
703
  var deserializeAws_json1_1TunnelSummary = function (output, context) {
714
704
  return {
715
- createdAt: output.createdAt !== undefined && output.createdAt !== null
716
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
717
- : undefined,
705
+ createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
718
706
  description: __expectString(output.description),
719
- lastUpdatedAt: output.lastUpdatedAt !== undefined && output.lastUpdatedAt !== null
707
+ lastUpdatedAt: output.lastUpdatedAt != null
720
708
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
721
709
  : undefined,
722
710
  status: __expectString(output.status),
@@ -812,5 +800,4 @@ var loadRestJsonErrorCode = function (output, data) {
812
800
  if (data["__type"] !== undefined) {
813
801
  return sanitizeErrorCode(data["__type"]);
814
802
  }
815
- return "";
816
803
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-iotsecuretunneling",
3
3
  "description": "AWS SDK for JavaScript Iotsecuretunneling Client for Node.js, Browser and React Native",
4
- "version": "3.118.0",
4
+ "version": "3.127.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,35 +18,35 @@
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.118.0",
22
- "@aws-sdk/config-resolver": "3.110.0",
23
- "@aws-sdk/credential-provider-node": "3.118.0",
24
- "@aws-sdk/fetch-http-handler": "3.110.0",
25
- "@aws-sdk/hash-node": "3.110.0",
26
- "@aws-sdk/invalid-dependency": "3.110.0",
27
- "@aws-sdk/middleware-content-length": "3.110.0",
28
- "@aws-sdk/middleware-host-header": "3.110.0",
29
- "@aws-sdk/middleware-logger": "3.110.0",
30
- "@aws-sdk/middleware-recursion-detection": "3.110.0",
31
- "@aws-sdk/middleware-retry": "3.110.0",
32
- "@aws-sdk/middleware-serde": "3.110.0",
33
- "@aws-sdk/middleware-signing": "3.110.0",
34
- "@aws-sdk/middleware-stack": "3.110.0",
35
- "@aws-sdk/middleware-user-agent": "3.110.0",
36
- "@aws-sdk/node-config-provider": "3.110.0",
37
- "@aws-sdk/node-http-handler": "3.110.0",
38
- "@aws-sdk/protocol-http": "3.110.0",
39
- "@aws-sdk/smithy-client": "3.110.0",
40
- "@aws-sdk/types": "3.110.0",
41
- "@aws-sdk/url-parser": "3.110.0",
21
+ "@aws-sdk/client-sts": "3.127.0",
22
+ "@aws-sdk/config-resolver": "3.127.0",
23
+ "@aws-sdk/credential-provider-node": "3.127.0",
24
+ "@aws-sdk/fetch-http-handler": "3.127.0",
25
+ "@aws-sdk/hash-node": "3.127.0",
26
+ "@aws-sdk/invalid-dependency": "3.127.0",
27
+ "@aws-sdk/middleware-content-length": "3.127.0",
28
+ "@aws-sdk/middleware-host-header": "3.127.0",
29
+ "@aws-sdk/middleware-logger": "3.127.0",
30
+ "@aws-sdk/middleware-recursion-detection": "3.127.0",
31
+ "@aws-sdk/middleware-retry": "3.127.0",
32
+ "@aws-sdk/middleware-serde": "3.127.0",
33
+ "@aws-sdk/middleware-signing": "3.127.0",
34
+ "@aws-sdk/middleware-stack": "3.127.0",
35
+ "@aws-sdk/middleware-user-agent": "3.127.0",
36
+ "@aws-sdk/node-config-provider": "3.127.0",
37
+ "@aws-sdk/node-http-handler": "3.127.0",
38
+ "@aws-sdk/protocol-http": "3.127.0",
39
+ "@aws-sdk/smithy-client": "3.127.0",
40
+ "@aws-sdk/types": "3.127.0",
41
+ "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.110.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.110.0",
48
- "@aws-sdk/util-user-agent-browser": "3.110.0",
49
- "@aws-sdk/util-user-agent-node": "3.118.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.127.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.127.0",
48
+ "@aws-sdk/util-user-agent-browser": "3.127.0",
49
+ "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",
51
51
  "@aws-sdk/util-utf8-node": "3.109.0",
52
52
  "tslib": "^2.3.1"