@aws-sdk/client-iotsecuretunneling 3.927.0 → 3.929.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/index.js +339 -349
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/IoTSecureTunnelingClient.js +2 -0
- package/dist-es/commands/CloseTunnelCommand.js +3 -9
- package/dist-es/commands/DescribeTunnelCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTunnelsCommand.js +3 -9
- package/dist-es/commands/OpenTunnelCommand.js +3 -10
- package/dist-es/commands/RotateTunnelAccessTokenCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -11
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +318 -0
- package/dist-types/IoTSecureTunnelingClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -8
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +40 -0
- package/dist-types/ts3.4/IoTSecureTunnelingClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -6
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +46 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_1.js +0 -279
- package/dist-types/protocols/Aws_json1_1.d.ts +0 -74
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +0 -101
package/dist-cjs/index.js
CHANGED
|
@@ -6,6 +6,7 @@ var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detect
|
|
|
6
6
|
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
7
|
var configResolver = require('@smithy/config-resolver');
|
|
8
8
|
var core = require('@smithy/core');
|
|
9
|
+
var schema = require('@smithy/core/schema');
|
|
9
10
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
11
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
12
|
var middlewareRetry = require('@smithy/middleware-retry');
|
|
@@ -14,8 +15,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
14
15
|
var runtimeConfig = require('./runtimeConfig');
|
|
15
16
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
17
|
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
-
var core$1 = require('@aws-sdk/core');
|
|
19
18
|
|
|
20
19
|
const resolveClientEndpointParameters = (options) => {
|
|
21
20
|
return Object.assign(options, {
|
|
@@ -91,6 +90,7 @@ class IoTSecureTunnelingClient extends smithyClient.Client {
|
|
|
91
90
|
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
92
91
|
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
93
92
|
this.config = _config_8;
|
|
93
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
94
94
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
95
95
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
96
96
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -110,19 +110,19 @@ class IoTSecureTunnelingClient extends smithyClient.Client {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class IoTSecureTunnelingServiceException extends smithyClient.ServiceException {
|
|
113
|
+
let IoTSecureTunnelingServiceException$1 = class IoTSecureTunnelingServiceException extends smithyClient.ServiceException {
|
|
114
114
|
constructor(options) {
|
|
115
115
|
super(options);
|
|
116
116
|
Object.setPrototypeOf(this, IoTSecureTunnelingServiceException.prototype);
|
|
117
117
|
}
|
|
118
|
-
}
|
|
118
|
+
};
|
|
119
119
|
|
|
120
120
|
const ClientMode = {
|
|
121
121
|
ALL: "ALL",
|
|
122
122
|
DESTINATION: "DESTINATION",
|
|
123
123
|
SOURCE: "SOURCE",
|
|
124
124
|
};
|
|
125
|
-
class ResourceNotFoundException extends IoTSecureTunnelingServiceException {
|
|
125
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends IoTSecureTunnelingServiceException$1 {
|
|
126
126
|
name = "ResourceNotFoundException";
|
|
127
127
|
$fault = "client";
|
|
128
128
|
constructor(opts) {
|
|
@@ -133,7 +133,7 @@ class ResourceNotFoundException extends IoTSecureTunnelingServiceException {
|
|
|
133
133
|
});
|
|
134
134
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
135
135
|
}
|
|
136
|
-
}
|
|
136
|
+
};
|
|
137
137
|
const ConnectionStatus = {
|
|
138
138
|
CONNECTED: "CONNECTED",
|
|
139
139
|
DISCONNECTED: "DISCONNECTED",
|
|
@@ -142,7 +142,7 @@ const TunnelStatus = {
|
|
|
142
142
|
CLOSED: "CLOSED",
|
|
143
143
|
OPEN: "OPEN",
|
|
144
144
|
};
|
|
145
|
-
class LimitExceededException extends IoTSecureTunnelingServiceException {
|
|
145
|
+
let LimitExceededException$1 = class LimitExceededException extends IoTSecureTunnelingServiceException$1 {
|
|
146
146
|
name = "LimitExceededException";
|
|
147
147
|
$fault = "client";
|
|
148
148
|
constructor(opts) {
|
|
@@ -153,303 +153,330 @@ class LimitExceededException extends IoTSecureTunnelingServiceException {
|
|
|
153
153
|
});
|
|
154
154
|
Object.setPrototypeOf(this, LimitExceededException.prototype);
|
|
155
155
|
}
|
|
156
|
-
}
|
|
157
|
-
const OpenTunnelResponseFilterSensitiveLog = (obj) => ({
|
|
158
|
-
...obj,
|
|
159
|
-
...(obj.sourceAccessToken && { sourceAccessToken: smithyClient.SENSITIVE_STRING }),
|
|
160
|
-
...(obj.destinationAccessToken && { destinationAccessToken: smithyClient.SENSITIVE_STRING }),
|
|
161
|
-
});
|
|
162
|
-
const RotateTunnelAccessTokenResponseFilterSensitiveLog = (obj) => ({
|
|
163
|
-
...obj,
|
|
164
|
-
...(obj.sourceAccessToken && { sourceAccessToken: smithyClient.SENSITIVE_STRING }),
|
|
165
|
-
...(obj.destinationAccessToken && { destinationAccessToken: smithyClient.SENSITIVE_STRING }),
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
const se_CloseTunnelCommand = async (input, context) => {
|
|
169
|
-
const headers = sharedHeaders("CloseTunnel");
|
|
170
|
-
let body;
|
|
171
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
172
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
|
-
};
|
|
174
|
-
const se_DescribeTunnelCommand = async (input, context) => {
|
|
175
|
-
const headers = sharedHeaders("DescribeTunnel");
|
|
176
|
-
let body;
|
|
177
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
178
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
179
|
-
};
|
|
180
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
181
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
182
|
-
let body;
|
|
183
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
184
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
-
};
|
|
186
|
-
const se_ListTunnelsCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("ListTunnels");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
const se_OpenTunnelCommand = async (input, context) => {
|
|
193
|
-
const headers = sharedHeaders("OpenTunnel");
|
|
194
|
-
let body;
|
|
195
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
196
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
-
};
|
|
198
|
-
const se_RotateTunnelAccessTokenCommand = async (input, context) => {
|
|
199
|
-
const headers = sharedHeaders("RotateTunnelAccessToken");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
202
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
-
};
|
|
204
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
205
|
-
const headers = sharedHeaders("TagResource");
|
|
206
|
-
let body;
|
|
207
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
208
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
-
};
|
|
210
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
211
|
-
const headers = sharedHeaders("UntagResource");
|
|
212
|
-
let body;
|
|
213
|
-
body = JSON.stringify(smithyClient._json(input));
|
|
214
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
|
-
};
|
|
216
|
-
const de_CloseTunnelCommand = async (output, context) => {
|
|
217
|
-
if (output.statusCode >= 300) {
|
|
218
|
-
return de_CommandError(output, context);
|
|
219
|
-
}
|
|
220
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
221
|
-
let contents = {};
|
|
222
|
-
contents = smithyClient._json(data);
|
|
223
|
-
const response = {
|
|
224
|
-
$metadata: deserializeMetadata(output),
|
|
225
|
-
...contents,
|
|
226
|
-
};
|
|
227
|
-
return response;
|
|
228
|
-
};
|
|
229
|
-
const de_DescribeTunnelCommand = async (output, context) => {
|
|
230
|
-
if (output.statusCode >= 300) {
|
|
231
|
-
return de_CommandError(output, context);
|
|
232
|
-
}
|
|
233
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
234
|
-
let contents = {};
|
|
235
|
-
contents = de_DescribeTunnelResponse(data);
|
|
236
|
-
const response = {
|
|
237
|
-
$metadata: deserializeMetadata(output),
|
|
238
|
-
...contents,
|
|
239
|
-
};
|
|
240
|
-
return response;
|
|
241
|
-
};
|
|
242
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
243
|
-
if (output.statusCode >= 300) {
|
|
244
|
-
return de_CommandError(output, context);
|
|
245
|
-
}
|
|
246
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
247
|
-
let contents = {};
|
|
248
|
-
contents = smithyClient._json(data);
|
|
249
|
-
const response = {
|
|
250
|
-
$metadata: deserializeMetadata(output),
|
|
251
|
-
...contents,
|
|
252
|
-
};
|
|
253
|
-
return response;
|
|
254
|
-
};
|
|
255
|
-
const de_ListTunnelsCommand = async (output, context) => {
|
|
256
|
-
if (output.statusCode >= 300) {
|
|
257
|
-
return de_CommandError(output, context);
|
|
258
|
-
}
|
|
259
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
260
|
-
let contents = {};
|
|
261
|
-
contents = de_ListTunnelsResponse(data);
|
|
262
|
-
const response = {
|
|
263
|
-
$metadata: deserializeMetadata(output),
|
|
264
|
-
...contents,
|
|
265
|
-
};
|
|
266
|
-
return response;
|
|
267
|
-
};
|
|
268
|
-
const de_OpenTunnelCommand = async (output, context) => {
|
|
269
|
-
if (output.statusCode >= 300) {
|
|
270
|
-
return de_CommandError(output, context);
|
|
271
|
-
}
|
|
272
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
273
|
-
let contents = {};
|
|
274
|
-
contents = smithyClient._json(data);
|
|
275
|
-
const response = {
|
|
276
|
-
$metadata: deserializeMetadata(output),
|
|
277
|
-
...contents,
|
|
278
|
-
};
|
|
279
|
-
return response;
|
|
280
|
-
};
|
|
281
|
-
const de_RotateTunnelAccessTokenCommand = async (output, context) => {
|
|
282
|
-
if (output.statusCode >= 300) {
|
|
283
|
-
return de_CommandError(output, context);
|
|
284
|
-
}
|
|
285
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
286
|
-
let contents = {};
|
|
287
|
-
contents = smithyClient._json(data);
|
|
288
|
-
const response = {
|
|
289
|
-
$metadata: deserializeMetadata(output),
|
|
290
|
-
...contents,
|
|
291
|
-
};
|
|
292
|
-
return response;
|
|
293
|
-
};
|
|
294
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
295
|
-
if (output.statusCode >= 300) {
|
|
296
|
-
return de_CommandError(output, context);
|
|
297
|
-
}
|
|
298
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
299
|
-
let contents = {};
|
|
300
|
-
contents = smithyClient._json(data);
|
|
301
|
-
const response = {
|
|
302
|
-
$metadata: deserializeMetadata(output),
|
|
303
|
-
...contents,
|
|
304
|
-
};
|
|
305
|
-
return response;
|
|
306
|
-
};
|
|
307
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
308
|
-
if (output.statusCode >= 300) {
|
|
309
|
-
return de_CommandError(output, context);
|
|
310
|
-
}
|
|
311
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
312
|
-
let contents = {};
|
|
313
|
-
contents = smithyClient._json(data);
|
|
314
|
-
const response = {
|
|
315
|
-
$metadata: deserializeMetadata(output),
|
|
316
|
-
...contents,
|
|
317
|
-
};
|
|
318
|
-
return response;
|
|
319
|
-
};
|
|
320
|
-
const de_CommandError = async (output, context) => {
|
|
321
|
-
const parsedOutput = {
|
|
322
|
-
...output,
|
|
323
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
324
|
-
};
|
|
325
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
326
|
-
switch (errorCode) {
|
|
327
|
-
case "ResourceNotFoundException":
|
|
328
|
-
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
329
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
330
|
-
case "LimitExceededException":
|
|
331
|
-
case "com.amazonaws.iotsecuretunneling#LimitExceededException":
|
|
332
|
-
throw await de_LimitExceededExceptionRes(parsedOutput);
|
|
333
|
-
default:
|
|
334
|
-
const parsedBody = parsedOutput.body;
|
|
335
|
-
return throwDefaultError({
|
|
336
|
-
output,
|
|
337
|
-
parsedBody,
|
|
338
|
-
errorCode,
|
|
339
|
-
});
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
343
|
-
const body = parsedOutput.body;
|
|
344
|
-
const deserialized = smithyClient._json(body);
|
|
345
|
-
const exception = new LimitExceededException({
|
|
346
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
347
|
-
...deserialized,
|
|
348
|
-
});
|
|
349
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
350
|
-
};
|
|
351
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
352
|
-
const body = parsedOutput.body;
|
|
353
|
-
const deserialized = smithyClient._json(body);
|
|
354
|
-
const exception = new ResourceNotFoundException({
|
|
355
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
356
|
-
...deserialized,
|
|
357
|
-
});
|
|
358
|
-
return smithyClient.decorateServiceException(exception, body);
|
|
359
|
-
};
|
|
360
|
-
const de_ConnectionState = (output, context) => {
|
|
361
|
-
return smithyClient.take(output, {
|
|
362
|
-
lastUpdatedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
363
|
-
status: smithyClient.expectString,
|
|
364
|
-
});
|
|
365
|
-
};
|
|
366
|
-
const de_DescribeTunnelResponse = (output, context) => {
|
|
367
|
-
return smithyClient.take(output, {
|
|
368
|
-
tunnel: (_) => de_Tunnel(_),
|
|
369
|
-
});
|
|
370
156
|
};
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
const
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
const
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
const
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
const
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
const
|
|
417
|
-
const
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
157
|
+
|
|
158
|
+
const _CAT = "ClientAccessToken";
|
|
159
|
+
const _CS = "ConnectionState";
|
|
160
|
+
const _CT = "CloseTunnel";
|
|
161
|
+
const _CTR = "CloseTunnelRequest";
|
|
162
|
+
const _CTRl = "CloseTunnelResponse";
|
|
163
|
+
const _DC = "DestinationConfig";
|
|
164
|
+
const _DT = "DescribeTunnel";
|
|
165
|
+
const _DTR = "DescribeTunnelRequest";
|
|
166
|
+
const _DTRe = "DescribeTunnelResponse";
|
|
167
|
+
const _LEE = "LimitExceededException";
|
|
168
|
+
const _LT = "ListTunnels";
|
|
169
|
+
const _LTFR = "ListTagsForResource";
|
|
170
|
+
const _LTFRR = "ListTagsForResourceRequest";
|
|
171
|
+
const _LTFRRi = "ListTagsForResourceResponse";
|
|
172
|
+
const _LTR = "ListTunnelsRequest";
|
|
173
|
+
const _LTRi = "ListTunnelsResponse";
|
|
174
|
+
const _OT = "OpenTunnel";
|
|
175
|
+
const _OTR = "OpenTunnelRequest";
|
|
176
|
+
const _OTRp = "OpenTunnelResponse";
|
|
177
|
+
const _RNFE = "ResourceNotFoundException";
|
|
178
|
+
const _RTAT = "RotateTunnelAccessToken";
|
|
179
|
+
const _RTATR = "RotateTunnelAccessTokenRequest";
|
|
180
|
+
const _RTATRo = "RotateTunnelAccessTokenResponse";
|
|
181
|
+
const _T = "Tag";
|
|
182
|
+
const _TC = "TimeoutConfig";
|
|
183
|
+
const _TL = "TagList";
|
|
184
|
+
const _TR = "TagResource";
|
|
185
|
+
const _TRR = "TagResourceRequest";
|
|
186
|
+
const _TRRa = "TagResourceResponse";
|
|
187
|
+
const _TS = "TunnelSummary";
|
|
188
|
+
const _TSL = "TunnelSummaryList";
|
|
189
|
+
const _Tu = "Tunnel";
|
|
190
|
+
const _UR = "UntagResource";
|
|
191
|
+
const _URR = "UntagResourceRequest";
|
|
192
|
+
const _URRn = "UntagResourceResponse";
|
|
193
|
+
const _aQE = "awsQueryError";
|
|
194
|
+
const _c = "client";
|
|
195
|
+
const _cA = "createdAt";
|
|
196
|
+
const _cM = "clientMode";
|
|
197
|
+
const _d = "delete";
|
|
198
|
+
const _dAT = "destinationAccessToken";
|
|
199
|
+
const _dC = "destinationConfig";
|
|
200
|
+
const _dCS = "destinationConnectionState";
|
|
201
|
+
const _de = "description";
|
|
202
|
+
const _e = "error";
|
|
203
|
+
const _h = "http";
|
|
204
|
+
const _hE = "httpError";
|
|
205
|
+
const _hQ = "httpQuery";
|
|
206
|
+
const _k = "key";
|
|
207
|
+
const _lUA = "lastUpdatedAt";
|
|
208
|
+
const _m = "message";
|
|
209
|
+
const _mLTM = "maxLifetimeTimeoutMinutes";
|
|
210
|
+
const _mR = "maxResults";
|
|
211
|
+
const _nT = "nextToken";
|
|
212
|
+
const _rA = "resourceArn";
|
|
213
|
+
const _s = "status";
|
|
214
|
+
const _sAT = "sourceAccessToken";
|
|
215
|
+
const _sCS = "sourceConnectionState";
|
|
216
|
+
const _se = "services";
|
|
217
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.iotsecuretunneling";
|
|
218
|
+
const _t = "tunnel";
|
|
219
|
+
const _tA = "tunnelArn";
|
|
220
|
+
const _tC = "timeoutConfig";
|
|
221
|
+
const _tI = "tunnelId";
|
|
222
|
+
const _tK = "tagKeys";
|
|
223
|
+
const _tN = "thingName";
|
|
224
|
+
const _tS = "tunnelSummaries";
|
|
225
|
+
const _ta = "tags";
|
|
226
|
+
const _v = "value";
|
|
227
|
+
const n0 = "com.amazonaws.iotsecuretunneling";
|
|
228
|
+
var ClientAccessToken = [0, n0, _CAT, 8, 0];
|
|
229
|
+
var CloseTunnelRequest = [
|
|
230
|
+
3,
|
|
231
|
+
n0,
|
|
232
|
+
_CTR,
|
|
233
|
+
0,
|
|
234
|
+
[_tI, _d],
|
|
235
|
+
[
|
|
236
|
+
[0, 1],
|
|
237
|
+
[
|
|
238
|
+
2,
|
|
239
|
+
{
|
|
240
|
+
[_hQ]: _d,
|
|
241
|
+
},
|
|
242
|
+
],
|
|
243
|
+
],
|
|
244
|
+
];
|
|
245
|
+
var CloseTunnelResponse = [3, n0, _CTRl, 0, [], []];
|
|
246
|
+
var ConnectionState = [3, n0, _CS, 0, [_s, _lUA], [0, 4]];
|
|
247
|
+
var DescribeTunnelRequest = [3, n0, _DTR, 0, [_tI], [[0, 1]]];
|
|
248
|
+
var DescribeTunnelResponse = [3, n0, _DTRe, 0, [_t], [() => Tunnel]];
|
|
249
|
+
var DestinationConfig = [3, n0, _DC, 0, [_tN, _se], [0, 64 | 0]];
|
|
250
|
+
var LimitExceededException = [
|
|
251
|
+
-3,
|
|
252
|
+
n0,
|
|
253
|
+
_LEE,
|
|
254
|
+
{
|
|
255
|
+
[_e]: _c,
|
|
256
|
+
[_hE]: 403,
|
|
257
|
+
[_aQE]: [`LimitExceededException`, 403],
|
|
258
|
+
},
|
|
259
|
+
[_m],
|
|
260
|
+
[0],
|
|
261
|
+
];
|
|
262
|
+
schema.TypeRegistry.for(n0).registerError(LimitExceededException, LimitExceededException$1);
|
|
263
|
+
var ListTagsForResourceRequest = [
|
|
264
|
+
3,
|
|
265
|
+
n0,
|
|
266
|
+
_LTFRR,
|
|
267
|
+
0,
|
|
268
|
+
[_rA],
|
|
269
|
+
[
|
|
270
|
+
[
|
|
271
|
+
0,
|
|
272
|
+
{
|
|
273
|
+
[_hQ]: _rA,
|
|
274
|
+
},
|
|
275
|
+
],
|
|
276
|
+
],
|
|
277
|
+
];
|
|
278
|
+
var ListTagsForResourceResponse = [3, n0, _LTFRRi, 0, [_ta], [() => TagList]];
|
|
279
|
+
var ListTunnelsRequest = [
|
|
280
|
+
3,
|
|
281
|
+
n0,
|
|
282
|
+
_LTR,
|
|
283
|
+
0,
|
|
284
|
+
[_tN, _mR, _nT],
|
|
285
|
+
[
|
|
286
|
+
[
|
|
287
|
+
0,
|
|
288
|
+
{
|
|
289
|
+
[_hQ]: _tN,
|
|
290
|
+
},
|
|
291
|
+
],
|
|
292
|
+
[
|
|
293
|
+
1,
|
|
294
|
+
{
|
|
295
|
+
[_hQ]: _mR,
|
|
296
|
+
},
|
|
297
|
+
],
|
|
298
|
+
[
|
|
299
|
+
0,
|
|
300
|
+
{
|
|
301
|
+
[_hQ]: _nT,
|
|
302
|
+
},
|
|
303
|
+
],
|
|
304
|
+
],
|
|
305
|
+
];
|
|
306
|
+
var ListTunnelsResponse = [3, n0, _LTRi, 0, [_tS, _nT], [() => TunnelSummaryList, 0]];
|
|
307
|
+
var OpenTunnelRequest = [
|
|
308
|
+
3,
|
|
309
|
+
n0,
|
|
310
|
+
_OTR,
|
|
311
|
+
0,
|
|
312
|
+
[_de, _ta, _dC, _tC],
|
|
313
|
+
[0, () => TagList, () => DestinationConfig, () => TimeoutConfig],
|
|
314
|
+
];
|
|
315
|
+
var OpenTunnelResponse = [
|
|
316
|
+
3,
|
|
317
|
+
n0,
|
|
318
|
+
_OTRp,
|
|
319
|
+
0,
|
|
320
|
+
[_tI, _tA, _sAT, _dAT],
|
|
321
|
+
[0, 0, [() => ClientAccessToken, 0], [() => ClientAccessToken, 0]],
|
|
322
|
+
];
|
|
323
|
+
var ResourceNotFoundException = [
|
|
324
|
+
-3,
|
|
325
|
+
n0,
|
|
326
|
+
_RNFE,
|
|
327
|
+
{
|
|
328
|
+
[_e]: _c,
|
|
329
|
+
[_hE]: 404,
|
|
330
|
+
[_aQE]: [`ResourceNotFoundException`, 404],
|
|
331
|
+
},
|
|
332
|
+
[_m],
|
|
333
|
+
[0],
|
|
334
|
+
];
|
|
335
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
336
|
+
var RotateTunnelAccessTokenRequest = [
|
|
337
|
+
3,
|
|
338
|
+
n0,
|
|
339
|
+
_RTATR,
|
|
340
|
+
0,
|
|
341
|
+
[_tI, _cM, _dC],
|
|
342
|
+
[[0, 1], 0, () => DestinationConfig],
|
|
343
|
+
];
|
|
344
|
+
var RotateTunnelAccessTokenResponse = [
|
|
345
|
+
3,
|
|
346
|
+
n0,
|
|
347
|
+
_RTATRo,
|
|
348
|
+
0,
|
|
349
|
+
[_tA, _sAT, _dAT],
|
|
350
|
+
[0, [() => ClientAccessToken, 0], [() => ClientAccessToken, 0]],
|
|
351
|
+
];
|
|
352
|
+
var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
|
|
353
|
+
var TagResourceRequest = [3, n0, _TRR, 0, [_rA, _ta], [0, () => TagList]];
|
|
354
|
+
var TagResourceResponse = [3, n0, _TRRa, 0, [], []];
|
|
355
|
+
var TimeoutConfig = [3, n0, _TC, 0, [_mLTM], [1]];
|
|
356
|
+
var Tunnel = [
|
|
357
|
+
3,
|
|
358
|
+
n0,
|
|
359
|
+
_Tu,
|
|
360
|
+
0,
|
|
361
|
+
[_tI, _tA, _s, _sCS, _dCS, _de, _dC, _tC, _ta, _cA, _lUA],
|
|
362
|
+
[
|
|
363
|
+
0,
|
|
364
|
+
0,
|
|
365
|
+
0,
|
|
366
|
+
() => ConnectionState,
|
|
367
|
+
() => ConnectionState,
|
|
368
|
+
0,
|
|
369
|
+
() => DestinationConfig,
|
|
370
|
+
() => TimeoutConfig,
|
|
371
|
+
() => TagList,
|
|
372
|
+
4,
|
|
373
|
+
4,
|
|
374
|
+
],
|
|
375
|
+
];
|
|
376
|
+
var TunnelSummary = [3, n0, _TS, 0, [_tI, _tA, _s, _de, _cA, _lUA], [0, 0, 0, 0, 4, 4]];
|
|
377
|
+
var UntagResourceRequest = [3, n0, _URR, 0, [_rA, _tK], [0, 64 | 0]];
|
|
378
|
+
var UntagResourceResponse = [3, n0, _URRn, 0, [], []];
|
|
379
|
+
var IoTSecureTunnelingServiceException = [
|
|
380
|
+
-3,
|
|
381
|
+
_sm,
|
|
382
|
+
"IoTSecureTunnelingServiceException",
|
|
383
|
+
0,
|
|
384
|
+
[],
|
|
385
|
+
[],
|
|
386
|
+
];
|
|
387
|
+
schema.TypeRegistry.for(_sm).registerError(IoTSecureTunnelingServiceException, IoTSecureTunnelingServiceException$1);
|
|
388
|
+
var TagList = [1, n0, _TL, 0, () => Tag];
|
|
389
|
+
var TunnelSummaryList = [1, n0, _TSL, 0, () => TunnelSummary];
|
|
390
|
+
var CloseTunnel = [
|
|
391
|
+
9,
|
|
392
|
+
n0,
|
|
393
|
+
_CT,
|
|
394
|
+
{
|
|
395
|
+
[_h]: ["DELETE", "/tunnels/{tunnelId}", 200],
|
|
396
|
+
},
|
|
397
|
+
() => CloseTunnelRequest,
|
|
398
|
+
() => CloseTunnelResponse,
|
|
399
|
+
];
|
|
400
|
+
var DescribeTunnel = [
|
|
401
|
+
9,
|
|
402
|
+
n0,
|
|
403
|
+
_DT,
|
|
404
|
+
{
|
|
405
|
+
[_h]: ["GET", "/tunnels/{tunnelId}", 200],
|
|
406
|
+
},
|
|
407
|
+
() => DescribeTunnelRequest,
|
|
408
|
+
() => DescribeTunnelResponse,
|
|
409
|
+
];
|
|
410
|
+
var ListTagsForResource = [
|
|
411
|
+
9,
|
|
412
|
+
n0,
|
|
413
|
+
_LTFR,
|
|
414
|
+
{
|
|
415
|
+
[_h]: ["GET", "/tags", 200],
|
|
416
|
+
},
|
|
417
|
+
() => ListTagsForResourceRequest,
|
|
418
|
+
() => ListTagsForResourceResponse,
|
|
419
|
+
];
|
|
420
|
+
var ListTunnels = [
|
|
421
|
+
9,
|
|
422
|
+
n0,
|
|
423
|
+
_LT,
|
|
424
|
+
{
|
|
425
|
+
[_h]: ["GET", "/tunnels", 200],
|
|
426
|
+
},
|
|
427
|
+
() => ListTunnelsRequest,
|
|
428
|
+
() => ListTunnelsResponse,
|
|
429
|
+
];
|
|
430
|
+
var OpenTunnel = [
|
|
431
|
+
9,
|
|
432
|
+
n0,
|
|
433
|
+
_OT,
|
|
434
|
+
{
|
|
435
|
+
[_h]: ["POST", "/tunnels", 200],
|
|
436
|
+
},
|
|
437
|
+
() => OpenTunnelRequest,
|
|
438
|
+
() => OpenTunnelResponse,
|
|
439
|
+
];
|
|
440
|
+
var RotateTunnelAccessToken = [
|
|
441
|
+
9,
|
|
442
|
+
n0,
|
|
443
|
+
_RTAT,
|
|
444
|
+
{
|
|
445
|
+
[_h]: ["POST", "/tunnel/{tunnelId}/rotate", 200],
|
|
446
|
+
},
|
|
447
|
+
() => RotateTunnelAccessTokenRequest,
|
|
448
|
+
() => RotateTunnelAccessTokenResponse,
|
|
449
|
+
];
|
|
450
|
+
var TagResource = [
|
|
451
|
+
9,
|
|
452
|
+
n0,
|
|
453
|
+
_TR,
|
|
454
|
+
{
|
|
455
|
+
[_h]: ["POST", "/tags", 200],
|
|
456
|
+
},
|
|
457
|
+
() => TagResourceRequest,
|
|
458
|
+
() => TagResourceResponse,
|
|
459
|
+
];
|
|
460
|
+
var UntagResource = [
|
|
461
|
+
9,
|
|
462
|
+
n0,
|
|
463
|
+
_UR,
|
|
464
|
+
{
|
|
465
|
+
[_h]: ["POST", "/untag", 200],
|
|
466
|
+
},
|
|
467
|
+
() => UntagResourceRequest,
|
|
468
|
+
() => UntagResourceResponse,
|
|
469
|
+
];
|
|
438
470
|
|
|
439
471
|
class CloseTunnelCommand extends smithyClient.Command
|
|
440
472
|
.classBuilder()
|
|
441
473
|
.ep(commonParams)
|
|
442
474
|
.m(function (Command, cs, config, o) {
|
|
443
|
-
return [
|
|
444
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
445
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
446
|
-
];
|
|
475
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
447
476
|
})
|
|
448
477
|
.s("IoTSecuredTunneling", "CloseTunnel", {})
|
|
449
478
|
.n("IoTSecureTunnelingClient", "CloseTunnelCommand")
|
|
450
|
-
.
|
|
451
|
-
.ser(se_CloseTunnelCommand)
|
|
452
|
-
.de(de_CloseTunnelCommand)
|
|
479
|
+
.sc(CloseTunnel)
|
|
453
480
|
.build() {
|
|
454
481
|
}
|
|
455
482
|
|
|
@@ -457,16 +484,11 @@ class DescribeTunnelCommand extends smithyClient.Command
|
|
|
457
484
|
.classBuilder()
|
|
458
485
|
.ep(commonParams)
|
|
459
486
|
.m(function (Command, cs, config, o) {
|
|
460
|
-
return [
|
|
461
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
462
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
463
|
-
];
|
|
487
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
464
488
|
})
|
|
465
489
|
.s("IoTSecuredTunneling", "DescribeTunnel", {})
|
|
466
490
|
.n("IoTSecureTunnelingClient", "DescribeTunnelCommand")
|
|
467
|
-
.
|
|
468
|
-
.ser(se_DescribeTunnelCommand)
|
|
469
|
-
.de(de_DescribeTunnelCommand)
|
|
491
|
+
.sc(DescribeTunnel)
|
|
470
492
|
.build() {
|
|
471
493
|
}
|
|
472
494
|
|
|
@@ -474,16 +496,11 @@ class ListTagsForResourceCommand extends smithyClient.Command
|
|
|
474
496
|
.classBuilder()
|
|
475
497
|
.ep(commonParams)
|
|
476
498
|
.m(function (Command, cs, config, o) {
|
|
477
|
-
return [
|
|
478
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
479
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
480
|
-
];
|
|
499
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
481
500
|
})
|
|
482
501
|
.s("IoTSecuredTunneling", "ListTagsForResource", {})
|
|
483
502
|
.n("IoTSecureTunnelingClient", "ListTagsForResourceCommand")
|
|
484
|
-
.
|
|
485
|
-
.ser(se_ListTagsForResourceCommand)
|
|
486
|
-
.de(de_ListTagsForResourceCommand)
|
|
503
|
+
.sc(ListTagsForResource)
|
|
487
504
|
.build() {
|
|
488
505
|
}
|
|
489
506
|
|
|
@@ -491,16 +508,11 @@ class ListTunnelsCommand extends smithyClient.Command
|
|
|
491
508
|
.classBuilder()
|
|
492
509
|
.ep(commonParams)
|
|
493
510
|
.m(function (Command, cs, config, o) {
|
|
494
|
-
return [
|
|
495
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
496
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
497
|
-
];
|
|
511
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
498
512
|
})
|
|
499
513
|
.s("IoTSecuredTunneling", "ListTunnels", {})
|
|
500
514
|
.n("IoTSecureTunnelingClient", "ListTunnelsCommand")
|
|
501
|
-
.
|
|
502
|
-
.ser(se_ListTunnelsCommand)
|
|
503
|
-
.de(de_ListTunnelsCommand)
|
|
515
|
+
.sc(ListTunnels)
|
|
504
516
|
.build() {
|
|
505
517
|
}
|
|
506
518
|
|
|
@@ -508,16 +520,11 @@ class OpenTunnelCommand extends smithyClient.Command
|
|
|
508
520
|
.classBuilder()
|
|
509
521
|
.ep(commonParams)
|
|
510
522
|
.m(function (Command, cs, config, o) {
|
|
511
|
-
return [
|
|
512
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
513
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
514
|
-
];
|
|
523
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
515
524
|
})
|
|
516
525
|
.s("IoTSecuredTunneling", "OpenTunnel", {})
|
|
517
526
|
.n("IoTSecureTunnelingClient", "OpenTunnelCommand")
|
|
518
|
-
.
|
|
519
|
-
.ser(se_OpenTunnelCommand)
|
|
520
|
-
.de(de_OpenTunnelCommand)
|
|
527
|
+
.sc(OpenTunnel)
|
|
521
528
|
.build() {
|
|
522
529
|
}
|
|
523
530
|
|
|
@@ -525,16 +532,11 @@ class RotateTunnelAccessTokenCommand extends smithyClient.Command
|
|
|
525
532
|
.classBuilder()
|
|
526
533
|
.ep(commonParams)
|
|
527
534
|
.m(function (Command, cs, config, o) {
|
|
528
|
-
return [
|
|
529
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
530
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
531
|
-
];
|
|
535
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
532
536
|
})
|
|
533
537
|
.s("IoTSecuredTunneling", "RotateTunnelAccessToken", {})
|
|
534
538
|
.n("IoTSecureTunnelingClient", "RotateTunnelAccessTokenCommand")
|
|
535
|
-
.
|
|
536
|
-
.ser(se_RotateTunnelAccessTokenCommand)
|
|
537
|
-
.de(de_RotateTunnelAccessTokenCommand)
|
|
539
|
+
.sc(RotateTunnelAccessToken)
|
|
538
540
|
.build() {
|
|
539
541
|
}
|
|
540
542
|
|
|
@@ -542,16 +544,11 @@ class TagResourceCommand extends smithyClient.Command
|
|
|
542
544
|
.classBuilder()
|
|
543
545
|
.ep(commonParams)
|
|
544
546
|
.m(function (Command, cs, config, o) {
|
|
545
|
-
return [
|
|
546
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
547
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
548
|
-
];
|
|
547
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
549
548
|
})
|
|
550
549
|
.s("IoTSecuredTunneling", "TagResource", {})
|
|
551
550
|
.n("IoTSecureTunnelingClient", "TagResourceCommand")
|
|
552
|
-
.
|
|
553
|
-
.ser(se_TagResourceCommand)
|
|
554
|
-
.de(de_TagResourceCommand)
|
|
551
|
+
.sc(TagResource)
|
|
555
552
|
.build() {
|
|
556
553
|
}
|
|
557
554
|
|
|
@@ -559,16 +556,11 @@ class UntagResourceCommand extends smithyClient.Command
|
|
|
559
556
|
.classBuilder()
|
|
560
557
|
.ep(commonParams)
|
|
561
558
|
.m(function (Command, cs, config, o) {
|
|
562
|
-
return [
|
|
563
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
564
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
565
|
-
];
|
|
559
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
566
560
|
})
|
|
567
561
|
.s("IoTSecuredTunneling", "UntagResource", {})
|
|
568
562
|
.n("IoTSecureTunnelingClient", "UntagResourceCommand")
|
|
569
|
-
.
|
|
570
|
-
.ser(se_UntagResourceCommand)
|
|
571
|
-
.de(de_UntagResourceCommand)
|
|
563
|
+
.sc(UntagResource)
|
|
572
564
|
.build() {
|
|
573
565
|
}
|
|
574
566
|
|
|
@@ -602,15 +594,13 @@ exports.ConnectionStatus = ConnectionStatus;
|
|
|
602
594
|
exports.DescribeTunnelCommand = DescribeTunnelCommand;
|
|
603
595
|
exports.IoTSecureTunneling = IoTSecureTunneling;
|
|
604
596
|
exports.IoTSecureTunnelingClient = IoTSecureTunnelingClient;
|
|
605
|
-
exports.IoTSecureTunnelingServiceException = IoTSecureTunnelingServiceException;
|
|
606
|
-
exports.LimitExceededException = LimitExceededException;
|
|
597
|
+
exports.IoTSecureTunnelingServiceException = IoTSecureTunnelingServiceException$1;
|
|
598
|
+
exports.LimitExceededException = LimitExceededException$1;
|
|
607
599
|
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
608
600
|
exports.ListTunnelsCommand = ListTunnelsCommand;
|
|
609
601
|
exports.OpenTunnelCommand = OpenTunnelCommand;
|
|
610
|
-
exports.
|
|
611
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
602
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
612
603
|
exports.RotateTunnelAccessTokenCommand = RotateTunnelAccessTokenCommand;
|
|
613
|
-
exports.RotateTunnelAccessTokenResponseFilterSensitiveLog = RotateTunnelAccessTokenResponseFilterSensitiveLog;
|
|
614
604
|
exports.TagResourceCommand = TagResourceCommand;
|
|
615
605
|
exports.TunnelStatus = TunnelStatus;
|
|
616
606
|
exports.UntagResourceCommand = UntagResourceCommand;
|