@aws-sdk/client-iotsecuretunneling 3.141.0 → 3.150.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 +42 -78
- package/dist-es/protocols/Aws_json1_1.js +65 -79
- package/package.json +11 -6
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.150.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.149.0...v3.150.0) (2022-08-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [3.145.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.144.0...v3.145.0) (2022-08-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -104,7 +104,6 @@ const deserializeAws_json1_1CloseTunnelCommandError = async (output, context) =>
|
|
|
104
104
|
...output,
|
|
105
105
|
body: await parseBody(output.body, context),
|
|
106
106
|
};
|
|
107
|
-
let response;
|
|
108
107
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
109
108
|
switch (errorCode) {
|
|
110
109
|
case "ResourceNotFoundException":
|
|
@@ -112,14 +111,12 @@ const deserializeAws_json1_1CloseTunnelCommandError = async (output, context) =>
|
|
|
112
111
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
113
112
|
default:
|
|
114
113
|
const parsedBody = parsedOutput.body;
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
$metadata,
|
|
114
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
115
|
+
output,
|
|
116
|
+
parsedBody,
|
|
117
|
+
exceptionCtor: IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException,
|
|
118
|
+
errorCode,
|
|
121
119
|
});
|
|
122
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
123
120
|
}
|
|
124
121
|
};
|
|
125
122
|
const deserializeAws_json1_1DescribeTunnelCommand = async (output, context) => {
|
|
@@ -141,7 +138,6 @@ const deserializeAws_json1_1DescribeTunnelCommandError = async (output, context)
|
|
|
141
138
|
...output,
|
|
142
139
|
body: await parseBody(output.body, context),
|
|
143
140
|
};
|
|
144
|
-
let response;
|
|
145
141
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
146
142
|
switch (errorCode) {
|
|
147
143
|
case "ResourceNotFoundException":
|
|
@@ -149,14 +145,12 @@ const deserializeAws_json1_1DescribeTunnelCommandError = async (output, context)
|
|
|
149
145
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
150
146
|
default:
|
|
151
147
|
const parsedBody = parsedOutput.body;
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
$metadata,
|
|
148
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
149
|
+
output,
|
|
150
|
+
parsedBody,
|
|
151
|
+
exceptionCtor: IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException,
|
|
152
|
+
errorCode,
|
|
158
153
|
});
|
|
159
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
160
154
|
}
|
|
161
155
|
};
|
|
162
156
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -178,7 +172,6 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
178
172
|
...output,
|
|
179
173
|
body: await parseBody(output.body, context),
|
|
180
174
|
};
|
|
181
|
-
let response;
|
|
182
175
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
183
176
|
switch (errorCode) {
|
|
184
177
|
case "ResourceNotFoundException":
|
|
@@ -186,14 +179,12 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
186
179
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
187
180
|
default:
|
|
188
181
|
const parsedBody = parsedOutput.body;
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
$metadata,
|
|
182
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
183
|
+
output,
|
|
184
|
+
parsedBody,
|
|
185
|
+
exceptionCtor: IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException,
|
|
186
|
+
errorCode,
|
|
195
187
|
});
|
|
196
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
197
188
|
}
|
|
198
189
|
};
|
|
199
190
|
const deserializeAws_json1_1ListTunnelsCommand = async (output, context) => {
|
|
@@ -215,20 +206,14 @@ const deserializeAws_json1_1ListTunnelsCommandError = async (output, context) =>
|
|
|
215
206
|
...output,
|
|
216
207
|
body: await parseBody(output.body, context),
|
|
217
208
|
};
|
|
218
|
-
let response;
|
|
219
209
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
$fault: "client",
|
|
228
|
-
$metadata,
|
|
229
|
-
});
|
|
230
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
231
|
-
}
|
|
210
|
+
const parsedBody = parsedOutput.body;
|
|
211
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
212
|
+
output,
|
|
213
|
+
parsedBody,
|
|
214
|
+
exceptionCtor: IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException,
|
|
215
|
+
errorCode,
|
|
216
|
+
});
|
|
232
217
|
};
|
|
233
218
|
const deserializeAws_json1_1OpenTunnelCommand = async (output, context) => {
|
|
234
219
|
if (output.statusCode >= 300) {
|
|
@@ -249,7 +234,6 @@ const deserializeAws_json1_1OpenTunnelCommandError = async (output, context) =>
|
|
|
249
234
|
...output,
|
|
250
235
|
body: await parseBody(output.body, context),
|
|
251
236
|
};
|
|
252
|
-
let response;
|
|
253
237
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
254
238
|
switch (errorCode) {
|
|
255
239
|
case "LimitExceededException":
|
|
@@ -257,14 +241,12 @@ const deserializeAws_json1_1OpenTunnelCommandError = async (output, context) =>
|
|
|
257
241
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
258
242
|
default:
|
|
259
243
|
const parsedBody = parsedOutput.body;
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
$metadata,
|
|
244
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
245
|
+
output,
|
|
246
|
+
parsedBody,
|
|
247
|
+
exceptionCtor: IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException,
|
|
248
|
+
errorCode,
|
|
266
249
|
});
|
|
267
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
268
250
|
}
|
|
269
251
|
};
|
|
270
252
|
const deserializeAws_json1_1RotateTunnelAccessTokenCommand = async (output, context) => {
|
|
@@ -286,7 +268,6 @@ const deserializeAws_json1_1RotateTunnelAccessTokenCommandError = async (output,
|
|
|
286
268
|
...output,
|
|
287
269
|
body: await parseBody(output.body, context),
|
|
288
270
|
};
|
|
289
|
-
let response;
|
|
290
271
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
291
272
|
switch (errorCode) {
|
|
292
273
|
case "ResourceNotFoundException":
|
|
@@ -294,14 +275,12 @@ const deserializeAws_json1_1RotateTunnelAccessTokenCommandError = async (output,
|
|
|
294
275
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
295
276
|
default:
|
|
296
277
|
const parsedBody = parsedOutput.body;
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
$metadata,
|
|
278
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
279
|
+
output,
|
|
280
|
+
parsedBody,
|
|
281
|
+
exceptionCtor: IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException,
|
|
282
|
+
errorCode,
|
|
303
283
|
});
|
|
304
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
305
284
|
}
|
|
306
285
|
};
|
|
307
286
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
@@ -323,7 +302,6 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
323
302
|
...output,
|
|
324
303
|
body: await parseBody(output.body, context),
|
|
325
304
|
};
|
|
326
|
-
let response;
|
|
327
305
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
328
306
|
switch (errorCode) {
|
|
329
307
|
case "ResourceNotFoundException":
|
|
@@ -331,14 +309,12 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
331
309
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
332
310
|
default:
|
|
333
311
|
const parsedBody = parsedOutput.body;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
$metadata,
|
|
312
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
313
|
+
output,
|
|
314
|
+
parsedBody,
|
|
315
|
+
exceptionCtor: IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException,
|
|
316
|
+
errorCode,
|
|
340
317
|
});
|
|
341
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
342
318
|
}
|
|
343
319
|
};
|
|
344
320
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
@@ -360,7 +336,6 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
360
336
|
...output,
|
|
361
337
|
body: await parseBody(output.body, context),
|
|
362
338
|
};
|
|
363
|
-
let response;
|
|
364
339
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
365
340
|
switch (errorCode) {
|
|
366
341
|
case "ResourceNotFoundException":
|
|
@@ -368,14 +343,12 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
368
343
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
369
344
|
default:
|
|
370
345
|
const parsedBody = parsedOutput.body;
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
$metadata,
|
|
346
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
347
|
+
output,
|
|
348
|
+
parsedBody,
|
|
349
|
+
exceptionCtor: IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException,
|
|
350
|
+
errorCode,
|
|
377
351
|
});
|
|
378
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
379
352
|
}
|
|
380
353
|
};
|
|
381
354
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -450,9 +423,6 @@ const serializeAws_json1_1ServiceList = (input, context) => {
|
|
|
450
423
|
return input
|
|
451
424
|
.filter((e) => e != null)
|
|
452
425
|
.map((entry) => {
|
|
453
|
-
if (entry === null) {
|
|
454
|
-
return null;
|
|
455
|
-
}
|
|
456
426
|
return entry;
|
|
457
427
|
});
|
|
458
428
|
};
|
|
@@ -466,9 +436,6 @@ const serializeAws_json1_1TagKeyList = (input, context) => {
|
|
|
466
436
|
return input
|
|
467
437
|
.filter((e) => e != null)
|
|
468
438
|
.map((entry) => {
|
|
469
|
-
if (entry === null) {
|
|
470
|
-
return null;
|
|
471
|
-
}
|
|
472
439
|
return entry;
|
|
473
440
|
});
|
|
474
441
|
};
|
|
@@ -476,9 +443,6 @@ const serializeAws_json1_1TagList = (input, context) => {
|
|
|
476
443
|
return input
|
|
477
444
|
.filter((e) => e != null)
|
|
478
445
|
.map((entry) => {
|
|
479
|
-
if (entry === null) {
|
|
480
|
-
return null;
|
|
481
|
-
}
|
|
482
446
|
return serializeAws_json1_1Tag(entry, context);
|
|
483
447
|
});
|
|
484
448
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { IoTSecureTunnelingServiceException as __BaseException } from "../models/IoTSecureTunnelingServiceException";
|
|
5
5
|
import { LimitExceededException, ResourceNotFoundException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_json1_1CloseTunnelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -110,7 +110,7 @@ export var deserializeAws_json1_1CloseTunnelCommand = function (output, context)
|
|
|
110
110
|
});
|
|
111
111
|
}); };
|
|
112
112
|
var deserializeAws_json1_1CloseTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
113
|
-
var parsedOutput, _a,
|
|
113
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
114
114
|
var _c;
|
|
115
115
|
return __generator(this, function (_d) {
|
|
116
116
|
switch (_d.label) {
|
|
@@ -131,14 +131,14 @@ var deserializeAws_json1_1CloseTunnelCommandError = function (output, context) {
|
|
|
131
131
|
case 3: throw _d.sent();
|
|
132
132
|
case 4:
|
|
133
133
|
parsedBody = parsedOutput.body;
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
$metadata: $metadata,
|
|
134
|
+
throwDefaultError({
|
|
135
|
+
output: output,
|
|
136
|
+
parsedBody: parsedBody,
|
|
137
|
+
exceptionCtor: __BaseException,
|
|
138
|
+
errorCode: errorCode,
|
|
140
139
|
});
|
|
141
|
-
|
|
140
|
+
_d.label = 5;
|
|
141
|
+
case 5: return [2];
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
}); };
|
|
@@ -161,7 +161,7 @@ export var deserializeAws_json1_1DescribeTunnelCommand = function (output, conte
|
|
|
161
161
|
});
|
|
162
162
|
}); };
|
|
163
163
|
var deserializeAws_json1_1DescribeTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
164
|
-
var parsedOutput, _a,
|
|
164
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
165
165
|
var _c;
|
|
166
166
|
return __generator(this, function (_d) {
|
|
167
167
|
switch (_d.label) {
|
|
@@ -182,14 +182,14 @@ var deserializeAws_json1_1DescribeTunnelCommandError = function (output, context
|
|
|
182
182
|
case 3: throw _d.sent();
|
|
183
183
|
case 4:
|
|
184
184
|
parsedBody = parsedOutput.body;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
$metadata: $metadata,
|
|
185
|
+
throwDefaultError({
|
|
186
|
+
output: output,
|
|
187
|
+
parsedBody: parsedBody,
|
|
188
|
+
exceptionCtor: __BaseException,
|
|
189
|
+
errorCode: errorCode,
|
|
191
190
|
});
|
|
192
|
-
|
|
191
|
+
_d.label = 5;
|
|
192
|
+
case 5: return [2];
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
195
|
}); };
|
|
@@ -212,7 +212,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
212
212
|
});
|
|
213
213
|
}); };
|
|
214
214
|
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
215
|
-
var parsedOutput, _a,
|
|
215
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
216
216
|
var _c;
|
|
217
217
|
return __generator(this, function (_d) {
|
|
218
218
|
switch (_d.label) {
|
|
@@ -233,14 +233,14 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
233
233
|
case 3: throw _d.sent();
|
|
234
234
|
case 4:
|
|
235
235
|
parsedBody = parsedOutput.body;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
$metadata: $metadata,
|
|
236
|
+
throwDefaultError({
|
|
237
|
+
output: output,
|
|
238
|
+
parsedBody: parsedBody,
|
|
239
|
+
exceptionCtor: __BaseException,
|
|
240
|
+
errorCode: errorCode,
|
|
242
241
|
});
|
|
243
|
-
|
|
242
|
+
_d.label = 5;
|
|
243
|
+
case 5: return [2];
|
|
244
244
|
}
|
|
245
245
|
});
|
|
246
246
|
}); };
|
|
@@ -263,7 +263,7 @@ export var deserializeAws_json1_1ListTunnelsCommand = function (output, context)
|
|
|
263
263
|
});
|
|
264
264
|
}); };
|
|
265
265
|
var deserializeAws_json1_1ListTunnelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
266
|
-
var parsedOutput, _a,
|
|
266
|
+
var parsedOutput, _a, errorCode, parsedBody;
|
|
267
267
|
var _b;
|
|
268
268
|
return __generator(this, function (_c) {
|
|
269
269
|
switch (_c.label) {
|
|
@@ -274,18 +274,13 @@ var deserializeAws_json1_1ListTunnelsCommandError = function (output, context) {
|
|
|
274
274
|
case 1:
|
|
275
275
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
276
276
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
$fault: "client",
|
|
285
|
-
$metadata: $metadata,
|
|
286
|
-
});
|
|
287
|
-
throw __decorateServiceException(response, parsedBody);
|
|
288
|
-
}
|
|
277
|
+
parsedBody = parsedOutput.body;
|
|
278
|
+
throwDefaultError({
|
|
279
|
+
output: output,
|
|
280
|
+
parsedBody: parsedBody,
|
|
281
|
+
exceptionCtor: __BaseException,
|
|
282
|
+
errorCode: errorCode,
|
|
283
|
+
});
|
|
289
284
|
return [2];
|
|
290
285
|
}
|
|
291
286
|
});
|
|
@@ -309,7 +304,7 @@ export var deserializeAws_json1_1OpenTunnelCommand = function (output, context)
|
|
|
309
304
|
});
|
|
310
305
|
}); };
|
|
311
306
|
var deserializeAws_json1_1OpenTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
312
|
-
var parsedOutput, _a,
|
|
307
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
313
308
|
var _c;
|
|
314
309
|
return __generator(this, function (_d) {
|
|
315
310
|
switch (_d.label) {
|
|
@@ -330,14 +325,14 @@ var deserializeAws_json1_1OpenTunnelCommandError = function (output, context) {
|
|
|
330
325
|
case 3: throw _d.sent();
|
|
331
326
|
case 4:
|
|
332
327
|
parsedBody = parsedOutput.body;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
$metadata: $metadata,
|
|
328
|
+
throwDefaultError({
|
|
329
|
+
output: output,
|
|
330
|
+
parsedBody: parsedBody,
|
|
331
|
+
exceptionCtor: __BaseException,
|
|
332
|
+
errorCode: errorCode,
|
|
339
333
|
});
|
|
340
|
-
|
|
334
|
+
_d.label = 5;
|
|
335
|
+
case 5: return [2];
|
|
341
336
|
}
|
|
342
337
|
});
|
|
343
338
|
}); };
|
|
@@ -360,7 +355,7 @@ export var deserializeAws_json1_1RotateTunnelAccessTokenCommand = function (outp
|
|
|
360
355
|
});
|
|
361
356
|
}); };
|
|
362
357
|
var deserializeAws_json1_1RotateTunnelAccessTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
363
|
-
var parsedOutput, _a,
|
|
358
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
364
359
|
var _c;
|
|
365
360
|
return __generator(this, function (_d) {
|
|
366
361
|
switch (_d.label) {
|
|
@@ -381,14 +376,14 @@ var deserializeAws_json1_1RotateTunnelAccessTokenCommandError = function (output
|
|
|
381
376
|
case 3: throw _d.sent();
|
|
382
377
|
case 4:
|
|
383
378
|
parsedBody = parsedOutput.body;
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
$metadata: $metadata,
|
|
379
|
+
throwDefaultError({
|
|
380
|
+
output: output,
|
|
381
|
+
parsedBody: parsedBody,
|
|
382
|
+
exceptionCtor: __BaseException,
|
|
383
|
+
errorCode: errorCode,
|
|
390
384
|
});
|
|
391
|
-
|
|
385
|
+
_d.label = 5;
|
|
386
|
+
case 5: return [2];
|
|
392
387
|
}
|
|
393
388
|
});
|
|
394
389
|
}); };
|
|
@@ -411,7 +406,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
411
406
|
});
|
|
412
407
|
}); };
|
|
413
408
|
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
414
|
-
var parsedOutput, _a,
|
|
409
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
415
410
|
var _c;
|
|
416
411
|
return __generator(this, function (_d) {
|
|
417
412
|
switch (_d.label) {
|
|
@@ -432,14 +427,14 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
432
427
|
case 3: throw _d.sent();
|
|
433
428
|
case 4:
|
|
434
429
|
parsedBody = parsedOutput.body;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
$metadata: $metadata,
|
|
430
|
+
throwDefaultError({
|
|
431
|
+
output: output,
|
|
432
|
+
parsedBody: parsedBody,
|
|
433
|
+
exceptionCtor: __BaseException,
|
|
434
|
+
errorCode: errorCode,
|
|
441
435
|
});
|
|
442
|
-
|
|
436
|
+
_d.label = 5;
|
|
437
|
+
case 5: return [2];
|
|
443
438
|
}
|
|
444
439
|
});
|
|
445
440
|
}); };
|
|
@@ -462,7 +457,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
462
457
|
});
|
|
463
458
|
}); };
|
|
464
459
|
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
465
|
-
var parsedOutput, _a,
|
|
460
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
466
461
|
var _c;
|
|
467
462
|
return __generator(this, function (_d) {
|
|
468
463
|
switch (_d.label) {
|
|
@@ -483,14 +478,14 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
483
478
|
case 3: throw _d.sent();
|
|
484
479
|
case 4:
|
|
485
480
|
parsedBody = parsedOutput.body;
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
$metadata: $metadata,
|
|
481
|
+
throwDefaultError({
|
|
482
|
+
output: output,
|
|
483
|
+
parsedBody: parsedBody,
|
|
484
|
+
exceptionCtor: __BaseException,
|
|
485
|
+
errorCode: errorCode,
|
|
492
486
|
});
|
|
493
|
-
|
|
487
|
+
_d.label = 5;
|
|
488
|
+
case 5: return [2];
|
|
494
489
|
}
|
|
495
490
|
});
|
|
496
491
|
}); };
|
|
@@ -543,9 +538,6 @@ var serializeAws_json1_1ServiceList = function (input, context) {
|
|
|
543
538
|
return input
|
|
544
539
|
.filter(function (e) { return e != null; })
|
|
545
540
|
.map(function (entry) {
|
|
546
|
-
if (entry === null) {
|
|
547
|
-
return null;
|
|
548
|
-
}
|
|
549
541
|
return entry;
|
|
550
542
|
});
|
|
551
543
|
};
|
|
@@ -556,9 +548,6 @@ var serializeAws_json1_1TagKeyList = function (input, context) {
|
|
|
556
548
|
return input
|
|
557
549
|
.filter(function (e) { return e != null; })
|
|
558
550
|
.map(function (entry) {
|
|
559
|
-
if (entry === null) {
|
|
560
|
-
return null;
|
|
561
|
-
}
|
|
562
551
|
return entry;
|
|
563
552
|
});
|
|
564
553
|
};
|
|
@@ -566,9 +555,6 @@ var serializeAws_json1_1TagList = function (input, context) {
|
|
|
566
555
|
return input
|
|
567
556
|
.filter(function (e) { return e != null; })
|
|
568
557
|
.map(function (entry) {
|
|
569
|
-
if (entry === null) {
|
|
570
|
-
return null;
|
|
571
|
-
}
|
|
572
558
|
return serializeAws_json1_1Tag(entry, context);
|
|
573
559
|
});
|
|
574
560
|
};
|
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.150.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,9 +18,9 @@
|
|
|
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.
|
|
21
|
+
"@aws-sdk/client-sts": "3.150.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.150.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
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.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
@@ -61,6 +61,11 @@
|
|
|
61
61
|
"typedoc": "0.19.2",
|
|
62
62
|
"typescript": "~4.6.2"
|
|
63
63
|
},
|
|
64
|
+
"overrides": {
|
|
65
|
+
"typedoc": {
|
|
66
|
+
"typescript": "~4.6.2"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
64
69
|
"engines": {
|
|
65
70
|
"node": ">=12.0.0"
|
|
66
71
|
},
|