@aws-sdk/client-iotsecuretunneling 3.504.0 → 3.507.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 +13 -137
- package/dist-es/protocols/Aws_json1_1.js +12 -136
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -267,7 +267,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
267
267
|
}, "se_UntagResourceCommand");
|
|
268
268
|
var de_CloseTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
269
269
|
if (output.statusCode >= 300) {
|
|
270
|
-
return
|
|
270
|
+
return de_CommandError(output, context);
|
|
271
271
|
}
|
|
272
272
|
const data = await parseBody(output.body, context);
|
|
273
273
|
let contents = {};
|
|
@@ -278,28 +278,9 @@ var de_CloseTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
278
278
|
};
|
|
279
279
|
return response;
|
|
280
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
281
|
var de_DescribeTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
301
282
|
if (output.statusCode >= 300) {
|
|
302
|
-
return
|
|
283
|
+
return de_CommandError(output, context);
|
|
303
284
|
}
|
|
304
285
|
const data = await parseBody(output.body, context);
|
|
305
286
|
let contents = {};
|
|
@@ -310,28 +291,9 @@ var de_DescribeTunnelCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
310
291
|
};
|
|
311
292
|
return response;
|
|
312
293
|
}, "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
294
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
333
295
|
if (output.statusCode >= 300) {
|
|
334
|
-
return
|
|
296
|
+
return de_CommandError(output, context);
|
|
335
297
|
}
|
|
336
298
|
const data = await parseBody(output.body, context);
|
|
337
299
|
let contents = {};
|
|
@@ -342,28 +304,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
342
304
|
};
|
|
343
305
|
return response;
|
|
344
306
|
}, "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
307
|
var de_ListTunnelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
365
308
|
if (output.statusCode >= 300) {
|
|
366
|
-
return
|
|
309
|
+
return de_CommandError(output, context);
|
|
367
310
|
}
|
|
368
311
|
const data = await parseBody(output.body, context);
|
|
369
312
|
let contents = {};
|
|
@@ -374,22 +317,9 @@ var de_ListTunnelsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
374
317
|
};
|
|
375
318
|
return response;
|
|
376
319
|
}, "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
320
|
var de_OpenTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
391
321
|
if (output.statusCode >= 300) {
|
|
392
|
-
return
|
|
322
|
+
return de_CommandError(output, context);
|
|
393
323
|
}
|
|
394
324
|
const data = await parseBody(output.body, context);
|
|
395
325
|
let contents = {};
|
|
@@ -400,28 +330,9 @@ var de_OpenTunnelCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
400
330
|
};
|
|
401
331
|
return response;
|
|
402
332
|
}, "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
333
|
var de_RotateTunnelAccessTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
423
334
|
if (output.statusCode >= 300) {
|
|
424
|
-
return
|
|
335
|
+
return de_CommandError(output, context);
|
|
425
336
|
}
|
|
426
337
|
const data = await parseBody(output.body, context);
|
|
427
338
|
let contents = {};
|
|
@@ -432,28 +343,9 @@ var de_RotateTunnelAccessTokenCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
432
343
|
};
|
|
433
344
|
return response;
|
|
434
345
|
}, "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
346
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
455
347
|
if (output.statusCode >= 300) {
|
|
456
|
-
return
|
|
348
|
+
return de_CommandError(output, context);
|
|
457
349
|
}
|
|
458
350
|
const data = await parseBody(output.body, context);
|
|
459
351
|
let contents = {};
|
|
@@ -464,28 +356,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
464
356
|
};
|
|
465
357
|
return response;
|
|
466
358
|
}, "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
359
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
487
360
|
if (output.statusCode >= 300) {
|
|
488
|
-
return
|
|
361
|
+
return de_CommandError(output, context);
|
|
489
362
|
}
|
|
490
363
|
const data = await parseBody(output.body, context);
|
|
491
364
|
let contents = {};
|
|
@@ -496,7 +369,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
496
369
|
};
|
|
497
370
|
return response;
|
|
498
371
|
}, "de_UntagResourceCommand");
|
|
499
|
-
var
|
|
372
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
500
373
|
const parsedOutput = {
|
|
501
374
|
...output,
|
|
502
375
|
body: await parseErrorBody(output.body, context)
|
|
@@ -506,6 +379,9 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
506
379
|
case "ResourceNotFoundException":
|
|
507
380
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
508
381
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
382
|
+
case "LimitExceededException":
|
|
383
|
+
case "com.amazonaws.iotsecuretunneling#LimitExceededException":
|
|
384
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
509
385
|
default:
|
|
510
386
|
const parsedBody = parsedOutput.body;
|
|
511
387
|
return throwDefaultError({
|
|
@@ -514,7 +390,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
|
|
|
514
390
|
errorCode
|
|
515
391
|
});
|
|
516
392
|
}
|
|
517
|
-
}, "
|
|
393
|
+
}, "de_CommandError");
|
|
518
394
|
var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
519
395
|
const body = parsedOutput.body;
|
|
520
396
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -52,7 +52,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
52
52
|
};
|
|
53
53
|
export const de_CloseTunnelCommand = async (output, context) => {
|
|
54
54
|
if (output.statusCode >= 300) {
|
|
55
|
-
return
|
|
55
|
+
return de_CommandError(output, context);
|
|
56
56
|
}
|
|
57
57
|
const data = await parseBody(output.body, context);
|
|
58
58
|
let contents = {};
|
|
@@ -63,28 +63,9 @@ export const de_CloseTunnelCommand = async (output, context) => {
|
|
|
63
63
|
};
|
|
64
64
|
return response;
|
|
65
65
|
};
|
|
66
|
-
const de_CloseTunnelCommandError = async (output, context) => {
|
|
67
|
-
const parsedOutput = {
|
|
68
|
-
...output,
|
|
69
|
-
body: await parseErrorBody(output.body, context),
|
|
70
|
-
};
|
|
71
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
72
|
-
switch (errorCode) {
|
|
73
|
-
case "ResourceNotFoundException":
|
|
74
|
-
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
75
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
76
|
-
default:
|
|
77
|
-
const parsedBody = parsedOutput.body;
|
|
78
|
-
return throwDefaultError({
|
|
79
|
-
output,
|
|
80
|
-
parsedBody,
|
|
81
|
-
errorCode,
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
66
|
export const de_DescribeTunnelCommand = async (output, context) => {
|
|
86
67
|
if (output.statusCode >= 300) {
|
|
87
|
-
return
|
|
68
|
+
return de_CommandError(output, context);
|
|
88
69
|
}
|
|
89
70
|
const data = await parseBody(output.body, context);
|
|
90
71
|
let contents = {};
|
|
@@ -95,28 +76,9 @@ export const de_DescribeTunnelCommand = async (output, context) => {
|
|
|
95
76
|
};
|
|
96
77
|
return response;
|
|
97
78
|
};
|
|
98
|
-
const de_DescribeTunnelCommandError = async (output, context) => {
|
|
99
|
-
const parsedOutput = {
|
|
100
|
-
...output,
|
|
101
|
-
body: await parseErrorBody(output.body, context),
|
|
102
|
-
};
|
|
103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
104
|
-
switch (errorCode) {
|
|
105
|
-
case "ResourceNotFoundException":
|
|
106
|
-
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
107
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
108
|
-
default:
|
|
109
|
-
const parsedBody = parsedOutput.body;
|
|
110
|
-
return throwDefaultError({
|
|
111
|
-
output,
|
|
112
|
-
parsedBody,
|
|
113
|
-
errorCode,
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
79
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
118
80
|
if (output.statusCode >= 300) {
|
|
119
|
-
return
|
|
81
|
+
return de_CommandError(output, context);
|
|
120
82
|
}
|
|
121
83
|
const data = await parseBody(output.body, context);
|
|
122
84
|
let contents = {};
|
|
@@ -127,28 +89,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
127
89
|
};
|
|
128
90
|
return response;
|
|
129
91
|
};
|
|
130
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
131
|
-
const parsedOutput = {
|
|
132
|
-
...output,
|
|
133
|
-
body: await parseErrorBody(output.body, context),
|
|
134
|
-
};
|
|
135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
136
|
-
switch (errorCode) {
|
|
137
|
-
case "ResourceNotFoundException":
|
|
138
|
-
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
139
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
140
|
-
default:
|
|
141
|
-
const parsedBody = parsedOutput.body;
|
|
142
|
-
return throwDefaultError({
|
|
143
|
-
output,
|
|
144
|
-
parsedBody,
|
|
145
|
-
errorCode,
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
92
|
export const de_ListTunnelsCommand = async (output, context) => {
|
|
150
93
|
if (output.statusCode >= 300) {
|
|
151
|
-
return
|
|
94
|
+
return de_CommandError(output, context);
|
|
152
95
|
}
|
|
153
96
|
const data = await parseBody(output.body, context);
|
|
154
97
|
let contents = {};
|
|
@@ -159,22 +102,9 @@ export const de_ListTunnelsCommand = async (output, context) => {
|
|
|
159
102
|
};
|
|
160
103
|
return response;
|
|
161
104
|
};
|
|
162
|
-
const de_ListTunnelsCommandError = async (output, context) => {
|
|
163
|
-
const parsedOutput = {
|
|
164
|
-
...output,
|
|
165
|
-
body: await parseErrorBody(output.body, context),
|
|
166
|
-
};
|
|
167
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
168
|
-
const parsedBody = parsedOutput.body;
|
|
169
|
-
return throwDefaultError({
|
|
170
|
-
output,
|
|
171
|
-
parsedBody,
|
|
172
|
-
errorCode,
|
|
173
|
-
});
|
|
174
|
-
};
|
|
175
105
|
export const de_OpenTunnelCommand = async (output, context) => {
|
|
176
106
|
if (output.statusCode >= 300) {
|
|
177
|
-
return
|
|
107
|
+
return de_CommandError(output, context);
|
|
178
108
|
}
|
|
179
109
|
const data = await parseBody(output.body, context);
|
|
180
110
|
let contents = {};
|
|
@@ -185,28 +115,9 @@ export const de_OpenTunnelCommand = async (output, context) => {
|
|
|
185
115
|
};
|
|
186
116
|
return response;
|
|
187
117
|
};
|
|
188
|
-
const de_OpenTunnelCommandError = async (output, context) => {
|
|
189
|
-
const parsedOutput = {
|
|
190
|
-
...output,
|
|
191
|
-
body: await parseErrorBody(output.body, context),
|
|
192
|
-
};
|
|
193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
194
|
-
switch (errorCode) {
|
|
195
|
-
case "LimitExceededException":
|
|
196
|
-
case "com.amazonaws.iotsecuretunneling#LimitExceededException":
|
|
197
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
198
|
-
default:
|
|
199
|
-
const parsedBody = parsedOutput.body;
|
|
200
|
-
return throwDefaultError({
|
|
201
|
-
output,
|
|
202
|
-
parsedBody,
|
|
203
|
-
errorCode,
|
|
204
|
-
});
|
|
205
|
-
}
|
|
206
|
-
};
|
|
207
118
|
export const de_RotateTunnelAccessTokenCommand = async (output, context) => {
|
|
208
119
|
if (output.statusCode >= 300) {
|
|
209
|
-
return
|
|
120
|
+
return de_CommandError(output, context);
|
|
210
121
|
}
|
|
211
122
|
const data = await parseBody(output.body, context);
|
|
212
123
|
let contents = {};
|
|
@@ -217,28 +128,9 @@ export const de_RotateTunnelAccessTokenCommand = async (output, context) => {
|
|
|
217
128
|
};
|
|
218
129
|
return response;
|
|
219
130
|
};
|
|
220
|
-
const de_RotateTunnelAccessTokenCommandError = async (output, context) => {
|
|
221
|
-
const parsedOutput = {
|
|
222
|
-
...output,
|
|
223
|
-
body: await parseErrorBody(output.body, context),
|
|
224
|
-
};
|
|
225
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
226
|
-
switch (errorCode) {
|
|
227
|
-
case "ResourceNotFoundException":
|
|
228
|
-
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
229
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
230
|
-
default:
|
|
231
|
-
const parsedBody = parsedOutput.body;
|
|
232
|
-
return throwDefaultError({
|
|
233
|
-
output,
|
|
234
|
-
parsedBody,
|
|
235
|
-
errorCode,
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
131
|
export const de_TagResourceCommand = async (output, context) => {
|
|
240
132
|
if (output.statusCode >= 300) {
|
|
241
|
-
return
|
|
133
|
+
return de_CommandError(output, context);
|
|
242
134
|
}
|
|
243
135
|
const data = await parseBody(output.body, context);
|
|
244
136
|
let contents = {};
|
|
@@ -249,28 +141,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
249
141
|
};
|
|
250
142
|
return response;
|
|
251
143
|
};
|
|
252
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
253
|
-
const parsedOutput = {
|
|
254
|
-
...output,
|
|
255
|
-
body: await parseErrorBody(output.body, context),
|
|
256
|
-
};
|
|
257
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
258
|
-
switch (errorCode) {
|
|
259
|
-
case "ResourceNotFoundException":
|
|
260
|
-
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
261
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
262
|
-
default:
|
|
263
|
-
const parsedBody = parsedOutput.body;
|
|
264
|
-
return throwDefaultError({
|
|
265
|
-
output,
|
|
266
|
-
parsedBody,
|
|
267
|
-
errorCode,
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
144
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
272
145
|
if (output.statusCode >= 300) {
|
|
273
|
-
return
|
|
146
|
+
return de_CommandError(output, context);
|
|
274
147
|
}
|
|
275
148
|
const data = await parseBody(output.body, context);
|
|
276
149
|
let contents = {};
|
|
@@ -281,7 +154,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
281
154
|
};
|
|
282
155
|
return response;
|
|
283
156
|
};
|
|
284
|
-
const
|
|
157
|
+
const de_CommandError = async (output, context) => {
|
|
285
158
|
const parsedOutput = {
|
|
286
159
|
...output,
|
|
287
160
|
body: await parseErrorBody(output.body, context),
|
|
@@ -291,6 +164,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
291
164
|
case "ResourceNotFoundException":
|
|
292
165
|
case "com.amazonaws.iotsecuretunneling#ResourceNotFoundException":
|
|
293
166
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
167
|
+
case "LimitExceededException":
|
|
168
|
+
case "com.amazonaws.iotsecuretunneling#LimitExceededException":
|
|
169
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
294
170
|
default:
|
|
295
171
|
const parsedBody = parsedOutput.body;
|
|
296
172
|
return throwDefaultError({
|
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.507.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-iotsecuretunneling",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.507.0",
|
|
24
24
|
"@aws-sdk/core": "3.496.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.507.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.502.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.502.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.502.0",
|