@aws-sdk/client-iotsecuretunneling 3.121.0 → 3.130.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 +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +40 -57
- package/dist-es/protocols/Aws_json1_1.js +30 -47
- package/package.json +26 -26
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.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -398,56 +398,52 @@ const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
398
398
|
};
|
|
399
399
|
const serializeAws_json1_1CloseTunnelRequest = (input, context) => {
|
|
400
400
|
return {
|
|
401
|
-
...(input.delete
|
|
402
|
-
...(input.tunnelId
|
|
401
|
+
...(input.delete != null && { delete: input.delete }),
|
|
402
|
+
...(input.tunnelId != null && { tunnelId: input.tunnelId }),
|
|
403
403
|
};
|
|
404
404
|
};
|
|
405
405
|
const serializeAws_json1_1DescribeTunnelRequest = (input, context) => {
|
|
406
406
|
return {
|
|
407
|
-
...(input.tunnelId
|
|
407
|
+
...(input.tunnelId != null && { tunnelId: input.tunnelId }),
|
|
408
408
|
};
|
|
409
409
|
};
|
|
410
410
|
const serializeAws_json1_1DestinationConfig = (input, context) => {
|
|
411
411
|
return {
|
|
412
|
-
...(input.services
|
|
413
|
-
|
|
414
|
-
...(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 }),
|
|
415
414
|
};
|
|
416
415
|
};
|
|
417
416
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
418
417
|
return {
|
|
419
|
-
...(input.resourceArn
|
|
418
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
420
419
|
};
|
|
421
420
|
};
|
|
422
421
|
const serializeAws_json1_1ListTunnelsRequest = (input, context) => {
|
|
423
422
|
return {
|
|
424
|
-
...(input.maxResults
|
|
425
|
-
...(input.nextToken
|
|
426
|
-
...(input.thingName
|
|
423
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
424
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
425
|
+
...(input.thingName != null && { thingName: input.thingName }),
|
|
427
426
|
};
|
|
428
427
|
};
|
|
429
428
|
const serializeAws_json1_1OpenTunnelRequest = (input, context) => {
|
|
430
429
|
return {
|
|
431
|
-
...(input.description
|
|
432
|
-
...(input.destinationConfig
|
|
433
|
-
input.destinationConfig !== null && {
|
|
430
|
+
...(input.description != null && { description: input.description }),
|
|
431
|
+
...(input.destinationConfig != null && {
|
|
434
432
|
destinationConfig: serializeAws_json1_1DestinationConfig(input.destinationConfig, context),
|
|
435
433
|
}),
|
|
436
|
-
...(input.tags
|
|
437
|
-
...(input.timeoutConfig
|
|
438
|
-
input.timeoutConfig !== null && {
|
|
434
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
435
|
+
...(input.timeoutConfig != null && {
|
|
439
436
|
timeoutConfig: serializeAws_json1_1TimeoutConfig(input.timeoutConfig, context),
|
|
440
437
|
}),
|
|
441
438
|
};
|
|
442
439
|
};
|
|
443
440
|
const serializeAws_json1_1RotateTunnelAccessTokenRequest = (input, context) => {
|
|
444
441
|
return {
|
|
445
|
-
...(input.clientMode
|
|
446
|
-
...(input.destinationConfig
|
|
447
|
-
input.destinationConfig !== null && {
|
|
442
|
+
...(input.clientMode != null && { clientMode: input.clientMode }),
|
|
443
|
+
...(input.destinationConfig != null && {
|
|
448
444
|
destinationConfig: serializeAws_json1_1DestinationConfig(input.destinationConfig, context),
|
|
449
445
|
}),
|
|
450
|
-
...(input.tunnelId
|
|
446
|
+
...(input.tunnelId != null && { tunnelId: input.tunnelId }),
|
|
451
447
|
};
|
|
452
448
|
};
|
|
453
449
|
const serializeAws_json1_1ServiceList = (input, context) => {
|
|
@@ -462,8 +458,8 @@ const serializeAws_json1_1ServiceList = (input, context) => {
|
|
|
462
458
|
};
|
|
463
459
|
const serializeAws_json1_1Tag = (input, context) => {
|
|
464
460
|
return {
|
|
465
|
-
...(input.key
|
|
466
|
-
...(input.value
|
|
461
|
+
...(input.key != null && { key: input.key }),
|
|
462
|
+
...(input.value != null && { value: input.value }),
|
|
467
463
|
};
|
|
468
464
|
};
|
|
469
465
|
const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
@@ -488,21 +484,19 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
488
484
|
};
|
|
489
485
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
490
486
|
return {
|
|
491
|
-
...(input.resourceArn
|
|
492
|
-
...(input.tags
|
|
487
|
+
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
488
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
493
489
|
};
|
|
494
490
|
};
|
|
495
491
|
const serializeAws_json1_1TimeoutConfig = (input, context) => {
|
|
496
492
|
return {
|
|
497
|
-
...(input.maxLifetimeTimeoutMinutes
|
|
498
|
-
input.maxLifetimeTimeoutMinutes !== null && { maxLifetimeTimeoutMinutes: input.maxLifetimeTimeoutMinutes }),
|
|
493
|
+
...(input.maxLifetimeTimeoutMinutes != null && { maxLifetimeTimeoutMinutes: input.maxLifetimeTimeoutMinutes }),
|
|
499
494
|
};
|
|
500
495
|
};
|
|
501
496
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
502
497
|
return {
|
|
503
|
-
...(input.resourceArn
|
|
504
|
-
...(input.tagKeys
|
|
505
|
-
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) }),
|
|
506
500
|
};
|
|
507
501
|
};
|
|
508
502
|
const deserializeAws_json1_1CloseTunnelResponse = (output, context) => {
|
|
@@ -510,7 +504,7 @@ const deserializeAws_json1_1CloseTunnelResponse = (output, context) => {
|
|
|
510
504
|
};
|
|
511
505
|
const deserializeAws_json1_1ConnectionState = (output, context) => {
|
|
512
506
|
return {
|
|
513
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
507
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
514
508
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
515
509
|
: undefined,
|
|
516
510
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -518,16 +512,12 @@ const deserializeAws_json1_1ConnectionState = (output, context) => {
|
|
|
518
512
|
};
|
|
519
513
|
const deserializeAws_json1_1DescribeTunnelResponse = (output, context) => {
|
|
520
514
|
return {
|
|
521
|
-
tunnel: output.tunnel
|
|
522
|
-
? deserializeAws_json1_1Tunnel(output.tunnel, context)
|
|
523
|
-
: undefined,
|
|
515
|
+
tunnel: output.tunnel != null ? deserializeAws_json1_1Tunnel(output.tunnel, context) : undefined,
|
|
524
516
|
};
|
|
525
517
|
};
|
|
526
518
|
const deserializeAws_json1_1DestinationConfig = (output, context) => {
|
|
527
519
|
return {
|
|
528
|
-
services: output.services
|
|
529
|
-
? deserializeAws_json1_1ServiceList(output.services, context)
|
|
530
|
-
: undefined,
|
|
520
|
+
services: output.services != null ? deserializeAws_json1_1ServiceList(output.services, context) : undefined,
|
|
531
521
|
thingName: (0, smithy_client_1.expectString)(output.thingName),
|
|
532
522
|
};
|
|
533
523
|
};
|
|
@@ -538,15 +528,13 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
538
528
|
};
|
|
539
529
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
540
530
|
return {
|
|
541
|
-
tags: output.tags
|
|
542
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
543
|
-
: undefined,
|
|
531
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
544
532
|
};
|
|
545
533
|
};
|
|
546
534
|
const deserializeAws_json1_1ListTunnelsResponse = (output, context) => {
|
|
547
535
|
return {
|
|
548
536
|
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
549
|
-
tunnelSummaries: output.tunnelSummaries
|
|
537
|
+
tunnelSummaries: output.tunnelSummaries != null
|
|
550
538
|
? deserializeAws_json1_1TunnelSummaryList(output.tunnelSummaries, context)
|
|
551
539
|
: undefined,
|
|
552
540
|
};
|
|
@@ -609,40 +597,32 @@ const deserializeAws_json1_1TimeoutConfig = (output, context) => {
|
|
|
609
597
|
};
|
|
610
598
|
const deserializeAws_json1_1Tunnel = (output, context) => {
|
|
611
599
|
return {
|
|
612
|
-
createdAt: output.createdAt
|
|
613
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
614
|
-
: undefined,
|
|
600
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
615
601
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
616
|
-
destinationConfig: output.destinationConfig
|
|
602
|
+
destinationConfig: output.destinationConfig != null
|
|
617
603
|
? deserializeAws_json1_1DestinationConfig(output.destinationConfig, context)
|
|
618
604
|
: undefined,
|
|
619
|
-
destinationConnectionState: output.destinationConnectionState
|
|
605
|
+
destinationConnectionState: output.destinationConnectionState != null
|
|
620
606
|
? deserializeAws_json1_1ConnectionState(output.destinationConnectionState, context)
|
|
621
607
|
: undefined,
|
|
622
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
608
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
623
609
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
624
610
|
: undefined,
|
|
625
|
-
sourceConnectionState: output.sourceConnectionState
|
|
611
|
+
sourceConnectionState: output.sourceConnectionState != null
|
|
626
612
|
? deserializeAws_json1_1ConnectionState(output.sourceConnectionState, context)
|
|
627
613
|
: undefined,
|
|
628
614
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
629
|
-
tags: output.tags
|
|
630
|
-
|
|
631
|
-
: undefined,
|
|
632
|
-
timeoutConfig: output.timeoutConfig !== undefined && output.timeoutConfig !== null
|
|
633
|
-
? deserializeAws_json1_1TimeoutConfig(output.timeoutConfig, context)
|
|
634
|
-
: 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,
|
|
635
617
|
tunnelArn: (0, smithy_client_1.expectString)(output.tunnelArn),
|
|
636
618
|
tunnelId: (0, smithy_client_1.expectString)(output.tunnelId),
|
|
637
619
|
};
|
|
638
620
|
};
|
|
639
621
|
const deserializeAws_json1_1TunnelSummary = (output, context) => {
|
|
640
622
|
return {
|
|
641
|
-
createdAt: output.createdAt
|
|
642
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt)))
|
|
643
|
-
: undefined,
|
|
623
|
+
createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createdAt))) : undefined,
|
|
644
624
|
description: (0, smithy_client_1.expectString)(output.description),
|
|
645
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
625
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
646
626
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastUpdatedAt)))
|
|
647
627
|
: undefined,
|
|
648
628
|
status: (0, smithy_client_1.expectString)(output.status),
|
|
@@ -708,6 +688,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
708
688
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
709
689
|
const sanitizeErrorCode = (rawValue) => {
|
|
710
690
|
let cleanValue = rawValue;
|
|
691
|
+
if (typeof cleanValue === "number") {
|
|
692
|
+
cleanValue = cleanValue.toString();
|
|
693
|
+
}
|
|
711
694
|
if (cleanValue.indexOf(":") >= 0) {
|
|
712
695
|
cleanValue = cleanValue.split(":")[0];
|
|
713
696
|
}
|
|
@@ -513,35 +513,31 @@ var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOu
|
|
|
513
513
|
});
|
|
514
514
|
}); };
|
|
515
515
|
var serializeAws_json1_1CloseTunnelRequest = function (input, context) {
|
|
516
|
-
return __assign(__assign({}, (input.delete
|
|
516
|
+
return __assign(__assign({}, (input.delete != null && { delete: input.delete })), (input.tunnelId != null && { tunnelId: input.tunnelId }));
|
|
517
517
|
};
|
|
518
518
|
var serializeAws_json1_1DescribeTunnelRequest = function (input, context) {
|
|
519
|
-
return __assign({}, (input.tunnelId
|
|
519
|
+
return __assign({}, (input.tunnelId != null && { tunnelId: input.tunnelId }));
|
|
520
520
|
};
|
|
521
521
|
var serializeAws_json1_1DestinationConfig = function (input, context) {
|
|
522
|
-
return __assign(__assign({}, (input.services
|
|
523
|
-
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 }));
|
|
524
523
|
};
|
|
525
524
|
var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
|
|
526
|
-
return __assign({}, (input.resourceArn
|
|
525
|
+
return __assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn }));
|
|
527
526
|
};
|
|
528
527
|
var serializeAws_json1_1ListTunnelsRequest = function (input, context) {
|
|
529
|
-
return __assign(__assign(__assign({}, (input.maxResults
|
|
528
|
+
return __assign(__assign(__assign({}, (input.maxResults != null && { maxResults: input.maxResults })), (input.nextToken != null && { nextToken: input.nextToken })), (input.thingName != null && { thingName: input.thingName }));
|
|
530
529
|
};
|
|
531
530
|
var serializeAws_json1_1OpenTunnelRequest = function (input, context) {
|
|
532
|
-
return __assign(__assign(__assign(__assign({}, (input.description
|
|
533
|
-
input.destinationConfig !== null && {
|
|
531
|
+
return __assign(__assign(__assign(__assign({}, (input.description != null && { description: input.description })), (input.destinationConfig != null && {
|
|
534
532
|
destinationConfig: serializeAws_json1_1DestinationConfig(input.destinationConfig, context),
|
|
535
|
-
})), (input.tags
|
|
536
|
-
input.timeoutConfig !== null && {
|
|
533
|
+
})), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) })), (input.timeoutConfig != null && {
|
|
537
534
|
timeoutConfig: serializeAws_json1_1TimeoutConfig(input.timeoutConfig, context),
|
|
538
535
|
}));
|
|
539
536
|
};
|
|
540
537
|
var serializeAws_json1_1RotateTunnelAccessTokenRequest = function (input, context) {
|
|
541
|
-
return __assign(__assign(__assign({}, (input.clientMode
|
|
542
|
-
input.destinationConfig !== null && {
|
|
538
|
+
return __assign(__assign(__assign({}, (input.clientMode != null && { clientMode: input.clientMode })), (input.destinationConfig != null && {
|
|
543
539
|
destinationConfig: serializeAws_json1_1DestinationConfig(input.destinationConfig, context),
|
|
544
|
-
})), (input.tunnelId
|
|
540
|
+
})), (input.tunnelId != null && { tunnelId: input.tunnelId }));
|
|
545
541
|
};
|
|
546
542
|
var serializeAws_json1_1ServiceList = function (input, context) {
|
|
547
543
|
return input
|
|
@@ -554,7 +550,7 @@ var serializeAws_json1_1ServiceList = function (input, context) {
|
|
|
554
550
|
});
|
|
555
551
|
};
|
|
556
552
|
var serializeAws_json1_1Tag = function (input, context) {
|
|
557
|
-
return __assign(__assign({}, (input.key
|
|
553
|
+
return __assign(__assign({}, (input.key != null && { key: input.key })), (input.value != null && { value: input.value }));
|
|
558
554
|
};
|
|
559
555
|
var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
560
556
|
return input
|
|
@@ -577,22 +573,20 @@ var serializeAws_json1_1TagList = function (input, context) {
|
|
|
577
573
|
});
|
|
578
574
|
};
|
|
579
575
|
var serializeAws_json1_1TagResourceRequest = function (input, context) {
|
|
580
|
-
return __assign(__assign({}, (input.resourceArn
|
|
576
|
+
return __assign(__assign({}, (input.resourceArn != null && { resourceArn: input.resourceArn })), (input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }));
|
|
581
577
|
};
|
|
582
578
|
var serializeAws_json1_1TimeoutConfig = function (input, context) {
|
|
583
|
-
return __assign({}, (input.maxLifetimeTimeoutMinutes
|
|
584
|
-
input.maxLifetimeTimeoutMinutes !== null && { maxLifetimeTimeoutMinutes: input.maxLifetimeTimeoutMinutes }));
|
|
579
|
+
return __assign({}, (input.maxLifetimeTimeoutMinutes != null && { maxLifetimeTimeoutMinutes: input.maxLifetimeTimeoutMinutes }));
|
|
585
580
|
};
|
|
586
581
|
var serializeAws_json1_1UntagResourceRequest = function (input, context) {
|
|
587
|
-
return __assign(__assign({}, (input.resourceArn
|
|
588
|
-
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) }));
|
|
589
583
|
};
|
|
590
584
|
var deserializeAws_json1_1CloseTunnelResponse = function (output, context) {
|
|
591
585
|
return {};
|
|
592
586
|
};
|
|
593
587
|
var deserializeAws_json1_1ConnectionState = function (output, context) {
|
|
594
588
|
return {
|
|
595
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
589
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
596
590
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
597
591
|
: undefined,
|
|
598
592
|
status: __expectString(output.status),
|
|
@@ -600,16 +594,12 @@ var deserializeAws_json1_1ConnectionState = function (output, context) {
|
|
|
600
594
|
};
|
|
601
595
|
var deserializeAws_json1_1DescribeTunnelResponse = function (output, context) {
|
|
602
596
|
return {
|
|
603
|
-
tunnel: output.tunnel
|
|
604
|
-
? deserializeAws_json1_1Tunnel(output.tunnel, context)
|
|
605
|
-
: undefined,
|
|
597
|
+
tunnel: output.tunnel != null ? deserializeAws_json1_1Tunnel(output.tunnel, context) : undefined,
|
|
606
598
|
};
|
|
607
599
|
};
|
|
608
600
|
var deserializeAws_json1_1DestinationConfig = function (output, context) {
|
|
609
601
|
return {
|
|
610
|
-
services: output.services
|
|
611
|
-
? deserializeAws_json1_1ServiceList(output.services, context)
|
|
612
|
-
: undefined,
|
|
602
|
+
services: output.services != null ? deserializeAws_json1_1ServiceList(output.services, context) : undefined,
|
|
613
603
|
thingName: __expectString(output.thingName),
|
|
614
604
|
};
|
|
615
605
|
};
|
|
@@ -620,15 +610,13 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
|
|
|
620
610
|
};
|
|
621
611
|
var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
|
|
622
612
|
return {
|
|
623
|
-
tags: output.tags
|
|
624
|
-
? deserializeAws_json1_1TagList(output.tags, context)
|
|
625
|
-
: undefined,
|
|
613
|
+
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
626
614
|
};
|
|
627
615
|
};
|
|
628
616
|
var deserializeAws_json1_1ListTunnelsResponse = function (output, context) {
|
|
629
617
|
return {
|
|
630
618
|
nextToken: __expectString(output.nextToken),
|
|
631
|
-
tunnelSummaries: output.tunnelSummaries
|
|
619
|
+
tunnelSummaries: output.tunnelSummaries != null
|
|
632
620
|
? deserializeAws_json1_1TunnelSummaryList(output.tunnelSummaries, context)
|
|
633
621
|
: undefined,
|
|
634
622
|
};
|
|
@@ -691,40 +679,32 @@ var deserializeAws_json1_1TimeoutConfig = function (output, context) {
|
|
|
691
679
|
};
|
|
692
680
|
var deserializeAws_json1_1Tunnel = function (output, context) {
|
|
693
681
|
return {
|
|
694
|
-
createdAt: output.createdAt
|
|
695
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
696
|
-
: undefined,
|
|
682
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
697
683
|
description: __expectString(output.description),
|
|
698
|
-
destinationConfig: output.destinationConfig
|
|
684
|
+
destinationConfig: output.destinationConfig != null
|
|
699
685
|
? deserializeAws_json1_1DestinationConfig(output.destinationConfig, context)
|
|
700
686
|
: undefined,
|
|
701
|
-
destinationConnectionState: output.destinationConnectionState
|
|
687
|
+
destinationConnectionState: output.destinationConnectionState != null
|
|
702
688
|
? deserializeAws_json1_1ConnectionState(output.destinationConnectionState, context)
|
|
703
689
|
: undefined,
|
|
704
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
690
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
705
691
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
706
692
|
: undefined,
|
|
707
|
-
sourceConnectionState: output.sourceConnectionState
|
|
693
|
+
sourceConnectionState: output.sourceConnectionState != null
|
|
708
694
|
? deserializeAws_json1_1ConnectionState(output.sourceConnectionState, context)
|
|
709
695
|
: undefined,
|
|
710
696
|
status: __expectString(output.status),
|
|
711
|
-
tags: output.tags
|
|
712
|
-
|
|
713
|
-
: undefined,
|
|
714
|
-
timeoutConfig: output.timeoutConfig !== undefined && output.timeoutConfig !== null
|
|
715
|
-
? deserializeAws_json1_1TimeoutConfig(output.timeoutConfig, context)
|
|
716
|
-
: 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,
|
|
717
699
|
tunnelArn: __expectString(output.tunnelArn),
|
|
718
700
|
tunnelId: __expectString(output.tunnelId),
|
|
719
701
|
};
|
|
720
702
|
};
|
|
721
703
|
var deserializeAws_json1_1TunnelSummary = function (output, context) {
|
|
722
704
|
return {
|
|
723
|
-
createdAt: output.createdAt
|
|
724
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt)))
|
|
725
|
-
: undefined,
|
|
705
|
+
createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
|
|
726
706
|
description: __expectString(output.description),
|
|
727
|
-
lastUpdatedAt: output.lastUpdatedAt
|
|
707
|
+
lastUpdatedAt: output.lastUpdatedAt != null
|
|
728
708
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
|
|
729
709
|
: undefined,
|
|
730
710
|
status: __expectString(output.status),
|
|
@@ -802,6 +782,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
802
782
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
803
783
|
var sanitizeErrorCode = function (rawValue) {
|
|
804
784
|
var cleanValue = rawValue;
|
|
785
|
+
if (typeof cleanValue === "number") {
|
|
786
|
+
cleanValue = cleanValue.toString();
|
|
787
|
+
}
|
|
805
788
|
if (cleanValue.indexOf(":") >= 0) {
|
|
806
789
|
cleanValue = cleanValue.split(":")[0];
|
|
807
790
|
}
|
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.
|
|
4
|
+
"version": "3.130.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.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.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.130.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.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.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"
|