@aws-sdk/client-iotsecuretunneling 3.312.0 → 3.316.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/IoTSecureTunneling.js +12 -112
- package/dist-cjs/protocols/Aws_json1_1.js +64 -252
- package/dist-es/IoTSecureTunneling.js +12 -112
- package/dist-es/protocols/Aws_json1_1.js +65 -253
- package/dist-types/IoTSecureTunneling.d.ts +19 -41
- package/dist-types/ts3.4/IoTSecureTunneling.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IoTSecureTunneling = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const CloseTunnelCommand_1 = require("./commands/CloseTunnelCommand");
|
|
5
6
|
const DescribeTunnelCommand_1 = require("./commands/DescribeTunnelCommand");
|
|
6
7
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
@@ -10,118 +11,17 @@ const RotateTunnelAccessTokenCommand_1 = require("./commands/RotateTunnelAccessT
|
|
|
10
11
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
11
12
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
12
13
|
const IoTSecureTunnelingClient_1 = require("./IoTSecureTunnelingClient");
|
|
14
|
+
const commands = {
|
|
15
|
+
CloseTunnelCommand: CloseTunnelCommand_1.CloseTunnelCommand,
|
|
16
|
+
DescribeTunnelCommand: DescribeTunnelCommand_1.DescribeTunnelCommand,
|
|
17
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
18
|
+
ListTunnelsCommand: ListTunnelsCommand_1.ListTunnelsCommand,
|
|
19
|
+
OpenTunnelCommand: OpenTunnelCommand_1.OpenTunnelCommand,
|
|
20
|
+
RotateTunnelAccessTokenCommand: RotateTunnelAccessTokenCommand_1.RotateTunnelAccessTokenCommand,
|
|
21
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
22
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
23
|
+
};
|
|
13
24
|
class IoTSecureTunneling extends IoTSecureTunnelingClient_1.IoTSecureTunnelingClient {
|
|
14
|
-
closeTunnel(args, optionsOrCb, cb) {
|
|
15
|
-
const command = new CloseTunnelCommand_1.CloseTunnelCommand(args);
|
|
16
|
-
if (typeof optionsOrCb === "function") {
|
|
17
|
-
this.send(command, optionsOrCb);
|
|
18
|
-
}
|
|
19
|
-
else if (typeof cb === "function") {
|
|
20
|
-
if (typeof optionsOrCb !== "object")
|
|
21
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
22
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
return this.send(command, optionsOrCb);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
describeTunnel(args, optionsOrCb, cb) {
|
|
29
|
-
const command = new DescribeTunnelCommand_1.DescribeTunnelCommand(args);
|
|
30
|
-
if (typeof optionsOrCb === "function") {
|
|
31
|
-
this.send(command, optionsOrCb);
|
|
32
|
-
}
|
|
33
|
-
else if (typeof cb === "function") {
|
|
34
|
-
if (typeof optionsOrCb !== "object")
|
|
35
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
36
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
37
|
-
}
|
|
38
|
-
else {
|
|
39
|
-
return this.send(command, optionsOrCb);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
43
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
44
|
-
if (typeof optionsOrCb === "function") {
|
|
45
|
-
this.send(command, optionsOrCb);
|
|
46
|
-
}
|
|
47
|
-
else if (typeof cb === "function") {
|
|
48
|
-
if (typeof optionsOrCb !== "object")
|
|
49
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
50
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
return this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
listTunnels(args, optionsOrCb, cb) {
|
|
57
|
-
const command = new ListTunnelsCommand_1.ListTunnelsCommand(args);
|
|
58
|
-
if (typeof optionsOrCb === "function") {
|
|
59
|
-
this.send(command, optionsOrCb);
|
|
60
|
-
}
|
|
61
|
-
else if (typeof cb === "function") {
|
|
62
|
-
if (typeof optionsOrCb !== "object")
|
|
63
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
64
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
openTunnel(args, optionsOrCb, cb) {
|
|
71
|
-
const command = new OpenTunnelCommand_1.OpenTunnelCommand(args);
|
|
72
|
-
if (typeof optionsOrCb === "function") {
|
|
73
|
-
this.send(command, optionsOrCb);
|
|
74
|
-
}
|
|
75
|
-
else if (typeof cb === "function") {
|
|
76
|
-
if (typeof optionsOrCb !== "object")
|
|
77
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
78
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
rotateTunnelAccessToken(args, optionsOrCb, cb) {
|
|
85
|
-
const command = new RotateTunnelAccessTokenCommand_1.RotateTunnelAccessTokenCommand(args);
|
|
86
|
-
if (typeof optionsOrCb === "function") {
|
|
87
|
-
this.send(command, optionsOrCb);
|
|
88
|
-
}
|
|
89
|
-
else if (typeof cb === "function") {
|
|
90
|
-
if (typeof optionsOrCb !== "object")
|
|
91
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
92
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
return this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
tagResource(args, optionsOrCb, cb) {
|
|
99
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
100
|
-
if (typeof optionsOrCb === "function") {
|
|
101
|
-
this.send(command, optionsOrCb);
|
|
102
|
-
}
|
|
103
|
-
else if (typeof cb === "function") {
|
|
104
|
-
if (typeof optionsOrCb !== "object")
|
|
105
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
106
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
return this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
untagResource(args, optionsOrCb, cb) {
|
|
113
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
114
|
-
if (typeof optionsOrCb === "function") {
|
|
115
|
-
this.send(command, optionsOrCb);
|
|
116
|
-
}
|
|
117
|
-
else if (typeof cb === "function") {
|
|
118
|
-
if (typeof optionsOrCb !== "object")
|
|
119
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
120
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
25
|
}
|
|
127
26
|
exports.IoTSecureTunneling = IoTSecureTunneling;
|
|
27
|
+
(0, smithy_client_1.createAggregatedClient)(commands, IoTSecureTunneling);
|