@aws-sdk/client-kinesis-analytics 3.50.0 → 3.53.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/index.js +3 -0
- package/dist-cjs/models/KinesisAnalyticsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +162 -2
- package/dist-cjs/protocols/Aws_json1_1.js +231 -806
- package/dist-es/index.js +1 -0
- package/dist-es/models/KinesisAnalyticsServiceException.js +12 -0
- package/dist-es/models/models_0.js +148 -1
- package/dist-es/protocols/Aws_json1_1.js +477 -856
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/KinesisAnalyticsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +72 -56
- package/dist-types/ts3.4/KinesisAnalytics.d.ts +105 -0
- package/dist-types/ts3.4/KinesisAnalyticsClient.d.ts +93 -0
- package/dist-types/ts3.4/commands/AddApplicationCloudWatchLoggingOptionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AddApplicationInputCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AddApplicationInputProcessingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AddApplicationOutputCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/AddApplicationReferenceDataSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCloudWatchLoggingOptionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationInputProcessingConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationOutputCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteApplicationReferenceDataSourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DiscoverInputSchemaCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +20 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +5 -0
- package/dist-types/ts3.4/models/KinesisAnalyticsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +1173 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +62 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_1UpdateApplicationCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1StopApplicationCommand = exports.deserializeAws_json1_1StartApplicationCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListApplicationsCommand = exports.deserializeAws_json1_1DiscoverInputSchemaCommand = exports.deserializeAws_json1_1DescribeApplicationCommand = exports.deserializeAws_json1_1DeleteApplicationReferenceDataSourceCommand = exports.deserializeAws_json1_1DeleteApplicationOutputCommand = exports.deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommand = exports.deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommand = exports.deserializeAws_json1_1DeleteApplicationCommand = exports.deserializeAws_json1_1CreateApplicationCommand = exports.deserializeAws_json1_1AddApplicationReferenceDataSourceCommand = exports.deserializeAws_json1_1AddApplicationOutputCommand = exports.deserializeAws_json1_1AddApplicationInputProcessingConfigurationCommand = exports.deserializeAws_json1_1AddApplicationInputCommand = exports.deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommand = exports.serializeAws_json1_1UpdateApplicationCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1StopApplicationCommand = exports.serializeAws_json1_1StartApplicationCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListApplicationsCommand = exports.serializeAws_json1_1DiscoverInputSchemaCommand = exports.serializeAws_json1_1DescribeApplicationCommand = exports.serializeAws_json1_1DeleteApplicationReferenceDataSourceCommand = exports.serializeAws_json1_1DeleteApplicationOutputCommand = exports.serializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommand = exports.serializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommand = exports.serializeAws_json1_1DeleteApplicationCommand = exports.serializeAws_json1_1CreateApplicationCommand = exports.serializeAws_json1_1AddApplicationReferenceDataSourceCommand = exports.serializeAws_json1_1AddApplicationOutputCommand = exports.serializeAws_json1_1AddApplicationInputProcessingConfigurationCommand = exports.serializeAws_json1_1AddApplicationInputCommand = exports.serializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommand = void 0;
|
|
4
4
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
5
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
|
+
const KinesisAnalyticsServiceException_1 = require("../models/KinesisAnalyticsServiceException");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
6
8
|
const serializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -228,59 +230,28 @@ const deserializeAws_json1_1AddApplicationCloudWatchLoggingOptionCommandError =
|
|
|
228
230
|
switch (errorCode) {
|
|
229
231
|
case "ConcurrentModificationException":
|
|
230
232
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
231
|
-
|
|
232
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
233
|
-
name: errorCode,
|
|
234
|
-
$metadata: deserializeMetadata(output),
|
|
235
|
-
};
|
|
236
|
-
break;
|
|
233
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
237
234
|
case "InvalidArgumentException":
|
|
238
235
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
239
|
-
|
|
240
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
241
|
-
name: errorCode,
|
|
242
|
-
$metadata: deserializeMetadata(output),
|
|
243
|
-
};
|
|
244
|
-
break;
|
|
236
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
245
237
|
case "ResourceInUseException":
|
|
246
238
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
247
|
-
|
|
248
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
249
|
-
name: errorCode,
|
|
250
|
-
$metadata: deserializeMetadata(output),
|
|
251
|
-
};
|
|
252
|
-
break;
|
|
239
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
253
240
|
case "ResourceNotFoundException":
|
|
254
241
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
255
|
-
|
|
256
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
257
|
-
name: errorCode,
|
|
258
|
-
$metadata: deserializeMetadata(output),
|
|
259
|
-
};
|
|
260
|
-
break;
|
|
242
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
261
243
|
case "UnsupportedOperationException":
|
|
262
244
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
263
|
-
|
|
264
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
265
|
-
name: errorCode,
|
|
266
|
-
$metadata: deserializeMetadata(output),
|
|
267
|
-
};
|
|
268
|
-
break;
|
|
245
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
269
246
|
default:
|
|
270
247
|
const parsedBody = parsedOutput.body;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
...parsedBody,
|
|
274
|
-
name: `${errorCode}`,
|
|
275
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
248
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
249
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
276
250
|
$fault: "client",
|
|
277
251
|
$metadata: deserializeMetadata(output),
|
|
278
|
-
};
|
|
252
|
+
});
|
|
253
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
279
254
|
}
|
|
280
|
-
const message = response.message || response.Message || errorCode;
|
|
281
|
-
response.message = message;
|
|
282
|
-
delete response.Message;
|
|
283
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
284
255
|
};
|
|
285
256
|
const deserializeAws_json1_1AddApplicationInputCommand = async (output, context) => {
|
|
286
257
|
if (output.statusCode >= 300) {
|
|
@@ -307,67 +278,31 @@ const deserializeAws_json1_1AddApplicationInputCommandError = async (output, con
|
|
|
307
278
|
switch (errorCode) {
|
|
308
279
|
case "CodeValidationException":
|
|
309
280
|
case "com.amazonaws.kinesisanalytics#CodeValidationException":
|
|
310
|
-
|
|
311
|
-
...(await deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context)),
|
|
312
|
-
name: errorCode,
|
|
313
|
-
$metadata: deserializeMetadata(output),
|
|
314
|
-
};
|
|
315
|
-
break;
|
|
281
|
+
throw await deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context);
|
|
316
282
|
case "ConcurrentModificationException":
|
|
317
283
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
318
|
-
|
|
319
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
320
|
-
name: errorCode,
|
|
321
|
-
$metadata: deserializeMetadata(output),
|
|
322
|
-
};
|
|
323
|
-
break;
|
|
284
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
324
285
|
case "InvalidArgumentException":
|
|
325
286
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
326
|
-
|
|
327
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
328
|
-
name: errorCode,
|
|
329
|
-
$metadata: deserializeMetadata(output),
|
|
330
|
-
};
|
|
331
|
-
break;
|
|
287
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
332
288
|
case "ResourceInUseException":
|
|
333
289
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
334
|
-
|
|
335
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
336
|
-
name: errorCode,
|
|
337
|
-
$metadata: deserializeMetadata(output),
|
|
338
|
-
};
|
|
339
|
-
break;
|
|
290
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
340
291
|
case "ResourceNotFoundException":
|
|
341
292
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
342
|
-
|
|
343
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
344
|
-
name: errorCode,
|
|
345
|
-
$metadata: deserializeMetadata(output),
|
|
346
|
-
};
|
|
347
|
-
break;
|
|
293
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
348
294
|
case "UnsupportedOperationException":
|
|
349
295
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
350
|
-
|
|
351
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
352
|
-
name: errorCode,
|
|
353
|
-
$metadata: deserializeMetadata(output),
|
|
354
|
-
};
|
|
355
|
-
break;
|
|
296
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
356
297
|
default:
|
|
357
298
|
const parsedBody = parsedOutput.body;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
...parsedBody,
|
|
361
|
-
name: `${errorCode}`,
|
|
362
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
299
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
300
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
363
301
|
$fault: "client",
|
|
364
302
|
$metadata: deserializeMetadata(output),
|
|
365
|
-
};
|
|
303
|
+
});
|
|
304
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
366
305
|
}
|
|
367
|
-
const message = response.message || response.Message || errorCode;
|
|
368
|
-
response.message = message;
|
|
369
|
-
delete response.Message;
|
|
370
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
371
306
|
};
|
|
372
307
|
const deserializeAws_json1_1AddApplicationInputProcessingConfigurationCommand = async (output, context) => {
|
|
373
308
|
if (output.statusCode >= 300) {
|
|
@@ -394,59 +329,28 @@ const deserializeAws_json1_1AddApplicationInputProcessingConfigurationCommandErr
|
|
|
394
329
|
switch (errorCode) {
|
|
395
330
|
case "ConcurrentModificationException":
|
|
396
331
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
397
|
-
|
|
398
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
399
|
-
name: errorCode,
|
|
400
|
-
$metadata: deserializeMetadata(output),
|
|
401
|
-
};
|
|
402
|
-
break;
|
|
332
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
403
333
|
case "InvalidArgumentException":
|
|
404
334
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
405
|
-
|
|
406
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
407
|
-
name: errorCode,
|
|
408
|
-
$metadata: deserializeMetadata(output),
|
|
409
|
-
};
|
|
410
|
-
break;
|
|
335
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
411
336
|
case "ResourceInUseException":
|
|
412
337
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
413
|
-
|
|
414
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
415
|
-
name: errorCode,
|
|
416
|
-
$metadata: deserializeMetadata(output),
|
|
417
|
-
};
|
|
418
|
-
break;
|
|
338
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
419
339
|
case "ResourceNotFoundException":
|
|
420
340
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
421
|
-
|
|
422
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
423
|
-
name: errorCode,
|
|
424
|
-
$metadata: deserializeMetadata(output),
|
|
425
|
-
};
|
|
426
|
-
break;
|
|
341
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
427
342
|
case "UnsupportedOperationException":
|
|
428
343
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
429
|
-
|
|
430
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
431
|
-
name: errorCode,
|
|
432
|
-
$metadata: deserializeMetadata(output),
|
|
433
|
-
};
|
|
434
|
-
break;
|
|
344
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
435
345
|
default:
|
|
436
346
|
const parsedBody = parsedOutput.body;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
...parsedBody,
|
|
440
|
-
name: `${errorCode}`,
|
|
441
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
347
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
348
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
442
349
|
$fault: "client",
|
|
443
350
|
$metadata: deserializeMetadata(output),
|
|
444
|
-
};
|
|
351
|
+
});
|
|
352
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
445
353
|
}
|
|
446
|
-
const message = response.message || response.Message || errorCode;
|
|
447
|
-
response.message = message;
|
|
448
|
-
delete response.Message;
|
|
449
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
450
354
|
};
|
|
451
355
|
const deserializeAws_json1_1AddApplicationOutputCommand = async (output, context) => {
|
|
452
356
|
if (output.statusCode >= 300) {
|
|
@@ -473,59 +377,28 @@ const deserializeAws_json1_1AddApplicationOutputCommandError = async (output, co
|
|
|
473
377
|
switch (errorCode) {
|
|
474
378
|
case "ConcurrentModificationException":
|
|
475
379
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
476
|
-
|
|
477
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
478
|
-
name: errorCode,
|
|
479
|
-
$metadata: deserializeMetadata(output),
|
|
480
|
-
};
|
|
481
|
-
break;
|
|
380
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
482
381
|
case "InvalidArgumentException":
|
|
483
382
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
484
|
-
|
|
485
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
486
|
-
name: errorCode,
|
|
487
|
-
$metadata: deserializeMetadata(output),
|
|
488
|
-
};
|
|
489
|
-
break;
|
|
383
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
490
384
|
case "ResourceInUseException":
|
|
491
385
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
492
|
-
|
|
493
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
494
|
-
name: errorCode,
|
|
495
|
-
$metadata: deserializeMetadata(output),
|
|
496
|
-
};
|
|
497
|
-
break;
|
|
386
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
498
387
|
case "ResourceNotFoundException":
|
|
499
388
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
500
|
-
|
|
501
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
502
|
-
name: errorCode,
|
|
503
|
-
$metadata: deserializeMetadata(output),
|
|
504
|
-
};
|
|
505
|
-
break;
|
|
389
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
506
390
|
case "UnsupportedOperationException":
|
|
507
391
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
508
|
-
|
|
509
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
510
|
-
name: errorCode,
|
|
511
|
-
$metadata: deserializeMetadata(output),
|
|
512
|
-
};
|
|
513
|
-
break;
|
|
392
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
514
393
|
default:
|
|
515
394
|
const parsedBody = parsedOutput.body;
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
...parsedBody,
|
|
519
|
-
name: `${errorCode}`,
|
|
520
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
395
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
396
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
521
397
|
$fault: "client",
|
|
522
398
|
$metadata: deserializeMetadata(output),
|
|
523
|
-
};
|
|
399
|
+
});
|
|
400
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
524
401
|
}
|
|
525
|
-
const message = response.message || response.Message || errorCode;
|
|
526
|
-
response.message = message;
|
|
527
|
-
delete response.Message;
|
|
528
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
529
402
|
};
|
|
530
403
|
const deserializeAws_json1_1AddApplicationReferenceDataSourceCommand = async (output, context) => {
|
|
531
404
|
if (output.statusCode >= 300) {
|
|
@@ -552,59 +425,28 @@ const deserializeAws_json1_1AddApplicationReferenceDataSourceCommandError = asyn
|
|
|
552
425
|
switch (errorCode) {
|
|
553
426
|
case "ConcurrentModificationException":
|
|
554
427
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
555
|
-
|
|
556
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
557
|
-
name: errorCode,
|
|
558
|
-
$metadata: deserializeMetadata(output),
|
|
559
|
-
};
|
|
560
|
-
break;
|
|
428
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
561
429
|
case "InvalidArgumentException":
|
|
562
430
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
563
|
-
|
|
564
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
565
|
-
name: errorCode,
|
|
566
|
-
$metadata: deserializeMetadata(output),
|
|
567
|
-
};
|
|
568
|
-
break;
|
|
431
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
569
432
|
case "ResourceInUseException":
|
|
570
433
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
571
|
-
|
|
572
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
573
|
-
name: errorCode,
|
|
574
|
-
$metadata: deserializeMetadata(output),
|
|
575
|
-
};
|
|
576
|
-
break;
|
|
434
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
577
435
|
case "ResourceNotFoundException":
|
|
578
436
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
579
|
-
|
|
580
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
581
|
-
name: errorCode,
|
|
582
|
-
$metadata: deserializeMetadata(output),
|
|
583
|
-
};
|
|
584
|
-
break;
|
|
437
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
585
438
|
case "UnsupportedOperationException":
|
|
586
439
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
587
|
-
|
|
588
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
589
|
-
name: errorCode,
|
|
590
|
-
$metadata: deserializeMetadata(output),
|
|
591
|
-
};
|
|
592
|
-
break;
|
|
440
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
593
441
|
default:
|
|
594
442
|
const parsedBody = parsedOutput.body;
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
...parsedBody,
|
|
598
|
-
name: `${errorCode}`,
|
|
599
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
443
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
444
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
600
445
|
$fault: "client",
|
|
601
446
|
$metadata: deserializeMetadata(output),
|
|
602
|
-
};
|
|
447
|
+
});
|
|
448
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
603
449
|
}
|
|
604
|
-
const message = response.message || response.Message || errorCode;
|
|
605
|
-
response.message = message;
|
|
606
|
-
delete response.Message;
|
|
607
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
608
450
|
};
|
|
609
451
|
const deserializeAws_json1_1CreateApplicationCommand = async (output, context) => {
|
|
610
452
|
if (output.statusCode >= 300) {
|
|
@@ -631,67 +473,31 @@ const deserializeAws_json1_1CreateApplicationCommandError = async (output, conte
|
|
|
631
473
|
switch (errorCode) {
|
|
632
474
|
case "CodeValidationException":
|
|
633
475
|
case "com.amazonaws.kinesisanalytics#CodeValidationException":
|
|
634
|
-
|
|
635
|
-
...(await deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context)),
|
|
636
|
-
name: errorCode,
|
|
637
|
-
$metadata: deserializeMetadata(output),
|
|
638
|
-
};
|
|
639
|
-
break;
|
|
476
|
+
throw await deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context);
|
|
640
477
|
case "ConcurrentModificationException":
|
|
641
478
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
642
|
-
|
|
643
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
644
|
-
name: errorCode,
|
|
645
|
-
$metadata: deserializeMetadata(output),
|
|
646
|
-
};
|
|
647
|
-
break;
|
|
479
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
648
480
|
case "InvalidArgumentException":
|
|
649
481
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
650
|
-
|
|
651
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
652
|
-
name: errorCode,
|
|
653
|
-
$metadata: deserializeMetadata(output),
|
|
654
|
-
};
|
|
655
|
-
break;
|
|
482
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
656
483
|
case "LimitExceededException":
|
|
657
484
|
case "com.amazonaws.kinesisanalytics#LimitExceededException":
|
|
658
|
-
|
|
659
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
660
|
-
name: errorCode,
|
|
661
|
-
$metadata: deserializeMetadata(output),
|
|
662
|
-
};
|
|
663
|
-
break;
|
|
485
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
664
486
|
case "ResourceInUseException":
|
|
665
487
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
666
|
-
|
|
667
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
668
|
-
name: errorCode,
|
|
669
|
-
$metadata: deserializeMetadata(output),
|
|
670
|
-
};
|
|
671
|
-
break;
|
|
488
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
672
489
|
case "TooManyTagsException":
|
|
673
490
|
case "com.amazonaws.kinesisanalytics#TooManyTagsException":
|
|
674
|
-
|
|
675
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
676
|
-
name: errorCode,
|
|
677
|
-
$metadata: deserializeMetadata(output),
|
|
678
|
-
};
|
|
679
|
-
break;
|
|
491
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
680
492
|
default:
|
|
681
493
|
const parsedBody = parsedOutput.body;
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
...parsedBody,
|
|
685
|
-
name: `${errorCode}`,
|
|
686
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
494
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
495
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
687
496
|
$fault: "client",
|
|
688
497
|
$metadata: deserializeMetadata(output),
|
|
689
|
-
};
|
|
498
|
+
});
|
|
499
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
690
500
|
}
|
|
691
|
-
const message = response.message || response.Message || errorCode;
|
|
692
|
-
response.message = message;
|
|
693
|
-
delete response.Message;
|
|
694
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
695
501
|
};
|
|
696
502
|
const deserializeAws_json1_1DeleteApplicationCommand = async (output, context) => {
|
|
697
503
|
if (output.statusCode >= 300) {
|
|
@@ -718,51 +524,25 @@ const deserializeAws_json1_1DeleteApplicationCommandError = async (output, conte
|
|
|
718
524
|
switch (errorCode) {
|
|
719
525
|
case "ConcurrentModificationException":
|
|
720
526
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
721
|
-
|
|
722
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
723
|
-
name: errorCode,
|
|
724
|
-
$metadata: deserializeMetadata(output),
|
|
725
|
-
};
|
|
726
|
-
break;
|
|
527
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
727
528
|
case "ResourceInUseException":
|
|
728
529
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
729
|
-
|
|
730
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
731
|
-
name: errorCode,
|
|
732
|
-
$metadata: deserializeMetadata(output),
|
|
733
|
-
};
|
|
734
|
-
break;
|
|
530
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
735
531
|
case "ResourceNotFoundException":
|
|
736
532
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
737
|
-
|
|
738
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
739
|
-
name: errorCode,
|
|
740
|
-
$metadata: deserializeMetadata(output),
|
|
741
|
-
};
|
|
742
|
-
break;
|
|
533
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
743
534
|
case "UnsupportedOperationException":
|
|
744
535
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
745
|
-
|
|
746
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
747
|
-
name: errorCode,
|
|
748
|
-
$metadata: deserializeMetadata(output),
|
|
749
|
-
};
|
|
750
|
-
break;
|
|
536
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
751
537
|
default:
|
|
752
538
|
const parsedBody = parsedOutput.body;
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
...parsedBody,
|
|
756
|
-
name: `${errorCode}`,
|
|
757
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
539
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
540
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
758
541
|
$fault: "client",
|
|
759
542
|
$metadata: deserializeMetadata(output),
|
|
760
|
-
};
|
|
543
|
+
});
|
|
544
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
761
545
|
}
|
|
762
|
-
const message = response.message || response.Message || errorCode;
|
|
763
|
-
response.message = message;
|
|
764
|
-
delete response.Message;
|
|
765
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
766
546
|
};
|
|
767
547
|
const deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommand = async (output, context) => {
|
|
768
548
|
if (output.statusCode >= 300) {
|
|
@@ -789,59 +569,28 @@ const deserializeAws_json1_1DeleteApplicationCloudWatchLoggingOptionCommandError
|
|
|
789
569
|
switch (errorCode) {
|
|
790
570
|
case "ConcurrentModificationException":
|
|
791
571
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
792
|
-
|
|
793
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
794
|
-
name: errorCode,
|
|
795
|
-
$metadata: deserializeMetadata(output),
|
|
796
|
-
};
|
|
797
|
-
break;
|
|
572
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
798
573
|
case "InvalidArgumentException":
|
|
799
574
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
800
|
-
|
|
801
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
802
|
-
name: errorCode,
|
|
803
|
-
$metadata: deserializeMetadata(output),
|
|
804
|
-
};
|
|
805
|
-
break;
|
|
575
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
806
576
|
case "ResourceInUseException":
|
|
807
577
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
808
|
-
|
|
809
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
810
|
-
name: errorCode,
|
|
811
|
-
$metadata: deserializeMetadata(output),
|
|
812
|
-
};
|
|
813
|
-
break;
|
|
578
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
814
579
|
case "ResourceNotFoundException":
|
|
815
580
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
816
|
-
|
|
817
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
818
|
-
name: errorCode,
|
|
819
|
-
$metadata: deserializeMetadata(output),
|
|
820
|
-
};
|
|
821
|
-
break;
|
|
581
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
822
582
|
case "UnsupportedOperationException":
|
|
823
583
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
824
|
-
|
|
825
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
826
|
-
name: errorCode,
|
|
827
|
-
$metadata: deserializeMetadata(output),
|
|
828
|
-
};
|
|
829
|
-
break;
|
|
584
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
830
585
|
default:
|
|
831
586
|
const parsedBody = parsedOutput.body;
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
...parsedBody,
|
|
835
|
-
name: `${errorCode}`,
|
|
836
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
587
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
588
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
837
589
|
$fault: "client",
|
|
838
590
|
$metadata: deserializeMetadata(output),
|
|
839
|
-
};
|
|
591
|
+
});
|
|
592
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
840
593
|
}
|
|
841
|
-
const message = response.message || response.Message || errorCode;
|
|
842
|
-
response.message = message;
|
|
843
|
-
delete response.Message;
|
|
844
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
845
594
|
};
|
|
846
595
|
const deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommand = async (output, context) => {
|
|
847
596
|
if (output.statusCode >= 300) {
|
|
@@ -868,59 +617,28 @@ const deserializeAws_json1_1DeleteApplicationInputProcessingConfigurationCommand
|
|
|
868
617
|
switch (errorCode) {
|
|
869
618
|
case "ConcurrentModificationException":
|
|
870
619
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
871
|
-
|
|
872
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
873
|
-
name: errorCode,
|
|
874
|
-
$metadata: deserializeMetadata(output),
|
|
875
|
-
};
|
|
876
|
-
break;
|
|
620
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
877
621
|
case "InvalidArgumentException":
|
|
878
622
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
879
|
-
|
|
880
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
881
|
-
name: errorCode,
|
|
882
|
-
$metadata: deserializeMetadata(output),
|
|
883
|
-
};
|
|
884
|
-
break;
|
|
623
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
885
624
|
case "ResourceInUseException":
|
|
886
625
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
887
|
-
|
|
888
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
889
|
-
name: errorCode,
|
|
890
|
-
$metadata: deserializeMetadata(output),
|
|
891
|
-
};
|
|
892
|
-
break;
|
|
626
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
893
627
|
case "ResourceNotFoundException":
|
|
894
628
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
895
|
-
|
|
896
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
897
|
-
name: errorCode,
|
|
898
|
-
$metadata: deserializeMetadata(output),
|
|
899
|
-
};
|
|
900
|
-
break;
|
|
629
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
901
630
|
case "UnsupportedOperationException":
|
|
902
631
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
903
|
-
|
|
904
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
905
|
-
name: errorCode,
|
|
906
|
-
$metadata: deserializeMetadata(output),
|
|
907
|
-
};
|
|
908
|
-
break;
|
|
632
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
909
633
|
default:
|
|
910
634
|
const parsedBody = parsedOutput.body;
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
...parsedBody,
|
|
914
|
-
name: `${errorCode}`,
|
|
915
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
635
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
636
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
916
637
|
$fault: "client",
|
|
917
638
|
$metadata: deserializeMetadata(output),
|
|
918
|
-
};
|
|
639
|
+
});
|
|
640
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
919
641
|
}
|
|
920
|
-
const message = response.message || response.Message || errorCode;
|
|
921
|
-
response.message = message;
|
|
922
|
-
delete response.Message;
|
|
923
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
924
642
|
};
|
|
925
643
|
const deserializeAws_json1_1DeleteApplicationOutputCommand = async (output, context) => {
|
|
926
644
|
if (output.statusCode >= 300) {
|
|
@@ -947,59 +665,28 @@ const deserializeAws_json1_1DeleteApplicationOutputCommandError = async (output,
|
|
|
947
665
|
switch (errorCode) {
|
|
948
666
|
case "ConcurrentModificationException":
|
|
949
667
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
950
|
-
|
|
951
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
952
|
-
name: errorCode,
|
|
953
|
-
$metadata: deserializeMetadata(output),
|
|
954
|
-
};
|
|
955
|
-
break;
|
|
668
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
956
669
|
case "InvalidArgumentException":
|
|
957
670
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
958
|
-
|
|
959
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
960
|
-
name: errorCode,
|
|
961
|
-
$metadata: deserializeMetadata(output),
|
|
962
|
-
};
|
|
963
|
-
break;
|
|
671
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
964
672
|
case "ResourceInUseException":
|
|
965
673
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
966
|
-
|
|
967
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
968
|
-
name: errorCode,
|
|
969
|
-
$metadata: deserializeMetadata(output),
|
|
970
|
-
};
|
|
971
|
-
break;
|
|
674
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
972
675
|
case "ResourceNotFoundException":
|
|
973
676
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
974
|
-
|
|
975
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
976
|
-
name: errorCode,
|
|
977
|
-
$metadata: deserializeMetadata(output),
|
|
978
|
-
};
|
|
979
|
-
break;
|
|
677
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
980
678
|
case "UnsupportedOperationException":
|
|
981
679
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
982
|
-
|
|
983
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
984
|
-
name: errorCode,
|
|
985
|
-
$metadata: deserializeMetadata(output),
|
|
986
|
-
};
|
|
987
|
-
break;
|
|
680
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
988
681
|
default:
|
|
989
682
|
const parsedBody = parsedOutput.body;
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
...parsedBody,
|
|
993
|
-
name: `${errorCode}`,
|
|
994
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
683
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
684
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
995
685
|
$fault: "client",
|
|
996
686
|
$metadata: deserializeMetadata(output),
|
|
997
|
-
};
|
|
687
|
+
});
|
|
688
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
998
689
|
}
|
|
999
|
-
const message = response.message || response.Message || errorCode;
|
|
1000
|
-
response.message = message;
|
|
1001
|
-
delete response.Message;
|
|
1002
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1003
690
|
};
|
|
1004
691
|
const deserializeAws_json1_1DeleteApplicationReferenceDataSourceCommand = async (output, context) => {
|
|
1005
692
|
if (output.statusCode >= 300) {
|
|
@@ -1026,59 +713,28 @@ const deserializeAws_json1_1DeleteApplicationReferenceDataSourceCommandError = a
|
|
|
1026
713
|
switch (errorCode) {
|
|
1027
714
|
case "ConcurrentModificationException":
|
|
1028
715
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1029
|
-
|
|
1030
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1031
|
-
name: errorCode,
|
|
1032
|
-
$metadata: deserializeMetadata(output),
|
|
1033
|
-
};
|
|
1034
|
-
break;
|
|
716
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1035
717
|
case "InvalidArgumentException":
|
|
1036
718
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1037
|
-
|
|
1038
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1039
|
-
name: errorCode,
|
|
1040
|
-
$metadata: deserializeMetadata(output),
|
|
1041
|
-
};
|
|
1042
|
-
break;
|
|
719
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1043
720
|
case "ResourceInUseException":
|
|
1044
721
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1045
|
-
|
|
1046
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1047
|
-
name: errorCode,
|
|
1048
|
-
$metadata: deserializeMetadata(output),
|
|
1049
|
-
};
|
|
1050
|
-
break;
|
|
722
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1051
723
|
case "ResourceNotFoundException":
|
|
1052
724
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1053
|
-
|
|
1054
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1055
|
-
name: errorCode,
|
|
1056
|
-
$metadata: deserializeMetadata(output),
|
|
1057
|
-
};
|
|
1058
|
-
break;
|
|
725
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1059
726
|
case "UnsupportedOperationException":
|
|
1060
727
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1061
|
-
|
|
1062
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1063
|
-
name: errorCode,
|
|
1064
|
-
$metadata: deserializeMetadata(output),
|
|
1065
|
-
};
|
|
1066
|
-
break;
|
|
728
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1067
729
|
default:
|
|
1068
730
|
const parsedBody = parsedOutput.body;
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
...parsedBody,
|
|
1072
|
-
name: `${errorCode}`,
|
|
1073
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
731
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
732
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1074
733
|
$fault: "client",
|
|
1075
734
|
$metadata: deserializeMetadata(output),
|
|
1076
|
-
};
|
|
735
|
+
});
|
|
736
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1077
737
|
}
|
|
1078
|
-
const message = response.message || response.Message || errorCode;
|
|
1079
|
-
response.message = message;
|
|
1080
|
-
delete response.Message;
|
|
1081
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1082
738
|
};
|
|
1083
739
|
const deserializeAws_json1_1DescribeApplicationCommand = async (output, context) => {
|
|
1084
740
|
if (output.statusCode >= 300) {
|
|
@@ -1105,35 +761,19 @@ const deserializeAws_json1_1DescribeApplicationCommandError = async (output, con
|
|
|
1105
761
|
switch (errorCode) {
|
|
1106
762
|
case "ResourceNotFoundException":
|
|
1107
763
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1108
|
-
|
|
1109
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1110
|
-
name: errorCode,
|
|
1111
|
-
$metadata: deserializeMetadata(output),
|
|
1112
|
-
};
|
|
1113
|
-
break;
|
|
764
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1114
765
|
case "UnsupportedOperationException":
|
|
1115
766
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1116
|
-
|
|
1117
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1118
|
-
name: errorCode,
|
|
1119
|
-
$metadata: deserializeMetadata(output),
|
|
1120
|
-
};
|
|
1121
|
-
break;
|
|
767
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1122
768
|
default:
|
|
1123
769
|
const parsedBody = parsedOutput.body;
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
...parsedBody,
|
|
1127
|
-
name: `${errorCode}`,
|
|
1128
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
770
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
771
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1129
772
|
$fault: "client",
|
|
1130
773
|
$metadata: deserializeMetadata(output),
|
|
1131
|
-
};
|
|
774
|
+
});
|
|
775
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1132
776
|
}
|
|
1133
|
-
const message = response.message || response.Message || errorCode;
|
|
1134
|
-
response.message = message;
|
|
1135
|
-
delete response.Message;
|
|
1136
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1137
777
|
};
|
|
1138
778
|
const deserializeAws_json1_1DiscoverInputSchemaCommand = async (output, context) => {
|
|
1139
779
|
if (output.statusCode >= 300) {
|
|
@@ -1160,51 +800,25 @@ const deserializeAws_json1_1DiscoverInputSchemaCommandError = async (output, con
|
|
|
1160
800
|
switch (errorCode) {
|
|
1161
801
|
case "InvalidArgumentException":
|
|
1162
802
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1163
|
-
|
|
1164
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1165
|
-
name: errorCode,
|
|
1166
|
-
$metadata: deserializeMetadata(output),
|
|
1167
|
-
};
|
|
1168
|
-
break;
|
|
803
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1169
804
|
case "ResourceProvisionedThroughputExceededException":
|
|
1170
805
|
case "com.amazonaws.kinesisanalytics#ResourceProvisionedThroughputExceededException":
|
|
1171
|
-
|
|
1172
|
-
...(await deserializeAws_json1_1ResourceProvisionedThroughputExceededExceptionResponse(parsedOutput, context)),
|
|
1173
|
-
name: errorCode,
|
|
1174
|
-
$metadata: deserializeMetadata(output),
|
|
1175
|
-
};
|
|
1176
|
-
break;
|
|
806
|
+
throw await deserializeAws_json1_1ResourceProvisionedThroughputExceededExceptionResponse(parsedOutput, context);
|
|
1177
807
|
case "ServiceUnavailableException":
|
|
1178
808
|
case "com.amazonaws.kinesisanalytics#ServiceUnavailableException":
|
|
1179
|
-
|
|
1180
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1181
|
-
name: errorCode,
|
|
1182
|
-
$metadata: deserializeMetadata(output),
|
|
1183
|
-
};
|
|
1184
|
-
break;
|
|
809
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1185
810
|
case "UnableToDetectSchemaException":
|
|
1186
811
|
case "com.amazonaws.kinesisanalytics#UnableToDetectSchemaException":
|
|
1187
|
-
|
|
1188
|
-
...(await deserializeAws_json1_1UnableToDetectSchemaExceptionResponse(parsedOutput, context)),
|
|
1189
|
-
name: errorCode,
|
|
1190
|
-
$metadata: deserializeMetadata(output),
|
|
1191
|
-
};
|
|
1192
|
-
break;
|
|
812
|
+
throw await deserializeAws_json1_1UnableToDetectSchemaExceptionResponse(parsedOutput, context);
|
|
1193
813
|
default:
|
|
1194
814
|
const parsedBody = parsedOutput.body;
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
...parsedBody,
|
|
1198
|
-
name: `${errorCode}`,
|
|
1199
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
815
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
816
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1200
817
|
$fault: "client",
|
|
1201
818
|
$metadata: deserializeMetadata(output),
|
|
1202
|
-
};
|
|
819
|
+
});
|
|
820
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1203
821
|
}
|
|
1204
|
-
const message = response.message || response.Message || errorCode;
|
|
1205
|
-
response.message = message;
|
|
1206
|
-
delete response.Message;
|
|
1207
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1208
822
|
};
|
|
1209
823
|
const deserializeAws_json1_1ListApplicationsCommand = async (output, context) => {
|
|
1210
824
|
if (output.statusCode >= 300) {
|
|
@@ -1231,19 +845,13 @@ const deserializeAws_json1_1ListApplicationsCommandError = async (output, contex
|
|
|
1231
845
|
switch (errorCode) {
|
|
1232
846
|
default:
|
|
1233
847
|
const parsedBody = parsedOutput.body;
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
...parsedBody,
|
|
1237
|
-
name: `${errorCode}`,
|
|
1238
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
848
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
849
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1239
850
|
$fault: "client",
|
|
1240
851
|
$metadata: deserializeMetadata(output),
|
|
1241
|
-
};
|
|
852
|
+
});
|
|
853
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1242
854
|
}
|
|
1243
|
-
const message = response.message || response.Message || errorCode;
|
|
1244
|
-
response.message = message;
|
|
1245
|
-
delete response.Message;
|
|
1246
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1247
855
|
};
|
|
1248
856
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1249
857
|
if (output.statusCode >= 300) {
|
|
@@ -1270,43 +878,22 @@ const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, con
|
|
|
1270
878
|
switch (errorCode) {
|
|
1271
879
|
case "ConcurrentModificationException":
|
|
1272
880
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1273
|
-
|
|
1274
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1275
|
-
name: errorCode,
|
|
1276
|
-
$metadata: deserializeMetadata(output),
|
|
1277
|
-
};
|
|
1278
|
-
break;
|
|
881
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1279
882
|
case "InvalidArgumentException":
|
|
1280
883
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1281
|
-
|
|
1282
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1283
|
-
name: errorCode,
|
|
1284
|
-
$metadata: deserializeMetadata(output),
|
|
1285
|
-
};
|
|
1286
|
-
break;
|
|
884
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1287
885
|
case "ResourceNotFoundException":
|
|
1288
886
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1289
|
-
|
|
1290
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1291
|
-
name: errorCode,
|
|
1292
|
-
$metadata: deserializeMetadata(output),
|
|
1293
|
-
};
|
|
1294
|
-
break;
|
|
887
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1295
888
|
default:
|
|
1296
889
|
const parsedBody = parsedOutput.body;
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
...parsedBody,
|
|
1300
|
-
name: `${errorCode}`,
|
|
1301
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
890
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
891
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1302
892
|
$fault: "client",
|
|
1303
893
|
$metadata: deserializeMetadata(output),
|
|
1304
|
-
};
|
|
894
|
+
});
|
|
895
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1305
896
|
}
|
|
1306
|
-
const message = response.message || response.Message || errorCode;
|
|
1307
|
-
response.message = message;
|
|
1308
|
-
delete response.Message;
|
|
1309
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1310
897
|
};
|
|
1311
898
|
const deserializeAws_json1_1StartApplicationCommand = async (output, context) => {
|
|
1312
899
|
if (output.statusCode >= 300) {
|
|
@@ -1333,59 +920,28 @@ const deserializeAws_json1_1StartApplicationCommandError = async (output, contex
|
|
|
1333
920
|
switch (errorCode) {
|
|
1334
921
|
case "InvalidApplicationConfigurationException":
|
|
1335
922
|
case "com.amazonaws.kinesisanalytics#InvalidApplicationConfigurationException":
|
|
1336
|
-
|
|
1337
|
-
...(await deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context)),
|
|
1338
|
-
name: errorCode,
|
|
1339
|
-
$metadata: deserializeMetadata(output),
|
|
1340
|
-
};
|
|
1341
|
-
break;
|
|
923
|
+
throw await deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse(parsedOutput, context);
|
|
1342
924
|
case "InvalidArgumentException":
|
|
1343
925
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1344
|
-
|
|
1345
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1346
|
-
name: errorCode,
|
|
1347
|
-
$metadata: deserializeMetadata(output),
|
|
1348
|
-
};
|
|
1349
|
-
break;
|
|
926
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1350
927
|
case "ResourceInUseException":
|
|
1351
928
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1352
|
-
|
|
1353
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1354
|
-
name: errorCode,
|
|
1355
|
-
$metadata: deserializeMetadata(output),
|
|
1356
|
-
};
|
|
1357
|
-
break;
|
|
929
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1358
930
|
case "ResourceNotFoundException":
|
|
1359
931
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1360
|
-
|
|
1361
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1362
|
-
name: errorCode,
|
|
1363
|
-
$metadata: deserializeMetadata(output),
|
|
1364
|
-
};
|
|
1365
|
-
break;
|
|
932
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1366
933
|
case "UnsupportedOperationException":
|
|
1367
934
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1368
|
-
|
|
1369
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1370
|
-
name: errorCode,
|
|
1371
|
-
$metadata: deserializeMetadata(output),
|
|
1372
|
-
};
|
|
1373
|
-
break;
|
|
935
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1374
936
|
default:
|
|
1375
937
|
const parsedBody = parsedOutput.body;
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
...parsedBody,
|
|
1379
|
-
name: `${errorCode}`,
|
|
1380
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
938
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
939
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1381
940
|
$fault: "client",
|
|
1382
941
|
$metadata: deserializeMetadata(output),
|
|
1383
|
-
};
|
|
942
|
+
});
|
|
943
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1384
944
|
}
|
|
1385
|
-
const message = response.message || response.Message || errorCode;
|
|
1386
|
-
response.message = message;
|
|
1387
|
-
delete response.Message;
|
|
1388
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1389
945
|
};
|
|
1390
946
|
const deserializeAws_json1_1StopApplicationCommand = async (output, context) => {
|
|
1391
947
|
if (output.statusCode >= 300) {
|
|
@@ -1412,43 +968,22 @@ const deserializeAws_json1_1StopApplicationCommandError = async (output, context
|
|
|
1412
968
|
switch (errorCode) {
|
|
1413
969
|
case "ResourceInUseException":
|
|
1414
970
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1415
|
-
|
|
1416
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1417
|
-
name: errorCode,
|
|
1418
|
-
$metadata: deserializeMetadata(output),
|
|
1419
|
-
};
|
|
1420
|
-
break;
|
|
971
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1421
972
|
case "ResourceNotFoundException":
|
|
1422
973
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1423
|
-
|
|
1424
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1425
|
-
name: errorCode,
|
|
1426
|
-
$metadata: deserializeMetadata(output),
|
|
1427
|
-
};
|
|
1428
|
-
break;
|
|
974
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1429
975
|
case "UnsupportedOperationException":
|
|
1430
976
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1431
|
-
|
|
1432
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1433
|
-
name: errorCode,
|
|
1434
|
-
$metadata: deserializeMetadata(output),
|
|
1435
|
-
};
|
|
1436
|
-
break;
|
|
977
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1437
978
|
default:
|
|
1438
979
|
const parsedBody = parsedOutput.body;
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
...parsedBody,
|
|
1442
|
-
name: `${errorCode}`,
|
|
1443
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
980
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
981
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1444
982
|
$fault: "client",
|
|
1445
983
|
$metadata: deserializeMetadata(output),
|
|
1446
|
-
};
|
|
984
|
+
});
|
|
985
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1447
986
|
}
|
|
1448
|
-
const message = response.message || response.Message || errorCode;
|
|
1449
|
-
response.message = message;
|
|
1450
|
-
delete response.Message;
|
|
1451
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1452
987
|
};
|
|
1453
988
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1454
989
|
if (output.statusCode >= 300) {
|
|
@@ -1475,59 +1010,28 @@ const deserializeAws_json1_1TagResourceCommandError = async (output, context) =>
|
|
|
1475
1010
|
switch (errorCode) {
|
|
1476
1011
|
case "ConcurrentModificationException":
|
|
1477
1012
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1478
|
-
|
|
1479
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1480
|
-
name: errorCode,
|
|
1481
|
-
$metadata: deserializeMetadata(output),
|
|
1482
|
-
};
|
|
1483
|
-
break;
|
|
1013
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1484
1014
|
case "InvalidArgumentException":
|
|
1485
1015
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1486
|
-
|
|
1487
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1488
|
-
name: errorCode,
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
};
|
|
1491
|
-
break;
|
|
1016
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1492
1017
|
case "ResourceInUseException":
|
|
1493
1018
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1494
|
-
|
|
1495
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1496
|
-
name: errorCode,
|
|
1497
|
-
$metadata: deserializeMetadata(output),
|
|
1498
|
-
};
|
|
1499
|
-
break;
|
|
1019
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1500
1020
|
case "ResourceNotFoundException":
|
|
1501
1021
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1502
|
-
|
|
1503
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1504
|
-
name: errorCode,
|
|
1505
|
-
$metadata: deserializeMetadata(output),
|
|
1506
|
-
};
|
|
1507
|
-
break;
|
|
1022
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1508
1023
|
case "TooManyTagsException":
|
|
1509
1024
|
case "com.amazonaws.kinesisanalytics#TooManyTagsException":
|
|
1510
|
-
|
|
1511
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
1512
|
-
name: errorCode,
|
|
1513
|
-
$metadata: deserializeMetadata(output),
|
|
1514
|
-
};
|
|
1515
|
-
break;
|
|
1025
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1516
1026
|
default:
|
|
1517
1027
|
const parsedBody = parsedOutput.body;
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
...parsedBody,
|
|
1521
|
-
name: `${errorCode}`,
|
|
1522
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1028
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
1029
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1523
1030
|
$fault: "client",
|
|
1524
1031
|
$metadata: deserializeMetadata(output),
|
|
1525
|
-
};
|
|
1032
|
+
});
|
|
1033
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1526
1034
|
}
|
|
1527
|
-
const message = response.message || response.Message || errorCode;
|
|
1528
|
-
response.message = message;
|
|
1529
|
-
delete response.Message;
|
|
1530
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1531
1035
|
};
|
|
1532
1036
|
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1533
1037
|
if (output.statusCode >= 300) {
|
|
@@ -1554,59 +1058,28 @@ const deserializeAws_json1_1UntagResourceCommandError = async (output, context)
|
|
|
1554
1058
|
switch (errorCode) {
|
|
1555
1059
|
case "ConcurrentModificationException":
|
|
1556
1060
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1557
|
-
|
|
1558
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1559
|
-
name: errorCode,
|
|
1560
|
-
$metadata: deserializeMetadata(output),
|
|
1561
|
-
};
|
|
1562
|
-
break;
|
|
1061
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1563
1062
|
case "InvalidArgumentException":
|
|
1564
1063
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1565
|
-
|
|
1566
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1567
|
-
name: errorCode,
|
|
1568
|
-
$metadata: deserializeMetadata(output),
|
|
1569
|
-
};
|
|
1570
|
-
break;
|
|
1064
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1571
1065
|
case "ResourceInUseException":
|
|
1572
1066
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1573
|
-
|
|
1574
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1575
|
-
name: errorCode,
|
|
1576
|
-
$metadata: deserializeMetadata(output),
|
|
1577
|
-
};
|
|
1578
|
-
break;
|
|
1067
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1579
1068
|
case "ResourceNotFoundException":
|
|
1580
1069
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1581
|
-
|
|
1582
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1583
|
-
name: errorCode,
|
|
1584
|
-
$metadata: deserializeMetadata(output),
|
|
1585
|
-
};
|
|
1586
|
-
break;
|
|
1070
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1587
1071
|
case "TooManyTagsException":
|
|
1588
1072
|
case "com.amazonaws.kinesisanalytics#TooManyTagsException":
|
|
1589
|
-
|
|
1590
|
-
...(await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context)),
|
|
1591
|
-
name: errorCode,
|
|
1592
|
-
$metadata: deserializeMetadata(output),
|
|
1593
|
-
};
|
|
1594
|
-
break;
|
|
1073
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1595
1074
|
default:
|
|
1596
1075
|
const parsedBody = parsedOutput.body;
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
...parsedBody,
|
|
1600
|
-
name: `${errorCode}`,
|
|
1601
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1076
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
1077
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1602
1078
|
$fault: "client",
|
|
1603
1079
|
$metadata: deserializeMetadata(output),
|
|
1604
|
-
};
|
|
1080
|
+
});
|
|
1081
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1605
1082
|
}
|
|
1606
|
-
const message = response.message || response.Message || errorCode;
|
|
1607
|
-
response.message = message;
|
|
1608
|
-
delete response.Message;
|
|
1609
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1610
1083
|
};
|
|
1611
1084
|
const deserializeAws_json1_1UpdateApplicationCommand = async (output, context) => {
|
|
1612
1085
|
if (output.statusCode >= 300) {
|
|
@@ -1633,199 +1106,139 @@ const deserializeAws_json1_1UpdateApplicationCommandError = async (output, conte
|
|
|
1633
1106
|
switch (errorCode) {
|
|
1634
1107
|
case "CodeValidationException":
|
|
1635
1108
|
case "com.amazonaws.kinesisanalytics#CodeValidationException":
|
|
1636
|
-
|
|
1637
|
-
...(await deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context)),
|
|
1638
|
-
name: errorCode,
|
|
1639
|
-
$metadata: deserializeMetadata(output),
|
|
1640
|
-
};
|
|
1641
|
-
break;
|
|
1109
|
+
throw await deserializeAws_json1_1CodeValidationExceptionResponse(parsedOutput, context);
|
|
1642
1110
|
case "ConcurrentModificationException":
|
|
1643
1111
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
1644
|
-
|
|
1645
|
-
...(await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context)),
|
|
1646
|
-
name: errorCode,
|
|
1647
|
-
$metadata: deserializeMetadata(output),
|
|
1648
|
-
};
|
|
1649
|
-
break;
|
|
1112
|
+
throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
|
|
1650
1113
|
case "InvalidArgumentException":
|
|
1651
1114
|
case "com.amazonaws.kinesisanalytics#InvalidArgumentException":
|
|
1652
|
-
|
|
1653
|
-
...(await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context)),
|
|
1654
|
-
name: errorCode,
|
|
1655
|
-
$metadata: deserializeMetadata(output),
|
|
1656
|
-
};
|
|
1657
|
-
break;
|
|
1115
|
+
throw await deserializeAws_json1_1InvalidArgumentExceptionResponse(parsedOutput, context);
|
|
1658
1116
|
case "ResourceInUseException":
|
|
1659
1117
|
case "com.amazonaws.kinesisanalytics#ResourceInUseException":
|
|
1660
|
-
|
|
1661
|
-
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1662
|
-
name: errorCode,
|
|
1663
|
-
$metadata: deserializeMetadata(output),
|
|
1664
|
-
};
|
|
1665
|
-
break;
|
|
1118
|
+
throw await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context);
|
|
1666
1119
|
case "ResourceNotFoundException":
|
|
1667
1120
|
case "com.amazonaws.kinesisanalytics#ResourceNotFoundException":
|
|
1668
|
-
|
|
1669
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1670
|
-
name: errorCode,
|
|
1671
|
-
$metadata: deserializeMetadata(output),
|
|
1672
|
-
};
|
|
1673
|
-
break;
|
|
1121
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1674
1122
|
case "UnsupportedOperationException":
|
|
1675
1123
|
case "com.amazonaws.kinesisanalytics#UnsupportedOperationException":
|
|
1676
|
-
|
|
1677
|
-
...(await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context)),
|
|
1678
|
-
name: errorCode,
|
|
1679
|
-
$metadata: deserializeMetadata(output),
|
|
1680
|
-
};
|
|
1681
|
-
break;
|
|
1124
|
+
throw await deserializeAws_json1_1UnsupportedOperationExceptionResponse(parsedOutput, context);
|
|
1682
1125
|
default:
|
|
1683
1126
|
const parsedBody = parsedOutput.body;
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
...parsedBody,
|
|
1687
|
-
name: `${errorCode}`,
|
|
1688
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1127
|
+
response = new KinesisAnalyticsServiceException_1.KinesisAnalyticsServiceException({
|
|
1128
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1689
1129
|
$fault: "client",
|
|
1690
1130
|
$metadata: deserializeMetadata(output),
|
|
1691
|
-
};
|
|
1131
|
+
});
|
|
1132
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1692
1133
|
}
|
|
1693
|
-
const message = response.message || response.Message || errorCode;
|
|
1694
|
-
response.message = message;
|
|
1695
|
-
delete response.Message;
|
|
1696
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1697
1134
|
};
|
|
1698
1135
|
const deserializeAws_json1_1CodeValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1699
1136
|
const body = parsedOutput.body;
|
|
1700
1137
|
const deserialized = deserializeAws_json1_1CodeValidationException(body, context);
|
|
1701
|
-
const
|
|
1702
|
-
name: "CodeValidationException",
|
|
1703
|
-
$fault: "client",
|
|
1138
|
+
const exception = new models_0_1.CodeValidationException({
|
|
1704
1139
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1705
1140
|
...deserialized,
|
|
1706
|
-
};
|
|
1707
|
-
return
|
|
1141
|
+
});
|
|
1142
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1708
1143
|
};
|
|
1709
1144
|
const deserializeAws_json1_1ConcurrentModificationExceptionResponse = async (parsedOutput, context) => {
|
|
1710
1145
|
const body = parsedOutput.body;
|
|
1711
1146
|
const deserialized = deserializeAws_json1_1ConcurrentModificationException(body, context);
|
|
1712
|
-
const
|
|
1713
|
-
name: "ConcurrentModificationException",
|
|
1714
|
-
$fault: "client",
|
|
1147
|
+
const exception = new models_0_1.ConcurrentModificationException({
|
|
1715
1148
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1716
1149
|
...deserialized,
|
|
1717
|
-
};
|
|
1718
|
-
return
|
|
1150
|
+
});
|
|
1151
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1719
1152
|
};
|
|
1720
1153
|
const deserializeAws_json1_1InvalidApplicationConfigurationExceptionResponse = async (parsedOutput, context) => {
|
|
1721
1154
|
const body = parsedOutput.body;
|
|
1722
1155
|
const deserialized = deserializeAws_json1_1InvalidApplicationConfigurationException(body, context);
|
|
1723
|
-
const
|
|
1724
|
-
name: "InvalidApplicationConfigurationException",
|
|
1725
|
-
$fault: "client",
|
|
1156
|
+
const exception = new models_0_1.InvalidApplicationConfigurationException({
|
|
1726
1157
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1727
1158
|
...deserialized,
|
|
1728
|
-
};
|
|
1729
|
-
return
|
|
1159
|
+
});
|
|
1160
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1730
1161
|
};
|
|
1731
1162
|
const deserializeAws_json1_1InvalidArgumentExceptionResponse = async (parsedOutput, context) => {
|
|
1732
1163
|
const body = parsedOutput.body;
|
|
1733
1164
|
const deserialized = deserializeAws_json1_1InvalidArgumentException(body, context);
|
|
1734
|
-
const
|
|
1735
|
-
name: "InvalidArgumentException",
|
|
1736
|
-
$fault: "client",
|
|
1165
|
+
const exception = new models_0_1.InvalidArgumentException({
|
|
1737
1166
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1738
1167
|
...deserialized,
|
|
1739
|
-
};
|
|
1740
|
-
return
|
|
1168
|
+
});
|
|
1169
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1741
1170
|
};
|
|
1742
1171
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1743
1172
|
const body = parsedOutput.body;
|
|
1744
1173
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
1745
|
-
const
|
|
1746
|
-
name: "LimitExceededException",
|
|
1747
|
-
$fault: "client",
|
|
1174
|
+
const exception = new models_0_1.LimitExceededException({
|
|
1748
1175
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1749
1176
|
...deserialized,
|
|
1750
|
-
};
|
|
1751
|
-
return
|
|
1177
|
+
});
|
|
1178
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1752
1179
|
};
|
|
1753
1180
|
const deserializeAws_json1_1ResourceInUseExceptionResponse = async (parsedOutput, context) => {
|
|
1754
1181
|
const body = parsedOutput.body;
|
|
1755
1182
|
const deserialized = deserializeAws_json1_1ResourceInUseException(body, context);
|
|
1756
|
-
const
|
|
1757
|
-
name: "ResourceInUseException",
|
|
1758
|
-
$fault: "client",
|
|
1183
|
+
const exception = new models_0_1.ResourceInUseException({
|
|
1759
1184
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1760
1185
|
...deserialized,
|
|
1761
|
-
};
|
|
1762
|
-
return
|
|
1186
|
+
});
|
|
1187
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1763
1188
|
};
|
|
1764
1189
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1765
1190
|
const body = parsedOutput.body;
|
|
1766
1191
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1767
|
-
const
|
|
1768
|
-
name: "ResourceNotFoundException",
|
|
1769
|
-
$fault: "client",
|
|
1192
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
1770
1193
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1771
1194
|
...deserialized,
|
|
1772
|
-
};
|
|
1773
|
-
return
|
|
1195
|
+
});
|
|
1196
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1774
1197
|
};
|
|
1775
1198
|
const deserializeAws_json1_1ResourceProvisionedThroughputExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1776
1199
|
const body = parsedOutput.body;
|
|
1777
1200
|
const deserialized = deserializeAws_json1_1ResourceProvisionedThroughputExceededException(body, context);
|
|
1778
|
-
const
|
|
1779
|
-
name: "ResourceProvisionedThroughputExceededException",
|
|
1780
|
-
$fault: "client",
|
|
1201
|
+
const exception = new models_0_1.ResourceProvisionedThroughputExceededException({
|
|
1781
1202
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1782
1203
|
...deserialized,
|
|
1783
|
-
};
|
|
1784
|
-
return
|
|
1204
|
+
});
|
|
1205
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1785
1206
|
};
|
|
1786
1207
|
const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
1787
1208
|
const body = parsedOutput.body;
|
|
1788
1209
|
const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
1789
|
-
const
|
|
1790
|
-
name: "ServiceUnavailableException",
|
|
1791
|
-
$fault: "server",
|
|
1210
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
1792
1211
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1793
1212
|
...deserialized,
|
|
1794
|
-
};
|
|
1795
|
-
return
|
|
1213
|
+
});
|
|
1214
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1796
1215
|
};
|
|
1797
1216
|
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
1798
1217
|
const body = parsedOutput.body;
|
|
1799
1218
|
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
1800
|
-
const
|
|
1801
|
-
name: "TooManyTagsException",
|
|
1802
|
-
$fault: "client",
|
|
1219
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
1803
1220
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1804
1221
|
...deserialized,
|
|
1805
|
-
};
|
|
1806
|
-
return
|
|
1222
|
+
});
|
|
1223
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1807
1224
|
};
|
|
1808
1225
|
const deserializeAws_json1_1UnableToDetectSchemaExceptionResponse = async (parsedOutput, context) => {
|
|
1809
1226
|
const body = parsedOutput.body;
|
|
1810
1227
|
const deserialized = deserializeAws_json1_1UnableToDetectSchemaException(body, context);
|
|
1811
|
-
const
|
|
1812
|
-
name: "UnableToDetectSchemaException",
|
|
1813
|
-
$fault: "client",
|
|
1228
|
+
const exception = new models_0_1.UnableToDetectSchemaException({
|
|
1814
1229
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1815
1230
|
...deserialized,
|
|
1816
|
-
};
|
|
1817
|
-
return
|
|
1231
|
+
});
|
|
1232
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1818
1233
|
};
|
|
1819
1234
|
const deserializeAws_json1_1UnsupportedOperationExceptionResponse = async (parsedOutput, context) => {
|
|
1820
1235
|
const body = parsedOutput.body;
|
|
1821
1236
|
const deserialized = deserializeAws_json1_1UnsupportedOperationException(body, context);
|
|
1822
|
-
const
|
|
1823
|
-
name: "UnsupportedOperationException",
|
|
1824
|
-
$fault: "client",
|
|
1237
|
+
const exception = new models_0_1.UnsupportedOperationException({
|
|
1825
1238
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1826
1239
|
...deserialized,
|
|
1827
|
-
};
|
|
1828
|
-
return
|
|
1240
|
+
});
|
|
1241
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1829
1242
|
};
|
|
1830
1243
|
const serializeAws_json1_1AddApplicationCloudWatchLoggingOptionRequest = (input, context) => {
|
|
1831
1244
|
return {
|
|
@@ -2558,7 +1971,7 @@ const deserializeAws_json1_1ApplicationDetail = (output, context) => {
|
|
|
2558
1971
|
};
|
|
2559
1972
|
};
|
|
2560
1973
|
const deserializeAws_json1_1ApplicationSummaries = (output, context) => {
|
|
2561
|
-
|
|
1974
|
+
const retVal = (output || [])
|
|
2562
1975
|
.filter((e) => e != null)
|
|
2563
1976
|
.map((entry) => {
|
|
2564
1977
|
if (entry === null) {
|
|
@@ -2566,6 +1979,7 @@ const deserializeAws_json1_1ApplicationSummaries = (output, context) => {
|
|
|
2566
1979
|
}
|
|
2567
1980
|
return deserializeAws_json1_1ApplicationSummary(entry, context);
|
|
2568
1981
|
});
|
|
1982
|
+
return retVal;
|
|
2569
1983
|
};
|
|
2570
1984
|
const deserializeAws_json1_1ApplicationSummary = (output, context) => {
|
|
2571
1985
|
return {
|
|
@@ -2582,7 +1996,7 @@ const deserializeAws_json1_1CloudWatchLoggingOptionDescription = (output, contex
|
|
|
2582
1996
|
};
|
|
2583
1997
|
};
|
|
2584
1998
|
const deserializeAws_json1_1CloudWatchLoggingOptionDescriptions = (output, context) => {
|
|
2585
|
-
|
|
1999
|
+
const retVal = (output || [])
|
|
2586
2000
|
.filter((e) => e != null)
|
|
2587
2001
|
.map((entry) => {
|
|
2588
2002
|
if (entry === null) {
|
|
@@ -2590,6 +2004,7 @@ const deserializeAws_json1_1CloudWatchLoggingOptionDescriptions = (output, conte
|
|
|
2590
2004
|
}
|
|
2591
2005
|
return deserializeAws_json1_1CloudWatchLoggingOptionDescription(entry, context);
|
|
2592
2006
|
});
|
|
2007
|
+
return retVal;
|
|
2593
2008
|
};
|
|
2594
2009
|
const deserializeAws_json1_1CodeValidationException = (output, context) => {
|
|
2595
2010
|
return {
|
|
@@ -2658,7 +2073,7 @@ const deserializeAws_json1_1DiscoverInputSchemaResponse = (output, context) => {
|
|
|
2658
2073
|
};
|
|
2659
2074
|
};
|
|
2660
2075
|
const deserializeAws_json1_1InAppStreamNames = (output, context) => {
|
|
2661
|
-
|
|
2076
|
+
const retVal = (output || [])
|
|
2662
2077
|
.filter((e) => e != null)
|
|
2663
2078
|
.map((entry) => {
|
|
2664
2079
|
if (entry === null) {
|
|
@@ -2666,6 +2081,7 @@ const deserializeAws_json1_1InAppStreamNames = (output, context) => {
|
|
|
2666
2081
|
}
|
|
2667
2082
|
return smithy_client_1.expectString(entry);
|
|
2668
2083
|
});
|
|
2084
|
+
return retVal;
|
|
2669
2085
|
};
|
|
2670
2086
|
const deserializeAws_json1_1InputDescription = (output, context) => {
|
|
2671
2087
|
return {
|
|
@@ -2696,7 +2112,7 @@ const deserializeAws_json1_1InputDescription = (output, context) => {
|
|
|
2696
2112
|
};
|
|
2697
2113
|
};
|
|
2698
2114
|
const deserializeAws_json1_1InputDescriptions = (output, context) => {
|
|
2699
|
-
|
|
2115
|
+
const retVal = (output || [])
|
|
2700
2116
|
.filter((e) => e != null)
|
|
2701
2117
|
.map((entry) => {
|
|
2702
2118
|
if (entry === null) {
|
|
@@ -2704,6 +2120,7 @@ const deserializeAws_json1_1InputDescriptions = (output, context) => {
|
|
|
2704
2120
|
}
|
|
2705
2121
|
return deserializeAws_json1_1InputDescription(entry, context);
|
|
2706
2122
|
});
|
|
2123
|
+
return retVal;
|
|
2707
2124
|
};
|
|
2708
2125
|
const deserializeAws_json1_1InputLambdaProcessorDescription = (output, context) => {
|
|
2709
2126
|
return {
|
|
@@ -2820,7 +2237,7 @@ const deserializeAws_json1_1OutputDescription = (output, context) => {
|
|
|
2820
2237
|
};
|
|
2821
2238
|
};
|
|
2822
2239
|
const deserializeAws_json1_1OutputDescriptions = (output, context) => {
|
|
2823
|
-
|
|
2240
|
+
const retVal = (output || [])
|
|
2824
2241
|
.filter((e) => e != null)
|
|
2825
2242
|
.map((entry) => {
|
|
2826
2243
|
if (entry === null) {
|
|
@@ -2828,9 +2245,10 @@ const deserializeAws_json1_1OutputDescriptions = (output, context) => {
|
|
|
2828
2245
|
}
|
|
2829
2246
|
return deserializeAws_json1_1OutputDescription(entry, context);
|
|
2830
2247
|
});
|
|
2248
|
+
return retVal;
|
|
2831
2249
|
};
|
|
2832
2250
|
const deserializeAws_json1_1ParsedInputRecord = (output, context) => {
|
|
2833
|
-
|
|
2251
|
+
const retVal = (output || [])
|
|
2834
2252
|
.filter((e) => e != null)
|
|
2835
2253
|
.map((entry) => {
|
|
2836
2254
|
if (entry === null) {
|
|
@@ -2838,9 +2256,10 @@ const deserializeAws_json1_1ParsedInputRecord = (output, context) => {
|
|
|
2838
2256
|
}
|
|
2839
2257
|
return smithy_client_1.expectString(entry);
|
|
2840
2258
|
});
|
|
2259
|
+
return retVal;
|
|
2841
2260
|
};
|
|
2842
2261
|
const deserializeAws_json1_1ParsedInputRecords = (output, context) => {
|
|
2843
|
-
|
|
2262
|
+
const retVal = (output || [])
|
|
2844
2263
|
.filter((e) => e != null)
|
|
2845
2264
|
.map((entry) => {
|
|
2846
2265
|
if (entry === null) {
|
|
@@ -2848,9 +2267,10 @@ const deserializeAws_json1_1ParsedInputRecords = (output, context) => {
|
|
|
2848
2267
|
}
|
|
2849
2268
|
return deserializeAws_json1_1ParsedInputRecord(entry, context);
|
|
2850
2269
|
});
|
|
2270
|
+
return retVal;
|
|
2851
2271
|
};
|
|
2852
2272
|
const deserializeAws_json1_1ProcessedInputRecords = (output, context) => {
|
|
2853
|
-
|
|
2273
|
+
const retVal = (output || [])
|
|
2854
2274
|
.filter((e) => e != null)
|
|
2855
2275
|
.map((entry) => {
|
|
2856
2276
|
if (entry === null) {
|
|
@@ -2858,9 +2278,10 @@ const deserializeAws_json1_1ProcessedInputRecords = (output, context) => {
|
|
|
2858
2278
|
}
|
|
2859
2279
|
return smithy_client_1.expectString(entry);
|
|
2860
2280
|
});
|
|
2281
|
+
return retVal;
|
|
2861
2282
|
};
|
|
2862
2283
|
const deserializeAws_json1_1RawInputRecords = (output, context) => {
|
|
2863
|
-
|
|
2284
|
+
const retVal = (output || [])
|
|
2864
2285
|
.filter((e) => e != null)
|
|
2865
2286
|
.map((entry) => {
|
|
2866
2287
|
if (entry === null) {
|
|
@@ -2868,6 +2289,7 @@ const deserializeAws_json1_1RawInputRecords = (output, context) => {
|
|
|
2868
2289
|
}
|
|
2869
2290
|
return smithy_client_1.expectString(entry);
|
|
2870
2291
|
});
|
|
2292
|
+
return retVal;
|
|
2871
2293
|
};
|
|
2872
2294
|
const deserializeAws_json1_1RecordColumn = (output, context) => {
|
|
2873
2295
|
return {
|
|
@@ -2877,7 +2299,7 @@ const deserializeAws_json1_1RecordColumn = (output, context) => {
|
|
|
2877
2299
|
};
|
|
2878
2300
|
};
|
|
2879
2301
|
const deserializeAws_json1_1RecordColumns = (output, context) => {
|
|
2880
|
-
|
|
2302
|
+
const retVal = (output || [])
|
|
2881
2303
|
.filter((e) => e != null)
|
|
2882
2304
|
.map((entry) => {
|
|
2883
2305
|
if (entry === null) {
|
|
@@ -2885,6 +2307,7 @@ const deserializeAws_json1_1RecordColumns = (output, context) => {
|
|
|
2885
2307
|
}
|
|
2886
2308
|
return deserializeAws_json1_1RecordColumn(entry, context);
|
|
2887
2309
|
});
|
|
2310
|
+
return retVal;
|
|
2888
2311
|
};
|
|
2889
2312
|
const deserializeAws_json1_1RecordFormat = (output, context) => {
|
|
2890
2313
|
return {
|
|
@@ -2907,7 +2330,7 @@ const deserializeAws_json1_1ReferenceDataSourceDescription = (output, context) =
|
|
|
2907
2330
|
};
|
|
2908
2331
|
};
|
|
2909
2332
|
const deserializeAws_json1_1ReferenceDataSourceDescriptions = (output, context) => {
|
|
2910
|
-
|
|
2333
|
+
const retVal = (output || [])
|
|
2911
2334
|
.filter((e) => e != null)
|
|
2912
2335
|
.map((entry) => {
|
|
2913
2336
|
if (entry === null) {
|
|
@@ -2915,6 +2338,7 @@ const deserializeAws_json1_1ReferenceDataSourceDescriptions = (output, context)
|
|
|
2915
2338
|
}
|
|
2916
2339
|
return deserializeAws_json1_1ReferenceDataSourceDescription(entry, context);
|
|
2917
2340
|
});
|
|
2341
|
+
return retVal;
|
|
2918
2342
|
};
|
|
2919
2343
|
const deserializeAws_json1_1ResourceInUseException = (output, context) => {
|
|
2920
2344
|
return {
|
|
@@ -2970,7 +2394,7 @@ const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
|
2970
2394
|
return {};
|
|
2971
2395
|
};
|
|
2972
2396
|
const deserializeAws_json1_1Tags = (output, context) => {
|
|
2973
|
-
|
|
2397
|
+
const retVal = (output || [])
|
|
2974
2398
|
.filter((e) => e != null)
|
|
2975
2399
|
.map((entry) => {
|
|
2976
2400
|
if (entry === null) {
|
|
@@ -2978,6 +2402,7 @@ const deserializeAws_json1_1Tags = (output, context) => {
|
|
|
2978
2402
|
}
|
|
2979
2403
|
return deserializeAws_json1_1Tag(entry, context);
|
|
2980
2404
|
});
|
|
2405
|
+
return retVal;
|
|
2981
2406
|
};
|
|
2982
2407
|
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
2983
2408
|
return {
|