@aws-sdk/client-iotsecuretunneling 3.490.0 → 3.496.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 +1 -27
- package/dist-cjs/IoTSecureTunnelingClient.js +1 -43
- package/dist-cjs/commands/CloseTunnelCommand.js +1 -28
- package/dist-cjs/commands/DescribeTunnelCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTunnelsCommand.js +1 -28
- package/dist-cjs/commands/OpenTunnelCommand.js +1 -29
- package/dist-cjs/commands/RotateTunnelAccessTokenCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -11
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +836 -11
- package/dist-cjs/models/IoTSecureTunnelingServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -56
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListTunnelsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -5
- package/dist-cjs/protocols/Aws_json1_1.js +1 -461
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,837 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
ClientMode: () => ClientMode,
|
|
25
|
+
CloseTunnelCommand: () => CloseTunnelCommand,
|
|
26
|
+
ConnectionStatus: () => ConnectionStatus,
|
|
27
|
+
DescribeTunnelCommand: () => DescribeTunnelCommand,
|
|
28
|
+
IoTSecureTunneling: () => IoTSecureTunneling,
|
|
29
|
+
IoTSecureTunnelingClient: () => IoTSecureTunnelingClient,
|
|
30
|
+
IoTSecureTunnelingServiceException: () => IoTSecureTunnelingServiceException,
|
|
31
|
+
LimitExceededException: () => LimitExceededException,
|
|
32
|
+
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
33
|
+
ListTunnelsCommand: () => ListTunnelsCommand,
|
|
34
|
+
OpenTunnelCommand: () => OpenTunnelCommand,
|
|
35
|
+
OpenTunnelResponseFilterSensitiveLog: () => OpenTunnelResponseFilterSensitiveLog,
|
|
36
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
37
|
+
RotateTunnelAccessTokenCommand: () => RotateTunnelAccessTokenCommand,
|
|
38
|
+
RotateTunnelAccessTokenResponseFilterSensitiveLog: () => RotateTunnelAccessTokenResponseFilterSensitiveLog,
|
|
39
|
+
TagResourceCommand: () => TagResourceCommand,
|
|
40
|
+
TunnelStatus: () => TunnelStatus,
|
|
41
|
+
UntagResourceCommand: () => UntagResourceCommand,
|
|
42
|
+
__Client: () => import_smithy_client.Client,
|
|
43
|
+
paginateListTunnels: () => paginateListTunnels
|
|
44
|
+
});
|
|
45
|
+
module.exports = __toCommonJS(src_exports);
|
|
46
|
+
|
|
47
|
+
// src/IoTSecureTunnelingClient.ts
|
|
48
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
49
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
50
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
51
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
52
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
53
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
54
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
55
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
56
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
// src/endpoint/EndpointParameters.ts
|
|
60
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
61
|
+
return {
|
|
62
|
+
...options,
|
|
63
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
64
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
65
|
+
defaultSigningName: "IoTSecuredTunneling"
|
|
66
|
+
};
|
|
67
|
+
}, "resolveClientEndpointParameters");
|
|
68
|
+
var commonParams = {
|
|
69
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
70
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
71
|
+
Region: { type: "builtInParams", name: "region" },
|
|
72
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
// src/IoTSecureTunnelingClient.ts
|
|
76
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
77
|
+
|
|
78
|
+
// src/runtimeExtensions.ts
|
|
79
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
80
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
81
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
82
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
83
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
84
|
+
const extensionConfiguration = {
|
|
85
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
86
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
87
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
88
|
+
};
|
|
89
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
90
|
+
return {
|
|
91
|
+
...runtimeConfig,
|
|
92
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
93
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
94
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
95
|
+
};
|
|
96
|
+
}, "resolveRuntimeExtensions");
|
|
97
|
+
|
|
98
|
+
// src/IoTSecureTunnelingClient.ts
|
|
99
|
+
var _IoTSecureTunnelingClient = class _IoTSecureTunnelingClient extends import_smithy_client.Client {
|
|
100
|
+
constructor(...[configuration]) {
|
|
101
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
102
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
103
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
104
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
105
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
106
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
107
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
108
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
109
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
110
|
+
super(_config_8);
|
|
111
|
+
this.config = _config_8;
|
|
112
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
113
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
114
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
115
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
116
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
117
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
118
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
122
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
123
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
124
|
+
*/
|
|
125
|
+
destroy() {
|
|
126
|
+
super.destroy();
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
__name(_IoTSecureTunnelingClient, "IoTSecureTunnelingClient");
|
|
130
|
+
var IoTSecureTunnelingClient = _IoTSecureTunnelingClient;
|
|
131
|
+
|
|
132
|
+
// src/IoTSecureTunneling.ts
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
// src/commands/CloseTunnelCommand.ts
|
|
136
|
+
|
|
137
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
138
|
+
|
|
139
|
+
var import_types = require("@smithy/types");
|
|
140
|
+
|
|
141
|
+
// src/protocols/Aws_json1_1.ts
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
// src/models/IoTSecureTunnelingServiceException.ts
|
|
146
|
+
|
|
147
|
+
var _IoTSecureTunnelingServiceException = class _IoTSecureTunnelingServiceException extends import_smithy_client.ServiceException {
|
|
148
|
+
/**
|
|
149
|
+
* @internal
|
|
150
|
+
*/
|
|
151
|
+
constructor(options) {
|
|
152
|
+
super(options);
|
|
153
|
+
Object.setPrototypeOf(this, _IoTSecureTunnelingServiceException.prototype);
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
__name(_IoTSecureTunnelingServiceException, "IoTSecureTunnelingServiceException");
|
|
157
|
+
var IoTSecureTunnelingServiceException = _IoTSecureTunnelingServiceException;
|
|
158
|
+
|
|
159
|
+
// src/models/models_0.ts
|
|
160
|
+
|
|
161
|
+
var ClientMode = {
|
|
162
|
+
ALL: "ALL",
|
|
163
|
+
DESTINATION: "DESTINATION",
|
|
164
|
+
SOURCE: "SOURCE"
|
|
165
|
+
};
|
|
166
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends IoTSecureTunnelingServiceException {
|
|
167
|
+
/**
|
|
168
|
+
* @internal
|
|
169
|
+
*/
|
|
170
|
+
constructor(opts) {
|
|
171
|
+
super({
|
|
172
|
+
name: "ResourceNotFoundException",
|
|
173
|
+
$fault: "client",
|
|
174
|
+
...opts
|
|
175
|
+
});
|
|
176
|
+
this.name = "ResourceNotFoundException";
|
|
177
|
+
this.$fault = "client";
|
|
178
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
182
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
183
|
+
var ConnectionStatus = {
|
|
184
|
+
CONNECTED: "CONNECTED",
|
|
185
|
+
DISCONNECTED: "DISCONNECTED"
|
|
186
|
+
};
|
|
187
|
+
var TunnelStatus = {
|
|
188
|
+
CLOSED: "CLOSED",
|
|
189
|
+
OPEN: "OPEN"
|
|
190
|
+
};
|
|
191
|
+
var _LimitExceededException = class _LimitExceededException extends IoTSecureTunnelingServiceException {
|
|
192
|
+
/**
|
|
193
|
+
* @internal
|
|
194
|
+
*/
|
|
195
|
+
constructor(opts) {
|
|
196
|
+
super({
|
|
197
|
+
name: "LimitExceededException",
|
|
198
|
+
$fault: "client",
|
|
199
|
+
...opts
|
|
200
|
+
});
|
|
201
|
+
this.name = "LimitExceededException";
|
|
202
|
+
this.$fault = "client";
|
|
203
|
+
Object.setPrototypeOf(this, _LimitExceededException.prototype);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
__name(_LimitExceededException, "LimitExceededException");
|
|
207
|
+
var LimitExceededException = _LimitExceededException;
|
|
208
|
+
var OpenTunnelResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
209
|
+
...obj,
|
|
210
|
+
...obj.sourceAccessToken && { sourceAccessToken: import_smithy_client.SENSITIVE_STRING },
|
|
211
|
+
...obj.destinationAccessToken && { destinationAccessToken: import_smithy_client.SENSITIVE_STRING }
|
|
212
|
+
}), "OpenTunnelResponseFilterSensitiveLog");
|
|
213
|
+
var RotateTunnelAccessTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
214
|
+
...obj,
|
|
215
|
+
...obj.sourceAccessToken && { sourceAccessToken: import_smithy_client.SENSITIVE_STRING },
|
|
216
|
+
...obj.destinationAccessToken && { destinationAccessToken: import_smithy_client.SENSITIVE_STRING }
|
|
217
|
+
}), "RotateTunnelAccessTokenResponseFilterSensitiveLog");
|
|
218
|
+
|
|
219
|
+
// src/protocols/Aws_json1_1.ts
|
|
220
|
+
var se_CloseTunnelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
221
|
+
const headers = sharedHeaders("CloseTunnel");
|
|
222
|
+
let body;
|
|
223
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
224
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
225
|
+
}, "se_CloseTunnelCommand");
|
|
226
|
+
var se_DescribeTunnelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
227
|
+
const headers = sharedHeaders("DescribeTunnel");
|
|
228
|
+
let body;
|
|
229
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
230
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
231
|
+
}, "se_DescribeTunnelCommand");
|
|
232
|
+
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
233
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
234
|
+
let body;
|
|
235
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
236
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
237
|
+
}, "se_ListTagsForResourceCommand");
|
|
238
|
+
var se_ListTunnelsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
239
|
+
const headers = sharedHeaders("ListTunnels");
|
|
240
|
+
let body;
|
|
241
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
242
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
243
|
+
}, "se_ListTunnelsCommand");
|
|
244
|
+
var se_OpenTunnelCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
245
|
+
const headers = sharedHeaders("OpenTunnel");
|
|
246
|
+
let body;
|
|
247
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
248
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
249
|
+
}, "se_OpenTunnelCommand");
|
|
250
|
+
var se_RotateTunnelAccessTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
251
|
+
const headers = sharedHeaders("RotateTunnelAccessToken");
|
|
252
|
+
let body;
|
|
253
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
254
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
255
|
+
}, "se_RotateTunnelAccessTokenCommand");
|
|
256
|
+
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
257
|
+
const headers = sharedHeaders("TagResource");
|
|
258
|
+
let body;
|
|
259
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
260
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
261
|
+
}, "se_TagResourceCommand");
|
|
262
|
+
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
263
|
+
const headers = sharedHeaders("UntagResource");
|
|
264
|
+
let body;
|
|
265
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
266
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
267
|
+
}, "se_UntagResourceCommand");
|
|
268
|
+
var de_CloseTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
269
|
+
if (output.statusCode >= 300) {
|
|
270
|
+
return de_CloseTunnelCommandError(output, context);
|
|
271
|
+
}
|
|
272
|
+
const data = await parseBody(output.body, context);
|
|
273
|
+
let contents = {};
|
|
274
|
+
contents = (0, import_smithy_client._json)(data);
|
|
275
|
+
const response = {
|
|
276
|
+
$metadata: deserializeMetadata(output),
|
|
277
|
+
...contents
|
|
278
|
+
};
|
|
279
|
+
return response;
|
|
280
|
+
}, "de_CloseTunnelCommand");
|
|
281
|
+
var de_CloseTunnelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
282
|
+
const parsedOutput = {
|
|
283
|
+
...output,
|
|
284
|
+
body: await parseErrorBody(output.body, context)
|
|
285
|
+
};
|
|
286
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
287
|
+
switch (errorCode) {
|
|
288
|
+
case "ResourceNotFoundException":
|
|
289
|
+
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
290
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
291
|
+
default:
|
|
292
|
+
const parsedBody = parsedOutput.body;
|
|
293
|
+
return throwDefaultError({
|
|
294
|
+
output,
|
|
295
|
+
parsedBody,
|
|
296
|
+
errorCode
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
}, "de_CloseTunnelCommandError");
|
|
300
|
+
var de_DescribeTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
301
|
+
if (output.statusCode >= 300) {
|
|
302
|
+
return de_DescribeTunnelCommandError(output, context);
|
|
303
|
+
}
|
|
304
|
+
const data = await parseBody(output.body, context);
|
|
305
|
+
let contents = {};
|
|
306
|
+
contents = de_DescribeTunnelResponse(data, context);
|
|
307
|
+
const response = {
|
|
308
|
+
$metadata: deserializeMetadata(output),
|
|
309
|
+
...contents
|
|
310
|
+
};
|
|
311
|
+
return response;
|
|
312
|
+
}, "de_DescribeTunnelCommand");
|
|
313
|
+
var de_DescribeTunnelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
314
|
+
const parsedOutput = {
|
|
315
|
+
...output,
|
|
316
|
+
body: await parseErrorBody(output.body, context)
|
|
317
|
+
};
|
|
318
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
319
|
+
switch (errorCode) {
|
|
320
|
+
case "ResourceNotFoundException":
|
|
321
|
+
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
322
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
323
|
+
default:
|
|
324
|
+
const parsedBody = parsedOutput.body;
|
|
325
|
+
return throwDefaultError({
|
|
326
|
+
output,
|
|
327
|
+
parsedBody,
|
|
328
|
+
errorCode
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
}, "de_DescribeTunnelCommandError");
|
|
332
|
+
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
333
|
+
if (output.statusCode >= 300) {
|
|
334
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
335
|
+
}
|
|
336
|
+
const data = await parseBody(output.body, context);
|
|
337
|
+
let contents = {};
|
|
338
|
+
contents = (0, import_smithy_client._json)(data);
|
|
339
|
+
const response = {
|
|
340
|
+
$metadata: deserializeMetadata(output),
|
|
341
|
+
...contents
|
|
342
|
+
};
|
|
343
|
+
return response;
|
|
344
|
+
}, "de_ListTagsForResourceCommand");
|
|
345
|
+
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
346
|
+
const parsedOutput = {
|
|
347
|
+
...output,
|
|
348
|
+
body: await parseErrorBody(output.body, context)
|
|
349
|
+
};
|
|
350
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
351
|
+
switch (errorCode) {
|
|
352
|
+
case "ResourceNotFoundException":
|
|
353
|
+
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
354
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
355
|
+
default:
|
|
356
|
+
const parsedBody = parsedOutput.body;
|
|
357
|
+
return throwDefaultError({
|
|
358
|
+
output,
|
|
359
|
+
parsedBody,
|
|
360
|
+
errorCode
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
}, "de_ListTagsForResourceCommandError");
|
|
364
|
+
var de_ListTunnelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
365
|
+
if (output.statusCode >= 300) {
|
|
366
|
+
return de_ListTunnelsCommandError(output, context);
|
|
367
|
+
}
|
|
368
|
+
const data = await parseBody(output.body, context);
|
|
369
|
+
let contents = {};
|
|
370
|
+
contents = de_ListTunnelsResponse(data, context);
|
|
371
|
+
const response = {
|
|
372
|
+
$metadata: deserializeMetadata(output),
|
|
373
|
+
...contents
|
|
374
|
+
};
|
|
375
|
+
return response;
|
|
376
|
+
}, "de_ListTunnelsCommand");
|
|
377
|
+
var de_ListTunnelsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
378
|
+
const parsedOutput = {
|
|
379
|
+
...output,
|
|
380
|
+
body: await parseErrorBody(output.body, context)
|
|
381
|
+
};
|
|
382
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
383
|
+
const parsedBody = parsedOutput.body;
|
|
384
|
+
return throwDefaultError({
|
|
385
|
+
output,
|
|
386
|
+
parsedBody,
|
|
387
|
+
errorCode
|
|
388
|
+
});
|
|
389
|
+
}, "de_ListTunnelsCommandError");
|
|
390
|
+
var de_OpenTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
391
|
+
if (output.statusCode >= 300) {
|
|
392
|
+
return de_OpenTunnelCommandError(output, context);
|
|
393
|
+
}
|
|
394
|
+
const data = await parseBody(output.body, context);
|
|
395
|
+
let contents = {};
|
|
396
|
+
contents = (0, import_smithy_client._json)(data);
|
|
397
|
+
const response = {
|
|
398
|
+
$metadata: deserializeMetadata(output),
|
|
399
|
+
...contents
|
|
400
|
+
};
|
|
401
|
+
return response;
|
|
402
|
+
}, "de_OpenTunnelCommand");
|
|
403
|
+
var de_OpenTunnelCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
404
|
+
const parsedOutput = {
|
|
405
|
+
...output,
|
|
406
|
+
body: await parseErrorBody(output.body, context)
|
|
407
|
+
};
|
|
408
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
409
|
+
switch (errorCode) {
|
|
410
|
+
case "LimitExceededException":
|
|
411
|
+
case "com.amazonaws.iotsecuretunneling#LimitExceededException":
|
|
412
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
413
|
+
default:
|
|
414
|
+
const parsedBody = parsedOutput.body;
|
|
415
|
+
return throwDefaultError({
|
|
416
|
+
output,
|
|
417
|
+
parsedBody,
|
|
418
|
+
errorCode
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
}, "de_OpenTunnelCommandError");
|
|
422
|
+
var de_RotateTunnelAccessTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
423
|
+
if (output.statusCode >= 300) {
|
|
424
|
+
return de_RotateTunnelAccessTokenCommandError(output, context);
|
|
425
|
+
}
|
|
426
|
+
const data = await parseBody(output.body, context);
|
|
427
|
+
let contents = {};
|
|
428
|
+
contents = (0, import_smithy_client._json)(data);
|
|
429
|
+
const response = {
|
|
430
|
+
$metadata: deserializeMetadata(output),
|
|
431
|
+
...contents
|
|
432
|
+
};
|
|
433
|
+
return response;
|
|
434
|
+
}, "de_RotateTunnelAccessTokenCommand");
|
|
435
|
+
var de_RotateTunnelAccessTokenCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
436
|
+
const parsedOutput = {
|
|
437
|
+
...output,
|
|
438
|
+
body: await parseErrorBody(output.body, context)
|
|
439
|
+
};
|
|
440
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
441
|
+
switch (errorCode) {
|
|
442
|
+
case "ResourceNotFoundException":
|
|
443
|
+
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
444
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
445
|
+
default:
|
|
446
|
+
const parsedBody = parsedOutput.body;
|
|
447
|
+
return throwDefaultError({
|
|
448
|
+
output,
|
|
449
|
+
parsedBody,
|
|
450
|
+
errorCode
|
|
451
|
+
});
|
|
452
|
+
}
|
|
453
|
+
}, "de_RotateTunnelAccessTokenCommandError");
|
|
454
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
455
|
+
if (output.statusCode >= 300) {
|
|
456
|
+
return de_TagResourceCommandError(output, context);
|
|
457
|
+
}
|
|
458
|
+
const data = await parseBody(output.body, context);
|
|
459
|
+
let contents = {};
|
|
460
|
+
contents = (0, import_smithy_client._json)(data);
|
|
461
|
+
const response = {
|
|
462
|
+
$metadata: deserializeMetadata(output),
|
|
463
|
+
...contents
|
|
464
|
+
};
|
|
465
|
+
return response;
|
|
466
|
+
}, "de_TagResourceCommand");
|
|
467
|
+
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
468
|
+
const parsedOutput = {
|
|
469
|
+
...output,
|
|
470
|
+
body: await parseErrorBody(output.body, context)
|
|
471
|
+
};
|
|
472
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
473
|
+
switch (errorCode) {
|
|
474
|
+
case "ResourceNotFoundException":
|
|
475
|
+
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
476
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
477
|
+
default:
|
|
478
|
+
const parsedBody = parsedOutput.body;
|
|
479
|
+
return throwDefaultError({
|
|
480
|
+
output,
|
|
481
|
+
parsedBody,
|
|
482
|
+
errorCode
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
}, "de_TagResourceCommandError");
|
|
486
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
487
|
+
if (output.statusCode >= 300) {
|
|
488
|
+
return de_UntagResourceCommandError(output, context);
|
|
489
|
+
}
|
|
490
|
+
const data = await parseBody(output.body, context);
|
|
491
|
+
let contents = {};
|
|
492
|
+
contents = (0, import_smithy_client._json)(data);
|
|
493
|
+
const response = {
|
|
494
|
+
$metadata: deserializeMetadata(output),
|
|
495
|
+
...contents
|
|
496
|
+
};
|
|
497
|
+
return response;
|
|
498
|
+
}, "de_UntagResourceCommand");
|
|
499
|
+
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
500
|
+
const parsedOutput = {
|
|
501
|
+
...output,
|
|
502
|
+
body: await parseErrorBody(output.body, context)
|
|
503
|
+
};
|
|
504
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
|
+
switch (errorCode) {
|
|
506
|
+
case "ResourceNotFoundException":
|
|
507
|
+
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
508
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
509
|
+
default:
|
|
510
|
+
const parsedBody = parsedOutput.body;
|
|
511
|
+
return throwDefaultError({
|
|
512
|
+
output,
|
|
513
|
+
parsedBody,
|
|
514
|
+
errorCode
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
}, "de_UntagResourceCommandError");
|
|
518
|
+
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
519
|
+
const body = parsedOutput.body;
|
|
520
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
521
|
+
const exception = new LimitExceededException({
|
|
522
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
523
|
+
...deserialized
|
|
524
|
+
});
|
|
525
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
526
|
+
}, "de_LimitExceededExceptionRes");
|
|
527
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
528
|
+
const body = parsedOutput.body;
|
|
529
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
530
|
+
const exception = new ResourceNotFoundException({
|
|
531
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
532
|
+
...deserialized
|
|
533
|
+
});
|
|
534
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
535
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
536
|
+
var de_ConnectionState = /* @__PURE__ */ __name((output, context) => {
|
|
537
|
+
return (0, import_smithy_client.take)(output, {
|
|
538
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
539
|
+
status: import_smithy_client.expectString
|
|
540
|
+
});
|
|
541
|
+
}, "de_ConnectionState");
|
|
542
|
+
var de_DescribeTunnelResponse = /* @__PURE__ */ __name((output, context) => {
|
|
543
|
+
return (0, import_smithy_client.take)(output, {
|
|
544
|
+
tunnel: (_) => de_Tunnel(_, context)
|
|
545
|
+
});
|
|
546
|
+
}, "de_DescribeTunnelResponse");
|
|
547
|
+
var de_ListTunnelsResponse = /* @__PURE__ */ __name((output, context) => {
|
|
548
|
+
return (0, import_smithy_client.take)(output, {
|
|
549
|
+
nextToken: import_smithy_client.expectString,
|
|
550
|
+
tunnelSummaries: (_) => de_TunnelSummaryList(_, context)
|
|
551
|
+
});
|
|
552
|
+
}, "de_ListTunnelsResponse");
|
|
553
|
+
var de_Tunnel = /* @__PURE__ */ __name((output, context) => {
|
|
554
|
+
return (0, import_smithy_client.take)(output, {
|
|
555
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
556
|
+
description: import_smithy_client.expectString,
|
|
557
|
+
destinationConfig: import_smithy_client._json,
|
|
558
|
+
destinationConnectionState: (_) => de_ConnectionState(_, context),
|
|
559
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
560
|
+
sourceConnectionState: (_) => de_ConnectionState(_, context),
|
|
561
|
+
status: import_smithy_client.expectString,
|
|
562
|
+
tags: import_smithy_client._json,
|
|
563
|
+
timeoutConfig: import_smithy_client._json,
|
|
564
|
+
tunnelArn: import_smithy_client.expectString,
|
|
565
|
+
tunnelId: import_smithy_client.expectString
|
|
566
|
+
});
|
|
567
|
+
}, "de_Tunnel");
|
|
568
|
+
var de_TunnelSummary = /* @__PURE__ */ __name((output, context) => {
|
|
569
|
+
return (0, import_smithy_client.take)(output, {
|
|
570
|
+
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
571
|
+
description: import_smithy_client.expectString,
|
|
572
|
+
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
573
|
+
status: import_smithy_client.expectString,
|
|
574
|
+
tunnelArn: import_smithy_client.expectString,
|
|
575
|
+
tunnelId: import_smithy_client.expectString
|
|
576
|
+
});
|
|
577
|
+
}, "de_TunnelSummary");
|
|
578
|
+
var de_TunnelSummaryList = /* @__PURE__ */ __name((output, context) => {
|
|
579
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
580
|
+
return de_TunnelSummary(entry, context);
|
|
581
|
+
});
|
|
582
|
+
return retVal;
|
|
583
|
+
}, "de_TunnelSummaryList");
|
|
584
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
585
|
+
httpStatusCode: output.statusCode,
|
|
586
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
587
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
588
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
589
|
+
}), "deserializeMetadata");
|
|
590
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
591
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(IoTSecureTunnelingServiceException);
|
|
592
|
+
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
593
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
594
|
+
const contents = {
|
|
595
|
+
protocol,
|
|
596
|
+
hostname,
|
|
597
|
+
port,
|
|
598
|
+
method: "POST",
|
|
599
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
600
|
+
headers
|
|
601
|
+
};
|
|
602
|
+
if (resolvedHostname !== void 0) {
|
|
603
|
+
contents.hostname = resolvedHostname;
|
|
604
|
+
}
|
|
605
|
+
if (body !== void 0) {
|
|
606
|
+
contents.body = body;
|
|
607
|
+
}
|
|
608
|
+
return new import_protocol_http.HttpRequest(contents);
|
|
609
|
+
}, "buildHttpRpcRequest");
|
|
610
|
+
function sharedHeaders(operation) {
|
|
611
|
+
return {
|
|
612
|
+
"content-type": "application/x-amz-json-1.1",
|
|
613
|
+
"x-amz-target": `IoTSecuredTunneling.${operation}`
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
__name(sharedHeaders, "sharedHeaders");
|
|
617
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
618
|
+
if (encoded.length) {
|
|
619
|
+
return JSON.parse(encoded);
|
|
620
|
+
}
|
|
621
|
+
return {};
|
|
622
|
+
}), "parseBody");
|
|
623
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
624
|
+
const value = await parseBody(errorBody, context);
|
|
625
|
+
value.message = value.message ?? value.Message;
|
|
626
|
+
return value;
|
|
627
|
+
}, "parseErrorBody");
|
|
628
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
629
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
630
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
631
|
+
let cleanValue = rawValue;
|
|
632
|
+
if (typeof cleanValue === "number") {
|
|
633
|
+
cleanValue = cleanValue.toString();
|
|
634
|
+
}
|
|
635
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
636
|
+
cleanValue = cleanValue.split(",")[0];
|
|
637
|
+
}
|
|
638
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
639
|
+
cleanValue = cleanValue.split(":")[0];
|
|
640
|
+
}
|
|
641
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
642
|
+
cleanValue = cleanValue.split("#")[1];
|
|
643
|
+
}
|
|
644
|
+
return cleanValue;
|
|
645
|
+
}, "sanitizeErrorCode");
|
|
646
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
647
|
+
if (headerKey !== void 0) {
|
|
648
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
649
|
+
}
|
|
650
|
+
if (data.code !== void 0) {
|
|
651
|
+
return sanitizeErrorCode(data.code);
|
|
652
|
+
}
|
|
653
|
+
if (data["__type"] !== void 0) {
|
|
654
|
+
return sanitizeErrorCode(data["__type"]);
|
|
655
|
+
}
|
|
656
|
+
}, "loadRestJsonErrorCode");
|
|
657
|
+
|
|
658
|
+
// src/commands/CloseTunnelCommand.ts
|
|
659
|
+
var _CloseTunnelCommand = class _CloseTunnelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
660
|
+
...commonParams
|
|
661
|
+
}).m(function(Command, cs, config, o) {
|
|
662
|
+
return [
|
|
663
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
664
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
665
|
+
];
|
|
666
|
+
}).s("IoTSecuredTunneling", "CloseTunnel", {}).n("IoTSecureTunnelingClient", "CloseTunnelCommand").f(void 0, void 0).ser(se_CloseTunnelCommand).de(de_CloseTunnelCommand).build() {
|
|
667
|
+
};
|
|
668
|
+
__name(_CloseTunnelCommand, "CloseTunnelCommand");
|
|
669
|
+
var CloseTunnelCommand = _CloseTunnelCommand;
|
|
670
|
+
|
|
671
|
+
// src/commands/DescribeTunnelCommand.ts
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
var _DescribeTunnelCommand = class _DescribeTunnelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
677
|
+
...commonParams
|
|
678
|
+
}).m(function(Command, cs, config, o) {
|
|
679
|
+
return [
|
|
680
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
681
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
682
|
+
];
|
|
683
|
+
}).s("IoTSecuredTunneling", "DescribeTunnel", {}).n("IoTSecureTunnelingClient", "DescribeTunnelCommand").f(void 0, void 0).ser(se_DescribeTunnelCommand).de(de_DescribeTunnelCommand).build() {
|
|
684
|
+
};
|
|
685
|
+
__name(_DescribeTunnelCommand, "DescribeTunnelCommand");
|
|
686
|
+
var DescribeTunnelCommand = _DescribeTunnelCommand;
|
|
687
|
+
|
|
688
|
+
// src/commands/ListTagsForResourceCommand.ts
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
694
|
+
...commonParams
|
|
695
|
+
}).m(function(Command, cs, config, o) {
|
|
696
|
+
return [
|
|
697
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
698
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
699
|
+
];
|
|
700
|
+
}).s("IoTSecuredTunneling", "ListTagsForResource", {}).n("IoTSecureTunnelingClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
|
|
701
|
+
};
|
|
702
|
+
__name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
|
|
703
|
+
var ListTagsForResourceCommand = _ListTagsForResourceCommand;
|
|
704
|
+
|
|
705
|
+
// src/commands/ListTunnelsCommand.ts
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
var _ListTunnelsCommand = class _ListTunnelsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
711
|
+
...commonParams
|
|
712
|
+
}).m(function(Command, cs, config, o) {
|
|
713
|
+
return [
|
|
714
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
715
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
716
|
+
];
|
|
717
|
+
}).s("IoTSecuredTunneling", "ListTunnels", {}).n("IoTSecureTunnelingClient", "ListTunnelsCommand").f(void 0, void 0).ser(se_ListTunnelsCommand).de(de_ListTunnelsCommand).build() {
|
|
718
|
+
};
|
|
719
|
+
__name(_ListTunnelsCommand, "ListTunnelsCommand");
|
|
720
|
+
var ListTunnelsCommand = _ListTunnelsCommand;
|
|
721
|
+
|
|
722
|
+
// src/commands/OpenTunnelCommand.ts
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
var _OpenTunnelCommand = class _OpenTunnelCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
728
|
+
...commonParams
|
|
729
|
+
}).m(function(Command, cs, config, o) {
|
|
730
|
+
return [
|
|
731
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
732
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
733
|
+
];
|
|
734
|
+
}).s("IoTSecuredTunneling", "OpenTunnel", {}).n("IoTSecureTunnelingClient", "OpenTunnelCommand").f(void 0, OpenTunnelResponseFilterSensitiveLog).ser(se_OpenTunnelCommand).de(de_OpenTunnelCommand).build() {
|
|
735
|
+
};
|
|
736
|
+
__name(_OpenTunnelCommand, "OpenTunnelCommand");
|
|
737
|
+
var OpenTunnelCommand = _OpenTunnelCommand;
|
|
738
|
+
|
|
739
|
+
// src/commands/RotateTunnelAccessTokenCommand.ts
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
|
|
743
|
+
|
|
744
|
+
var _RotateTunnelAccessTokenCommand = class _RotateTunnelAccessTokenCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
745
|
+
...commonParams
|
|
746
|
+
}).m(function(Command, cs, config, o) {
|
|
747
|
+
return [
|
|
748
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
749
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
750
|
+
];
|
|
751
|
+
}).s("IoTSecuredTunneling", "RotateTunnelAccessToken", {}).n("IoTSecureTunnelingClient", "RotateTunnelAccessTokenCommand").f(void 0, RotateTunnelAccessTokenResponseFilterSensitiveLog).ser(se_RotateTunnelAccessTokenCommand).de(de_RotateTunnelAccessTokenCommand).build() {
|
|
752
|
+
};
|
|
753
|
+
__name(_RotateTunnelAccessTokenCommand, "RotateTunnelAccessTokenCommand");
|
|
754
|
+
var RotateTunnelAccessTokenCommand = _RotateTunnelAccessTokenCommand;
|
|
755
|
+
|
|
756
|
+
// src/commands/TagResourceCommand.ts
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
|
|
761
|
+
var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
762
|
+
...commonParams
|
|
763
|
+
}).m(function(Command, cs, config, o) {
|
|
764
|
+
return [
|
|
765
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
766
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
767
|
+
];
|
|
768
|
+
}).s("IoTSecuredTunneling", "TagResource", {}).n("IoTSecureTunnelingClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
769
|
+
};
|
|
770
|
+
__name(_TagResourceCommand, "TagResourceCommand");
|
|
771
|
+
var TagResourceCommand = _TagResourceCommand;
|
|
772
|
+
|
|
773
|
+
// src/commands/UntagResourceCommand.ts
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
779
|
+
...commonParams
|
|
780
|
+
}).m(function(Command, cs, config, o) {
|
|
781
|
+
return [
|
|
782
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
783
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
784
|
+
];
|
|
785
|
+
}).s("IoTSecuredTunneling", "UntagResource", {}).n("IoTSecureTunnelingClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
786
|
+
};
|
|
787
|
+
__name(_UntagResourceCommand, "UntagResourceCommand");
|
|
788
|
+
var UntagResourceCommand = _UntagResourceCommand;
|
|
789
|
+
|
|
790
|
+
// src/IoTSecureTunneling.ts
|
|
791
|
+
var commands = {
|
|
792
|
+
CloseTunnelCommand,
|
|
793
|
+
DescribeTunnelCommand,
|
|
794
|
+
ListTagsForResourceCommand,
|
|
795
|
+
ListTunnelsCommand,
|
|
796
|
+
OpenTunnelCommand,
|
|
797
|
+
RotateTunnelAccessTokenCommand,
|
|
798
|
+
TagResourceCommand,
|
|
799
|
+
UntagResourceCommand
|
|
800
|
+
};
|
|
801
|
+
var _IoTSecureTunneling = class _IoTSecureTunneling extends IoTSecureTunnelingClient {
|
|
802
|
+
};
|
|
803
|
+
__name(_IoTSecureTunneling, "IoTSecureTunneling");
|
|
804
|
+
var IoTSecureTunneling = _IoTSecureTunneling;
|
|
805
|
+
(0, import_smithy_client.createAggregatedClient)(commands, IoTSecureTunneling);
|
|
806
|
+
|
|
807
|
+
// src/pagination/ListTunnelsPaginator.ts
|
|
808
|
+
var import_core = require("@smithy/core");
|
|
809
|
+
var paginateListTunnels = (0, import_core.createPaginator)(IoTSecureTunnelingClient, ListTunnelsCommand, "nextToken", "nextToken", "maxResults");
|
|
810
|
+
|
|
811
|
+
// src/index.ts
|
|
812
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
813
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
814
|
+
|
|
815
|
+
0 && (module.exports = {
|
|
816
|
+
ClientMode,
|
|
817
|
+
CloseTunnelCommand,
|
|
818
|
+
ConnectionStatus,
|
|
819
|
+
DescribeTunnelCommand,
|
|
820
|
+
IoTSecureTunneling,
|
|
821
|
+
IoTSecureTunnelingClient,
|
|
822
|
+
IoTSecureTunnelingServiceException,
|
|
823
|
+
LimitExceededException,
|
|
824
|
+
ListTagsForResourceCommand,
|
|
825
|
+
ListTunnelsCommand,
|
|
826
|
+
OpenTunnelCommand,
|
|
827
|
+
OpenTunnelResponseFilterSensitiveLog,
|
|
828
|
+
ResourceNotFoundException,
|
|
829
|
+
RotateTunnelAccessTokenCommand,
|
|
830
|
+
RotateTunnelAccessTokenResponseFilterSensitiveLog,
|
|
831
|
+
TagResourceCommand,
|
|
832
|
+
TunnelStatus,
|
|
833
|
+
UntagResourceCommand,
|
|
834
|
+
__Client,
|
|
835
|
+
paginateListTunnels
|
|
836
|
+
});
|
|
837
|
+
|