@aws-sdk/client-iotsecuretunneling 3.112.0 → 3.121.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +40 -33
- package/dist-es/protocols/Aws_json1_1.js +40 -33
- package/package.json +6 -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.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **clients:** fallback to status code for unmodeled errors ([#3752](https://github.com/aws/aws-sdk-js-v3/issues/3752)) ([49bcc4f](https://github.com/aws/aws-sdk-js-v3/commit/49bcc4f153e890e798a8e82fd5fc397b2dcc449f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [3.118.1](https://github.com/aws/aws-sdk-js-v3/compare/v3.118.0...v3.118.1) (2022-06-27)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.118.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.117.0...v3.118.0) (2022-06-24)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.112.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.111.0...v3.112.0) (2022-06-16)
|
|
7
34
|
|
|
8
35
|
**Note:** Version bump only for package @aws-sdk/client-iotsecuretunneling
|
|
@@ -105,18 +105,19 @@ const deserializeAws_json1_1CloseTunnelCommandError = async (output, context) =>
|
|
|
105
105
|
body: await parseBody(output.body, context),
|
|
106
106
|
};
|
|
107
107
|
let response;
|
|
108
|
-
|
|
109
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
108
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
110
109
|
switch (errorCode) {
|
|
111
110
|
case "ResourceNotFoundException":
|
|
112
111
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
113
112
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
114
113
|
default:
|
|
115
114
|
const parsedBody = parsedOutput.body;
|
|
115
|
+
const $metadata = deserializeMetadata(output);
|
|
116
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
116
117
|
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
117
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
118
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
118
119
|
$fault: "client",
|
|
119
|
-
$metadata
|
|
120
|
+
$metadata,
|
|
120
121
|
});
|
|
121
122
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
122
123
|
}
|
|
@@ -141,18 +142,19 @@ const deserializeAws_json1_1DescribeTunnelCommandError = async (output, context)
|
|
|
141
142
|
body: await parseBody(output.body, context),
|
|
142
143
|
};
|
|
143
144
|
let response;
|
|
144
|
-
|
|
145
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
145
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
146
146
|
switch (errorCode) {
|
|
147
147
|
case "ResourceNotFoundException":
|
|
148
148
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
149
149
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
150
150
|
default:
|
|
151
151
|
const parsedBody = parsedOutput.body;
|
|
152
|
+
const $metadata = deserializeMetadata(output);
|
|
153
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
152
154
|
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
153
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
155
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
154
156
|
$fault: "client",
|
|
155
|
-
$metadata
|
|
157
|
+
$metadata,
|
|
156
158
|
});
|
|
157
159
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
158
160
|
}
|
|
@@ -177,18 +179,19 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
177
179
|
body: await parseBody(output.body, context),
|
|
178
180
|
};
|
|
179
181
|
let response;
|
|
180
|
-
|
|
181
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
182
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
182
183
|
switch (errorCode) {
|
|
183
184
|
case "ResourceNotFoundException":
|
|
184
185
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
185
186
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
186
187
|
default:
|
|
187
188
|
const parsedBody = parsedOutput.body;
|
|
189
|
+
const $metadata = deserializeMetadata(output);
|
|
190
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
188
191
|
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
189
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
192
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
190
193
|
$fault: "client",
|
|
191
|
-
$metadata
|
|
194
|
+
$metadata,
|
|
192
195
|
});
|
|
193
196
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
194
197
|
}
|
|
@@ -213,15 +216,16 @@ const deserializeAws_json1_1ListTunnelsCommandError = async (output, context) =>
|
|
|
213
216
|
body: await parseBody(output.body, context),
|
|
214
217
|
};
|
|
215
218
|
let response;
|
|
216
|
-
|
|
217
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
219
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
218
220
|
switch (errorCode) {
|
|
219
221
|
default:
|
|
220
222
|
const parsedBody = parsedOutput.body;
|
|
223
|
+
const $metadata = deserializeMetadata(output);
|
|
224
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
221
225
|
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
222
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
226
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
223
227
|
$fault: "client",
|
|
224
|
-
$metadata
|
|
228
|
+
$metadata,
|
|
225
229
|
});
|
|
226
230
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
227
231
|
}
|
|
@@ -246,18 +250,19 @@ const deserializeAws_json1_1OpenTunnelCommandError = async (output, context) =>
|
|
|
246
250
|
body: await parseBody(output.body, context),
|
|
247
251
|
};
|
|
248
252
|
let response;
|
|
249
|
-
|
|
250
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
253
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
251
254
|
switch (errorCode) {
|
|
252
255
|
case "LimitExceededException":
|
|
253
256
|
case "com.amazonaws.iotsecuretunneling#LimitExceededException":
|
|
254
257
|
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
255
258
|
default:
|
|
256
259
|
const parsedBody = parsedOutput.body;
|
|
260
|
+
const $metadata = deserializeMetadata(output);
|
|
261
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
257
262
|
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
258
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
263
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
259
264
|
$fault: "client",
|
|
260
|
-
$metadata
|
|
265
|
+
$metadata,
|
|
261
266
|
});
|
|
262
267
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
263
268
|
}
|
|
@@ -282,18 +287,19 @@ const deserializeAws_json1_1RotateTunnelAccessTokenCommandError = async (output,
|
|
|
282
287
|
body: await parseBody(output.body, context),
|
|
283
288
|
};
|
|
284
289
|
let response;
|
|
285
|
-
|
|
286
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
290
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
287
291
|
switch (errorCode) {
|
|
288
292
|
case "ResourceNotFoundException":
|
|
289
293
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
290
294
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
291
295
|
default:
|
|
292
296
|
const parsedBody = parsedOutput.body;
|
|
297
|
+
const $metadata = deserializeMetadata(output);
|
|
298
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
293
299
|
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
294
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
300
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
295
301
|
$fault: "client",
|
|
296
|
-
$metadata
|
|
302
|
+
$metadata,
|
|
297
303
|
});
|
|
298
304
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
299
305
|
}
|
|
@@ -318,18 +324,19 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
318
324
|
body: await parseBody(output.body, context),
|
|
319
325
|
};
|
|
320
326
|
let response;
|
|
321
|
-
|
|
322
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
327
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
323
328
|
switch (errorCode) {
|
|
324
329
|
case "ResourceNotFoundException":
|
|
325
330
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
326
331
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
327
332
|
default:
|
|
328
333
|
const parsedBody = parsedOutput.body;
|
|
334
|
+
const $metadata = deserializeMetadata(output);
|
|
335
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
329
336
|
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
330
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
337
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
331
338
|
$fault: "client",
|
|
332
|
-
$metadata
|
|
339
|
+
$metadata,
|
|
333
340
|
});
|
|
334
341
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
335
342
|
}
|
|
@@ -354,18 +361,19 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
354
361
|
body: await parseBody(output.body, context),
|
|
355
362
|
};
|
|
356
363
|
let response;
|
|
357
|
-
|
|
358
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
364
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
359
365
|
switch (errorCode) {
|
|
360
366
|
case "ResourceNotFoundException":
|
|
361
367
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
362
368
|
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
363
369
|
default:
|
|
364
370
|
const parsedBody = parsedOutput.body;
|
|
371
|
+
const $metadata = deserializeMetadata(output);
|
|
372
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
365
373
|
response = new IoTSecureTunnelingServiceException_1.IoTSecureTunnelingServiceException({
|
|
366
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
374
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
367
375
|
$fault: "client",
|
|
368
|
-
$metadata
|
|
376
|
+
$metadata,
|
|
369
377
|
});
|
|
370
378
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
371
379
|
}
|
|
@@ -718,5 +726,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
718
726
|
if (data["__type"] !== undefined) {
|
|
719
727
|
return sanitizeErrorCode(data["__type"]);
|
|
720
728
|
}
|
|
721
|
-
return "";
|
|
722
729
|
};
|
|
@@ -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, response, errorCode, _b, parsedBody;
|
|
113
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
114
114
|
var _c;
|
|
115
115
|
return __generator(this, function (_d) {
|
|
116
116
|
switch (_d.label) {
|
|
@@ -120,7 +120,6 @@ var deserializeAws_json1_1CloseTunnelCommandError = function (output, context) {
|
|
|
120
120
|
return [4, parseBody(output.body, context)];
|
|
121
121
|
case 1:
|
|
122
122
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
123
|
-
errorCode = "UnknownError";
|
|
124
123
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
125
124
|
_b = errorCode;
|
|
126
125
|
switch (_b) {
|
|
@@ -132,10 +131,12 @@ var deserializeAws_json1_1CloseTunnelCommandError = function (output, context) {
|
|
|
132
131
|
case 3: throw _d.sent();
|
|
133
132
|
case 4:
|
|
134
133
|
parsedBody = parsedOutput.body;
|
|
134
|
+
$metadata = deserializeMetadata(output);
|
|
135
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
135
136
|
response = new __BaseException({
|
|
136
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
137
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
137
138
|
$fault: "client",
|
|
138
|
-
$metadata:
|
|
139
|
+
$metadata: $metadata,
|
|
139
140
|
});
|
|
140
141
|
throw __decorateServiceException(response, parsedBody);
|
|
141
142
|
}
|
|
@@ -160,7 +161,7 @@ export var deserializeAws_json1_1DescribeTunnelCommand = function (output, conte
|
|
|
160
161
|
});
|
|
161
162
|
}); };
|
|
162
163
|
var deserializeAws_json1_1DescribeTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
163
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
164
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
164
165
|
var _c;
|
|
165
166
|
return __generator(this, function (_d) {
|
|
166
167
|
switch (_d.label) {
|
|
@@ -170,7 +171,6 @@ var deserializeAws_json1_1DescribeTunnelCommandError = function (output, context
|
|
|
170
171
|
return [4, parseBody(output.body, context)];
|
|
171
172
|
case 1:
|
|
172
173
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
173
|
-
errorCode = "UnknownError";
|
|
174
174
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
175
175
|
_b = errorCode;
|
|
176
176
|
switch (_b) {
|
|
@@ -182,10 +182,12 @@ var deserializeAws_json1_1DescribeTunnelCommandError = function (output, context
|
|
|
182
182
|
case 3: throw _d.sent();
|
|
183
183
|
case 4:
|
|
184
184
|
parsedBody = parsedOutput.body;
|
|
185
|
+
$metadata = deserializeMetadata(output);
|
|
186
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
185
187
|
response = new __BaseException({
|
|
186
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
188
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
187
189
|
$fault: "client",
|
|
188
|
-
$metadata:
|
|
190
|
+
$metadata: $metadata,
|
|
189
191
|
});
|
|
190
192
|
throw __decorateServiceException(response, parsedBody);
|
|
191
193
|
}
|
|
@@ -210,7 +212,7 @@ export var deserializeAws_json1_1ListTagsForResourceCommand = function (output,
|
|
|
210
212
|
});
|
|
211
213
|
}); };
|
|
212
214
|
var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
213
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
215
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
214
216
|
var _c;
|
|
215
217
|
return __generator(this, function (_d) {
|
|
216
218
|
switch (_d.label) {
|
|
@@ -220,7 +222,6 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
220
222
|
return [4, parseBody(output.body, context)];
|
|
221
223
|
case 1:
|
|
222
224
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
223
|
-
errorCode = "UnknownError";
|
|
224
225
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
225
226
|
_b = errorCode;
|
|
226
227
|
switch (_b) {
|
|
@@ -232,10 +233,12 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
|
|
|
232
233
|
case 3: throw _d.sent();
|
|
233
234
|
case 4:
|
|
234
235
|
parsedBody = parsedOutput.body;
|
|
236
|
+
$metadata = deserializeMetadata(output);
|
|
237
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
235
238
|
response = new __BaseException({
|
|
236
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
237
240
|
$fault: "client",
|
|
238
|
-
$metadata:
|
|
241
|
+
$metadata: $metadata,
|
|
239
242
|
});
|
|
240
243
|
throw __decorateServiceException(response, parsedBody);
|
|
241
244
|
}
|
|
@@ -260,7 +263,7 @@ export var deserializeAws_json1_1ListTunnelsCommand = function (output, context)
|
|
|
260
263
|
});
|
|
261
264
|
}); };
|
|
262
265
|
var deserializeAws_json1_1ListTunnelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
263
|
-
var parsedOutput, _a, response, errorCode, parsedBody;
|
|
266
|
+
var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
|
|
264
267
|
var _b;
|
|
265
268
|
return __generator(this, function (_c) {
|
|
266
269
|
switch (_c.label) {
|
|
@@ -270,15 +273,16 @@ var deserializeAws_json1_1ListTunnelsCommandError = function (output, context) {
|
|
|
270
273
|
return [4, parseBody(output.body, context)];
|
|
271
274
|
case 1:
|
|
272
275
|
parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
|
|
273
|
-
errorCode = "UnknownError";
|
|
274
276
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
275
277
|
switch (errorCode) {
|
|
276
278
|
default:
|
|
277
279
|
parsedBody = parsedOutput.body;
|
|
280
|
+
$metadata = deserializeMetadata(output);
|
|
281
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
278
282
|
response = new __BaseException({
|
|
279
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
283
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
280
284
|
$fault: "client",
|
|
281
|
-
$metadata:
|
|
285
|
+
$metadata: $metadata,
|
|
282
286
|
});
|
|
283
287
|
throw __decorateServiceException(response, parsedBody);
|
|
284
288
|
}
|
|
@@ -305,7 +309,7 @@ export var deserializeAws_json1_1OpenTunnelCommand = function (output, context)
|
|
|
305
309
|
});
|
|
306
310
|
}); };
|
|
307
311
|
var deserializeAws_json1_1OpenTunnelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
308
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
312
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
309
313
|
var _c;
|
|
310
314
|
return __generator(this, function (_d) {
|
|
311
315
|
switch (_d.label) {
|
|
@@ -315,7 +319,6 @@ var deserializeAws_json1_1OpenTunnelCommandError = function (output, context) {
|
|
|
315
319
|
return [4, parseBody(output.body, context)];
|
|
316
320
|
case 1:
|
|
317
321
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
318
|
-
errorCode = "UnknownError";
|
|
319
322
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
320
323
|
_b = errorCode;
|
|
321
324
|
switch (_b) {
|
|
@@ -327,10 +330,12 @@ var deserializeAws_json1_1OpenTunnelCommandError = function (output, context) {
|
|
|
327
330
|
case 3: throw _d.sent();
|
|
328
331
|
case 4:
|
|
329
332
|
parsedBody = parsedOutput.body;
|
|
333
|
+
$metadata = deserializeMetadata(output);
|
|
334
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
330
335
|
response = new __BaseException({
|
|
331
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
336
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
332
337
|
$fault: "client",
|
|
333
|
-
$metadata:
|
|
338
|
+
$metadata: $metadata,
|
|
334
339
|
});
|
|
335
340
|
throw __decorateServiceException(response, parsedBody);
|
|
336
341
|
}
|
|
@@ -355,7 +360,7 @@ export var deserializeAws_json1_1RotateTunnelAccessTokenCommand = function (outp
|
|
|
355
360
|
});
|
|
356
361
|
}); };
|
|
357
362
|
var deserializeAws_json1_1RotateTunnelAccessTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
358
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
363
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
359
364
|
var _c;
|
|
360
365
|
return __generator(this, function (_d) {
|
|
361
366
|
switch (_d.label) {
|
|
@@ -365,7 +370,6 @@ var deserializeAws_json1_1RotateTunnelAccessTokenCommandError = function (output
|
|
|
365
370
|
return [4, parseBody(output.body, context)];
|
|
366
371
|
case 1:
|
|
367
372
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
368
|
-
errorCode = "UnknownError";
|
|
369
373
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
370
374
|
_b = errorCode;
|
|
371
375
|
switch (_b) {
|
|
@@ -377,10 +381,12 @@ var deserializeAws_json1_1RotateTunnelAccessTokenCommandError = function (output
|
|
|
377
381
|
case 3: throw _d.sent();
|
|
378
382
|
case 4:
|
|
379
383
|
parsedBody = parsedOutput.body;
|
|
384
|
+
$metadata = deserializeMetadata(output);
|
|
385
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
380
386
|
response = new __BaseException({
|
|
381
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
387
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
382
388
|
$fault: "client",
|
|
383
|
-
$metadata:
|
|
389
|
+
$metadata: $metadata,
|
|
384
390
|
});
|
|
385
391
|
throw __decorateServiceException(response, parsedBody);
|
|
386
392
|
}
|
|
@@ -405,7 +411,7 @@ export var deserializeAws_json1_1TagResourceCommand = function (output, context)
|
|
|
405
411
|
});
|
|
406
412
|
}); };
|
|
407
413
|
var deserializeAws_json1_1TagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
408
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
414
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
409
415
|
var _c;
|
|
410
416
|
return __generator(this, function (_d) {
|
|
411
417
|
switch (_d.label) {
|
|
@@ -415,7 +421,6 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
415
421
|
return [4, parseBody(output.body, context)];
|
|
416
422
|
case 1:
|
|
417
423
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
418
|
-
errorCode = "UnknownError";
|
|
419
424
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
420
425
|
_b = errorCode;
|
|
421
426
|
switch (_b) {
|
|
@@ -427,10 +432,12 @@ var deserializeAws_json1_1TagResourceCommandError = function (output, context) {
|
|
|
427
432
|
case 3: throw _d.sent();
|
|
428
433
|
case 4:
|
|
429
434
|
parsedBody = parsedOutput.body;
|
|
435
|
+
$metadata = deserializeMetadata(output);
|
|
436
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
430
437
|
response = new __BaseException({
|
|
431
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
438
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
432
439
|
$fault: "client",
|
|
433
|
-
$metadata:
|
|
440
|
+
$metadata: $metadata,
|
|
434
441
|
});
|
|
435
442
|
throw __decorateServiceException(response, parsedBody);
|
|
436
443
|
}
|
|
@@ -455,7 +462,7 @@ export var deserializeAws_json1_1UntagResourceCommand = function (output, contex
|
|
|
455
462
|
});
|
|
456
463
|
}); };
|
|
457
464
|
var deserializeAws_json1_1UntagResourceCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
458
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
465
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
459
466
|
var _c;
|
|
460
467
|
return __generator(this, function (_d) {
|
|
461
468
|
switch (_d.label) {
|
|
@@ -465,7 +472,6 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
465
472
|
return [4, parseBody(output.body, context)];
|
|
466
473
|
case 1:
|
|
467
474
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
468
|
-
errorCode = "UnknownError";
|
|
469
475
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
470
476
|
_b = errorCode;
|
|
471
477
|
switch (_b) {
|
|
@@ -477,10 +483,12 @@ var deserializeAws_json1_1UntagResourceCommandError = function (output, context)
|
|
|
477
483
|
case 3: throw _d.sent();
|
|
478
484
|
case 4:
|
|
479
485
|
parsedBody = parsedOutput.body;
|
|
486
|
+
$metadata = deserializeMetadata(output);
|
|
487
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
480
488
|
response = new __BaseException({
|
|
481
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
489
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
482
490
|
$fault: "client",
|
|
483
|
-
$metadata:
|
|
491
|
+
$metadata: $metadata,
|
|
484
492
|
});
|
|
485
493
|
throw __decorateServiceException(response, parsedBody);
|
|
486
494
|
}
|
|
@@ -812,5 +820,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
812
820
|
if (data["__type"] !== undefined) {
|
|
813
821
|
return sanitizeErrorCode(data["__type"]);
|
|
814
822
|
}
|
|
815
|
-
return "";
|
|
816
823
|
};
|
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.121.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.121.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.110.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.121.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.110.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.110.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.110.0",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"@aws-sdk/middleware-host-header": "3.110.0",
|
|
29
29
|
"@aws-sdk/middleware-logger": "3.110.0",
|
|
30
30
|
"@aws-sdk/middleware-recursion-detection": "3.110.0",
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.118.1",
|
|
32
32
|
"@aws-sdk/middleware-serde": "3.110.0",
|
|
33
33
|
"@aws-sdk/middleware-signing": "3.110.0",
|
|
34
34
|
"@aws-sdk/middleware-stack": "3.110.0",
|
|
35
35
|
"@aws-sdk/middleware-user-agent": "3.110.0",
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.110.0",
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.118.1",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.110.0",
|
|
39
39
|
"@aws-sdk/smithy-client": "3.110.0",
|
|
40
40
|
"@aws-sdk/types": "3.110.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@aws-sdk/util-defaults-mode-browser": "3.110.0",
|
|
47
47
|
"@aws-sdk/util-defaults-mode-node": "3.110.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.110.0",
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.118.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1"
|