@aws-sdk/client-sfn 3.52.0 → 3.54.1
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/SFNServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +318 -2
- package/dist-cjs/protocols/Aws_json1_0.js +252 -800
- package/dist-es/index.js +1 -0
- package/dist-es/models/SFNServiceException.js +12 -0
- package/dist-es/models/models_0.js +292 -1
- package/dist-es/protocols/Aws_json1_0.js +511 -845
- package/dist-types/SFNClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/SFNServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +170 -97
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/ts3.4/SFNClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/SFNServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +122 -97
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
- package/package.json +27 -27
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.deserializeAws_json1_0UpdateStateMachineCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0StopExecutionCommand = exports.deserializeAws_json1_0StartSyncExecutionCommand = exports.deserializeAws_json1_0StartExecutionCommand = exports.deserializeAws_json1_0SendTaskSuccessCommand = exports.deserializeAws_json1_0SendTaskHeartbeatCommand = exports.deserializeAws_json1_0SendTaskFailureCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListStateMachinesCommand = exports.deserializeAws_json1_0ListExecutionsCommand = exports.deserializeAws_json1_0ListActivitiesCommand = exports.deserializeAws_json1_0GetExecutionHistoryCommand = exports.deserializeAws_json1_0GetActivityTaskCommand = exports.deserializeAws_json1_0DescribeStateMachineForExecutionCommand = exports.deserializeAws_json1_0DescribeStateMachineCommand = exports.deserializeAws_json1_0DescribeExecutionCommand = exports.deserializeAws_json1_0DescribeActivityCommand = exports.deserializeAws_json1_0DeleteStateMachineCommand = exports.deserializeAws_json1_0DeleteActivityCommand = exports.deserializeAws_json1_0CreateStateMachineCommand = exports.deserializeAws_json1_0CreateActivityCommand = exports.serializeAws_json1_0UpdateStateMachineCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0StopExecutionCommand = exports.serializeAws_json1_0StartSyncExecutionCommand = exports.serializeAws_json1_0StartExecutionCommand = exports.serializeAws_json1_0SendTaskSuccessCommand = exports.serializeAws_json1_0SendTaskHeartbeatCommand = exports.serializeAws_json1_0SendTaskFailureCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListStateMachinesCommand = exports.serializeAws_json1_0ListExecutionsCommand = exports.serializeAws_json1_0ListActivitiesCommand = exports.serializeAws_json1_0GetExecutionHistoryCommand = exports.serializeAws_json1_0GetActivityTaskCommand = exports.serializeAws_json1_0DescribeStateMachineForExecutionCommand = exports.serializeAws_json1_0DescribeStateMachineCommand = exports.serializeAws_json1_0DescribeExecutionCommand = exports.serializeAws_json1_0DescribeActivityCommand = exports.serializeAws_json1_0DeleteStateMachineCommand = exports.serializeAws_json1_0DeleteActivityCommand = exports.serializeAws_json1_0CreateStateMachineCommand = exports.serializeAws_json1_0CreateActivityCommand = 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 models_0_1 = require("../models/models_0");
|
|
7
|
+
const SFNServiceException_1 = require("../models/SFNServiceException");
|
|
6
8
|
const serializeAws_json1_0CreateActivityCommand = async (input, context) => {
|
|
7
9
|
const headers = {
|
|
8
10
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -265,43 +267,22 @@ const deserializeAws_json1_0CreateActivityCommandError = async (output, context)
|
|
|
265
267
|
switch (errorCode) {
|
|
266
268
|
case "ActivityLimitExceeded":
|
|
267
269
|
case "com.amazonaws.sfn#ActivityLimitExceeded":
|
|
268
|
-
|
|
269
|
-
...(await deserializeAws_json1_0ActivityLimitExceededResponse(parsedOutput, context)),
|
|
270
|
-
name: errorCode,
|
|
271
|
-
$metadata: deserializeMetadata(output),
|
|
272
|
-
};
|
|
273
|
-
break;
|
|
270
|
+
throw await deserializeAws_json1_0ActivityLimitExceededResponse(parsedOutput, context);
|
|
274
271
|
case "InvalidName":
|
|
275
272
|
case "com.amazonaws.sfn#InvalidName":
|
|
276
|
-
|
|
277
|
-
...(await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)),
|
|
278
|
-
name: errorCode,
|
|
279
|
-
$metadata: deserializeMetadata(output),
|
|
280
|
-
};
|
|
281
|
-
break;
|
|
273
|
+
throw await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context);
|
|
282
274
|
case "TooManyTags":
|
|
283
275
|
case "com.amazonaws.sfn#TooManyTags":
|
|
284
|
-
|
|
285
|
-
...(await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)),
|
|
286
|
-
name: errorCode,
|
|
287
|
-
$metadata: deserializeMetadata(output),
|
|
288
|
-
};
|
|
289
|
-
break;
|
|
276
|
+
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
290
277
|
default:
|
|
291
278
|
const parsedBody = parsedOutput.body;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
...parsedBody,
|
|
295
|
-
name: `${errorCode}`,
|
|
296
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
279
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
280
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
297
281
|
$fault: "client",
|
|
298
282
|
$metadata: deserializeMetadata(output),
|
|
299
|
-
};
|
|
283
|
+
});
|
|
284
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
300
285
|
}
|
|
301
|
-
const message = response.message || response.Message || errorCode;
|
|
302
|
-
response.message = message;
|
|
303
|
-
delete response.Message;
|
|
304
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
305
286
|
};
|
|
306
287
|
const deserializeAws_json1_0CreateStateMachineCommand = async (output, context) => {
|
|
307
288
|
if (output.statusCode >= 300) {
|
|
@@ -328,99 +309,43 @@ const deserializeAws_json1_0CreateStateMachineCommandError = async (output, cont
|
|
|
328
309
|
switch (errorCode) {
|
|
329
310
|
case "InvalidArn":
|
|
330
311
|
case "com.amazonaws.sfn#InvalidArn":
|
|
331
|
-
|
|
332
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
333
|
-
name: errorCode,
|
|
334
|
-
$metadata: deserializeMetadata(output),
|
|
335
|
-
};
|
|
336
|
-
break;
|
|
312
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
337
313
|
case "InvalidDefinition":
|
|
338
314
|
case "com.amazonaws.sfn#InvalidDefinition":
|
|
339
|
-
|
|
340
|
-
...(await deserializeAws_json1_0InvalidDefinitionResponse(parsedOutput, context)),
|
|
341
|
-
name: errorCode,
|
|
342
|
-
$metadata: deserializeMetadata(output),
|
|
343
|
-
};
|
|
344
|
-
break;
|
|
315
|
+
throw await deserializeAws_json1_0InvalidDefinitionResponse(parsedOutput, context);
|
|
345
316
|
case "InvalidLoggingConfiguration":
|
|
346
317
|
case "com.amazonaws.sfn#InvalidLoggingConfiguration":
|
|
347
|
-
|
|
348
|
-
...(await deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context)),
|
|
349
|
-
name: errorCode,
|
|
350
|
-
$metadata: deserializeMetadata(output),
|
|
351
|
-
};
|
|
352
|
-
break;
|
|
318
|
+
throw await deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context);
|
|
353
319
|
case "InvalidName":
|
|
354
320
|
case "com.amazonaws.sfn#InvalidName":
|
|
355
|
-
|
|
356
|
-
...(await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)),
|
|
357
|
-
name: errorCode,
|
|
358
|
-
$metadata: deserializeMetadata(output),
|
|
359
|
-
};
|
|
360
|
-
break;
|
|
321
|
+
throw await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context);
|
|
361
322
|
case "InvalidTracingConfiguration":
|
|
362
323
|
case "com.amazonaws.sfn#InvalidTracingConfiguration":
|
|
363
|
-
|
|
364
|
-
...(await deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context)),
|
|
365
|
-
name: errorCode,
|
|
366
|
-
$metadata: deserializeMetadata(output),
|
|
367
|
-
};
|
|
368
|
-
break;
|
|
324
|
+
throw await deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context);
|
|
369
325
|
case "StateMachineAlreadyExists":
|
|
370
326
|
case "com.amazonaws.sfn#StateMachineAlreadyExists":
|
|
371
|
-
|
|
372
|
-
...(await deserializeAws_json1_0StateMachineAlreadyExistsResponse(parsedOutput, context)),
|
|
373
|
-
name: errorCode,
|
|
374
|
-
$metadata: deserializeMetadata(output),
|
|
375
|
-
};
|
|
376
|
-
break;
|
|
327
|
+
throw await deserializeAws_json1_0StateMachineAlreadyExistsResponse(parsedOutput, context);
|
|
377
328
|
case "StateMachineDeleting":
|
|
378
329
|
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
379
|
-
|
|
380
|
-
...(await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)),
|
|
381
|
-
name: errorCode,
|
|
382
|
-
$metadata: deserializeMetadata(output),
|
|
383
|
-
};
|
|
384
|
-
break;
|
|
330
|
+
throw await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context);
|
|
385
331
|
case "StateMachineLimitExceeded":
|
|
386
332
|
case "com.amazonaws.sfn#StateMachineLimitExceeded":
|
|
387
|
-
|
|
388
|
-
...(await deserializeAws_json1_0StateMachineLimitExceededResponse(parsedOutput, context)),
|
|
389
|
-
name: errorCode,
|
|
390
|
-
$metadata: deserializeMetadata(output),
|
|
391
|
-
};
|
|
392
|
-
break;
|
|
333
|
+
throw await deserializeAws_json1_0StateMachineLimitExceededResponse(parsedOutput, context);
|
|
393
334
|
case "StateMachineTypeNotSupported":
|
|
394
335
|
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
395
|
-
|
|
396
|
-
...(await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)),
|
|
397
|
-
name: errorCode,
|
|
398
|
-
$metadata: deserializeMetadata(output),
|
|
399
|
-
};
|
|
400
|
-
break;
|
|
336
|
+
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
401
337
|
case "TooManyTags":
|
|
402
338
|
case "com.amazonaws.sfn#TooManyTags":
|
|
403
|
-
|
|
404
|
-
...(await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)),
|
|
405
|
-
name: errorCode,
|
|
406
|
-
$metadata: deserializeMetadata(output),
|
|
407
|
-
};
|
|
408
|
-
break;
|
|
339
|
+
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
409
340
|
default:
|
|
410
341
|
const parsedBody = parsedOutput.body;
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
...parsedBody,
|
|
414
|
-
name: `${errorCode}`,
|
|
415
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
342
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
343
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
416
344
|
$fault: "client",
|
|
417
345
|
$metadata: deserializeMetadata(output),
|
|
418
|
-
};
|
|
346
|
+
});
|
|
347
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
419
348
|
}
|
|
420
|
-
const message = response.message || response.Message || errorCode;
|
|
421
|
-
response.message = message;
|
|
422
|
-
delete response.Message;
|
|
423
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
424
349
|
};
|
|
425
350
|
const deserializeAws_json1_0DeleteActivityCommand = async (output, context) => {
|
|
426
351
|
if (output.statusCode >= 300) {
|
|
@@ -447,27 +372,16 @@ const deserializeAws_json1_0DeleteActivityCommandError = async (output, context)
|
|
|
447
372
|
switch (errorCode) {
|
|
448
373
|
case "InvalidArn":
|
|
449
374
|
case "com.amazonaws.sfn#InvalidArn":
|
|
450
|
-
|
|
451
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
452
|
-
name: errorCode,
|
|
453
|
-
$metadata: deserializeMetadata(output),
|
|
454
|
-
};
|
|
455
|
-
break;
|
|
375
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
456
376
|
default:
|
|
457
377
|
const parsedBody = parsedOutput.body;
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
...parsedBody,
|
|
461
|
-
name: `${errorCode}`,
|
|
462
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
378
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
379
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
463
380
|
$fault: "client",
|
|
464
381
|
$metadata: deserializeMetadata(output),
|
|
465
|
-
};
|
|
382
|
+
});
|
|
383
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
466
384
|
}
|
|
467
|
-
const message = response.message || response.Message || errorCode;
|
|
468
|
-
response.message = message;
|
|
469
|
-
delete response.Message;
|
|
470
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
471
385
|
};
|
|
472
386
|
const deserializeAws_json1_0DeleteStateMachineCommand = async (output, context) => {
|
|
473
387
|
if (output.statusCode >= 300) {
|
|
@@ -494,27 +408,16 @@ const deserializeAws_json1_0DeleteStateMachineCommandError = async (output, cont
|
|
|
494
408
|
switch (errorCode) {
|
|
495
409
|
case "InvalidArn":
|
|
496
410
|
case "com.amazonaws.sfn#InvalidArn":
|
|
497
|
-
|
|
498
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
499
|
-
name: errorCode,
|
|
500
|
-
$metadata: deserializeMetadata(output),
|
|
501
|
-
};
|
|
502
|
-
break;
|
|
411
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
503
412
|
default:
|
|
504
413
|
const parsedBody = parsedOutput.body;
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
...parsedBody,
|
|
508
|
-
name: `${errorCode}`,
|
|
509
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
414
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
415
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
510
416
|
$fault: "client",
|
|
511
417
|
$metadata: deserializeMetadata(output),
|
|
512
|
-
};
|
|
418
|
+
});
|
|
419
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
513
420
|
}
|
|
514
|
-
const message = response.message || response.Message || errorCode;
|
|
515
|
-
response.message = message;
|
|
516
|
-
delete response.Message;
|
|
517
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
518
421
|
};
|
|
519
422
|
const deserializeAws_json1_0DescribeActivityCommand = async (output, context) => {
|
|
520
423
|
if (output.statusCode >= 300) {
|
|
@@ -541,35 +444,19 @@ const deserializeAws_json1_0DescribeActivityCommandError = async (output, contex
|
|
|
541
444
|
switch (errorCode) {
|
|
542
445
|
case "ActivityDoesNotExist":
|
|
543
446
|
case "com.amazonaws.sfn#ActivityDoesNotExist":
|
|
544
|
-
|
|
545
|
-
...(await deserializeAws_json1_0ActivityDoesNotExistResponse(parsedOutput, context)),
|
|
546
|
-
name: errorCode,
|
|
547
|
-
$metadata: deserializeMetadata(output),
|
|
548
|
-
};
|
|
549
|
-
break;
|
|
447
|
+
throw await deserializeAws_json1_0ActivityDoesNotExistResponse(parsedOutput, context);
|
|
550
448
|
case "InvalidArn":
|
|
551
449
|
case "com.amazonaws.sfn#InvalidArn":
|
|
552
|
-
|
|
553
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
554
|
-
name: errorCode,
|
|
555
|
-
$metadata: deserializeMetadata(output),
|
|
556
|
-
};
|
|
557
|
-
break;
|
|
450
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
558
451
|
default:
|
|
559
452
|
const parsedBody = parsedOutput.body;
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
...parsedBody,
|
|
563
|
-
name: `${errorCode}`,
|
|
564
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
453
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
454
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
565
455
|
$fault: "client",
|
|
566
456
|
$metadata: deserializeMetadata(output),
|
|
567
|
-
};
|
|
457
|
+
});
|
|
458
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
568
459
|
}
|
|
569
|
-
const message = response.message || response.Message || errorCode;
|
|
570
|
-
response.message = message;
|
|
571
|
-
delete response.Message;
|
|
572
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
573
460
|
};
|
|
574
461
|
const deserializeAws_json1_0DescribeExecutionCommand = async (output, context) => {
|
|
575
462
|
if (output.statusCode >= 300) {
|
|
@@ -596,35 +483,19 @@ const deserializeAws_json1_0DescribeExecutionCommandError = async (output, conte
|
|
|
596
483
|
switch (errorCode) {
|
|
597
484
|
case "ExecutionDoesNotExist":
|
|
598
485
|
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
599
|
-
|
|
600
|
-
...(await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)),
|
|
601
|
-
name: errorCode,
|
|
602
|
-
$metadata: deserializeMetadata(output),
|
|
603
|
-
};
|
|
604
|
-
break;
|
|
486
|
+
throw await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context);
|
|
605
487
|
case "InvalidArn":
|
|
606
488
|
case "com.amazonaws.sfn#InvalidArn":
|
|
607
|
-
|
|
608
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
609
|
-
name: errorCode,
|
|
610
|
-
$metadata: deserializeMetadata(output),
|
|
611
|
-
};
|
|
612
|
-
break;
|
|
489
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
613
490
|
default:
|
|
614
491
|
const parsedBody = parsedOutput.body;
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
...parsedBody,
|
|
618
|
-
name: `${errorCode}`,
|
|
619
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
492
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
493
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
620
494
|
$fault: "client",
|
|
621
495
|
$metadata: deserializeMetadata(output),
|
|
622
|
-
};
|
|
496
|
+
});
|
|
497
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
623
498
|
}
|
|
624
|
-
const message = response.message || response.Message || errorCode;
|
|
625
|
-
response.message = message;
|
|
626
|
-
delete response.Message;
|
|
627
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
628
499
|
};
|
|
629
500
|
const deserializeAws_json1_0DescribeStateMachineCommand = async (output, context) => {
|
|
630
501
|
if (output.statusCode >= 300) {
|
|
@@ -651,35 +522,19 @@ const deserializeAws_json1_0DescribeStateMachineCommandError = async (output, co
|
|
|
651
522
|
switch (errorCode) {
|
|
652
523
|
case "InvalidArn":
|
|
653
524
|
case "com.amazonaws.sfn#InvalidArn":
|
|
654
|
-
|
|
655
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
656
|
-
name: errorCode,
|
|
657
|
-
$metadata: deserializeMetadata(output),
|
|
658
|
-
};
|
|
659
|
-
break;
|
|
525
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
660
526
|
case "StateMachineDoesNotExist":
|
|
661
527
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
662
|
-
|
|
663
|
-
...(await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)),
|
|
664
|
-
name: errorCode,
|
|
665
|
-
$metadata: deserializeMetadata(output),
|
|
666
|
-
};
|
|
667
|
-
break;
|
|
528
|
+
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
668
529
|
default:
|
|
669
530
|
const parsedBody = parsedOutput.body;
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
...parsedBody,
|
|
673
|
-
name: `${errorCode}`,
|
|
674
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
531
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
532
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
675
533
|
$fault: "client",
|
|
676
534
|
$metadata: deserializeMetadata(output),
|
|
677
|
-
};
|
|
535
|
+
});
|
|
536
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
678
537
|
}
|
|
679
|
-
const message = response.message || response.Message || errorCode;
|
|
680
|
-
response.message = message;
|
|
681
|
-
delete response.Message;
|
|
682
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
683
538
|
};
|
|
684
539
|
const deserializeAws_json1_0DescribeStateMachineForExecutionCommand = async (output, context) => {
|
|
685
540
|
if (output.statusCode >= 300) {
|
|
@@ -706,35 +561,19 @@ const deserializeAws_json1_0DescribeStateMachineForExecutionCommandError = async
|
|
|
706
561
|
switch (errorCode) {
|
|
707
562
|
case "ExecutionDoesNotExist":
|
|
708
563
|
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
709
|
-
|
|
710
|
-
...(await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)),
|
|
711
|
-
name: errorCode,
|
|
712
|
-
$metadata: deserializeMetadata(output),
|
|
713
|
-
};
|
|
714
|
-
break;
|
|
564
|
+
throw await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context);
|
|
715
565
|
case "InvalidArn":
|
|
716
566
|
case "com.amazonaws.sfn#InvalidArn":
|
|
717
|
-
|
|
718
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
719
|
-
name: errorCode,
|
|
720
|
-
$metadata: deserializeMetadata(output),
|
|
721
|
-
};
|
|
722
|
-
break;
|
|
567
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
723
568
|
default:
|
|
724
569
|
const parsedBody = parsedOutput.body;
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
...parsedBody,
|
|
728
|
-
name: `${errorCode}`,
|
|
729
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
570
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
571
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
730
572
|
$fault: "client",
|
|
731
573
|
$metadata: deserializeMetadata(output),
|
|
732
|
-
};
|
|
574
|
+
});
|
|
575
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
733
576
|
}
|
|
734
|
-
const message = response.message || response.Message || errorCode;
|
|
735
|
-
response.message = message;
|
|
736
|
-
delete response.Message;
|
|
737
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
738
577
|
};
|
|
739
578
|
const deserializeAws_json1_0GetActivityTaskCommand = async (output, context) => {
|
|
740
579
|
if (output.statusCode >= 300) {
|
|
@@ -761,43 +600,22 @@ const deserializeAws_json1_0GetActivityTaskCommandError = async (output, context
|
|
|
761
600
|
switch (errorCode) {
|
|
762
601
|
case "ActivityDoesNotExist":
|
|
763
602
|
case "com.amazonaws.sfn#ActivityDoesNotExist":
|
|
764
|
-
|
|
765
|
-
...(await deserializeAws_json1_0ActivityDoesNotExistResponse(parsedOutput, context)),
|
|
766
|
-
name: errorCode,
|
|
767
|
-
$metadata: deserializeMetadata(output),
|
|
768
|
-
};
|
|
769
|
-
break;
|
|
603
|
+
throw await deserializeAws_json1_0ActivityDoesNotExistResponse(parsedOutput, context);
|
|
770
604
|
case "ActivityWorkerLimitExceeded":
|
|
771
605
|
case "com.amazonaws.sfn#ActivityWorkerLimitExceeded":
|
|
772
|
-
|
|
773
|
-
...(await deserializeAws_json1_0ActivityWorkerLimitExceededResponse(parsedOutput, context)),
|
|
774
|
-
name: errorCode,
|
|
775
|
-
$metadata: deserializeMetadata(output),
|
|
776
|
-
};
|
|
777
|
-
break;
|
|
606
|
+
throw await deserializeAws_json1_0ActivityWorkerLimitExceededResponse(parsedOutput, context);
|
|
778
607
|
case "InvalidArn":
|
|
779
608
|
case "com.amazonaws.sfn#InvalidArn":
|
|
780
|
-
|
|
781
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
782
|
-
name: errorCode,
|
|
783
|
-
$metadata: deserializeMetadata(output),
|
|
784
|
-
};
|
|
785
|
-
break;
|
|
609
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
786
610
|
default:
|
|
787
611
|
const parsedBody = parsedOutput.body;
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
...parsedBody,
|
|
791
|
-
name: `${errorCode}`,
|
|
792
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
612
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
613
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
793
614
|
$fault: "client",
|
|
794
615
|
$metadata: deserializeMetadata(output),
|
|
795
|
-
};
|
|
616
|
+
});
|
|
617
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
796
618
|
}
|
|
797
|
-
const message = response.message || response.Message || errorCode;
|
|
798
|
-
response.message = message;
|
|
799
|
-
delete response.Message;
|
|
800
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
801
619
|
};
|
|
802
620
|
const deserializeAws_json1_0GetExecutionHistoryCommand = async (output, context) => {
|
|
803
621
|
if (output.statusCode >= 300) {
|
|
@@ -824,43 +642,22 @@ const deserializeAws_json1_0GetExecutionHistoryCommandError = async (output, con
|
|
|
824
642
|
switch (errorCode) {
|
|
825
643
|
case "ExecutionDoesNotExist":
|
|
826
644
|
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
827
|
-
|
|
828
|
-
...(await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)),
|
|
829
|
-
name: errorCode,
|
|
830
|
-
$metadata: deserializeMetadata(output),
|
|
831
|
-
};
|
|
832
|
-
break;
|
|
645
|
+
throw await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context);
|
|
833
646
|
case "InvalidArn":
|
|
834
647
|
case "com.amazonaws.sfn#InvalidArn":
|
|
835
|
-
|
|
836
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
837
|
-
name: errorCode,
|
|
838
|
-
$metadata: deserializeMetadata(output),
|
|
839
|
-
};
|
|
840
|
-
break;
|
|
648
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
841
649
|
case "InvalidToken":
|
|
842
650
|
case "com.amazonaws.sfn#InvalidToken":
|
|
843
|
-
|
|
844
|
-
...(await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)),
|
|
845
|
-
name: errorCode,
|
|
846
|
-
$metadata: deserializeMetadata(output),
|
|
847
|
-
};
|
|
848
|
-
break;
|
|
651
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
849
652
|
default:
|
|
850
653
|
const parsedBody = parsedOutput.body;
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
...parsedBody,
|
|
854
|
-
name: `${errorCode}`,
|
|
855
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
654
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
655
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
856
656
|
$fault: "client",
|
|
857
657
|
$metadata: deserializeMetadata(output),
|
|
858
|
-
};
|
|
658
|
+
});
|
|
659
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
859
660
|
}
|
|
860
|
-
const message = response.message || response.Message || errorCode;
|
|
861
|
-
response.message = message;
|
|
862
|
-
delete response.Message;
|
|
863
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
864
661
|
};
|
|
865
662
|
const deserializeAws_json1_0ListActivitiesCommand = async (output, context) => {
|
|
866
663
|
if (output.statusCode >= 300) {
|
|
@@ -887,27 +684,16 @@ const deserializeAws_json1_0ListActivitiesCommandError = async (output, context)
|
|
|
887
684
|
switch (errorCode) {
|
|
888
685
|
case "InvalidToken":
|
|
889
686
|
case "com.amazonaws.sfn#InvalidToken":
|
|
890
|
-
|
|
891
|
-
...(await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)),
|
|
892
|
-
name: errorCode,
|
|
893
|
-
$metadata: deserializeMetadata(output),
|
|
894
|
-
};
|
|
895
|
-
break;
|
|
687
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
896
688
|
default:
|
|
897
689
|
const parsedBody = parsedOutput.body;
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
...parsedBody,
|
|
901
|
-
name: `${errorCode}`,
|
|
902
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
690
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
691
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
903
692
|
$fault: "client",
|
|
904
693
|
$metadata: deserializeMetadata(output),
|
|
905
|
-
};
|
|
694
|
+
});
|
|
695
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
906
696
|
}
|
|
907
|
-
const message = response.message || response.Message || errorCode;
|
|
908
|
-
response.message = message;
|
|
909
|
-
delete response.Message;
|
|
910
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
911
697
|
};
|
|
912
698
|
const deserializeAws_json1_0ListExecutionsCommand = async (output, context) => {
|
|
913
699
|
if (output.statusCode >= 300) {
|
|
@@ -934,51 +720,25 @@ const deserializeAws_json1_0ListExecutionsCommandError = async (output, context)
|
|
|
934
720
|
switch (errorCode) {
|
|
935
721
|
case "InvalidArn":
|
|
936
722
|
case "com.amazonaws.sfn#InvalidArn":
|
|
937
|
-
|
|
938
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
939
|
-
name: errorCode,
|
|
940
|
-
$metadata: deserializeMetadata(output),
|
|
941
|
-
};
|
|
942
|
-
break;
|
|
723
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
943
724
|
case "InvalidToken":
|
|
944
725
|
case "com.amazonaws.sfn#InvalidToken":
|
|
945
|
-
|
|
946
|
-
...(await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)),
|
|
947
|
-
name: errorCode,
|
|
948
|
-
$metadata: deserializeMetadata(output),
|
|
949
|
-
};
|
|
950
|
-
break;
|
|
726
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
951
727
|
case "StateMachineDoesNotExist":
|
|
952
728
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
953
|
-
|
|
954
|
-
...(await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)),
|
|
955
|
-
name: errorCode,
|
|
956
|
-
$metadata: deserializeMetadata(output),
|
|
957
|
-
};
|
|
958
|
-
break;
|
|
729
|
+
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
959
730
|
case "StateMachineTypeNotSupported":
|
|
960
731
|
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
961
|
-
|
|
962
|
-
...(await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)),
|
|
963
|
-
name: errorCode,
|
|
964
|
-
$metadata: deserializeMetadata(output),
|
|
965
|
-
};
|
|
966
|
-
break;
|
|
732
|
+
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
967
733
|
default:
|
|
968
734
|
const parsedBody = parsedOutput.body;
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
...parsedBody,
|
|
972
|
-
name: `${errorCode}`,
|
|
973
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
735
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
736
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
974
737
|
$fault: "client",
|
|
975
738
|
$metadata: deserializeMetadata(output),
|
|
976
|
-
};
|
|
739
|
+
});
|
|
740
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
977
741
|
}
|
|
978
|
-
const message = response.message || response.Message || errorCode;
|
|
979
|
-
response.message = message;
|
|
980
|
-
delete response.Message;
|
|
981
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
982
742
|
};
|
|
983
743
|
const deserializeAws_json1_0ListStateMachinesCommand = async (output, context) => {
|
|
984
744
|
if (output.statusCode >= 300) {
|
|
@@ -1005,27 +765,16 @@ const deserializeAws_json1_0ListStateMachinesCommandError = async (output, conte
|
|
|
1005
765
|
switch (errorCode) {
|
|
1006
766
|
case "InvalidToken":
|
|
1007
767
|
case "com.amazonaws.sfn#InvalidToken":
|
|
1008
|
-
|
|
1009
|
-
...(await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)),
|
|
1010
|
-
name: errorCode,
|
|
1011
|
-
$metadata: deserializeMetadata(output),
|
|
1012
|
-
};
|
|
1013
|
-
break;
|
|
768
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
1014
769
|
default:
|
|
1015
770
|
const parsedBody = parsedOutput.body;
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
...parsedBody,
|
|
1019
|
-
name: `${errorCode}`,
|
|
1020
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
771
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
772
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1021
773
|
$fault: "client",
|
|
1022
774
|
$metadata: deserializeMetadata(output),
|
|
1023
|
-
};
|
|
775
|
+
});
|
|
776
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1024
777
|
}
|
|
1025
|
-
const message = response.message || response.Message || errorCode;
|
|
1026
|
-
response.message = message;
|
|
1027
|
-
delete response.Message;
|
|
1028
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1029
778
|
};
|
|
1030
779
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
1031
780
|
if (output.statusCode >= 300) {
|
|
@@ -1052,35 +801,19 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
1052
801
|
switch (errorCode) {
|
|
1053
802
|
case "InvalidArn":
|
|
1054
803
|
case "com.amazonaws.sfn#InvalidArn":
|
|
1055
|
-
|
|
1056
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
1057
|
-
name: errorCode,
|
|
1058
|
-
$metadata: deserializeMetadata(output),
|
|
1059
|
-
};
|
|
1060
|
-
break;
|
|
804
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1061
805
|
case "ResourceNotFound":
|
|
1062
806
|
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1063
|
-
|
|
1064
|
-
...(await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)),
|
|
1065
|
-
name: errorCode,
|
|
1066
|
-
$metadata: deserializeMetadata(output),
|
|
1067
|
-
};
|
|
1068
|
-
break;
|
|
807
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
1069
808
|
default:
|
|
1070
809
|
const parsedBody = parsedOutput.body;
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
...parsedBody,
|
|
1074
|
-
name: `${errorCode}`,
|
|
1075
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
810
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
811
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1076
812
|
$fault: "client",
|
|
1077
813
|
$metadata: deserializeMetadata(output),
|
|
1078
|
-
};
|
|
814
|
+
});
|
|
815
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1079
816
|
}
|
|
1080
|
-
const message = response.message || response.Message || errorCode;
|
|
1081
|
-
response.message = message;
|
|
1082
|
-
delete response.Message;
|
|
1083
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1084
817
|
};
|
|
1085
818
|
const deserializeAws_json1_0SendTaskFailureCommand = async (output, context) => {
|
|
1086
819
|
if (output.statusCode >= 300) {
|
|
@@ -1107,43 +840,22 @@ const deserializeAws_json1_0SendTaskFailureCommandError = async (output, context
|
|
|
1107
840
|
switch (errorCode) {
|
|
1108
841
|
case "InvalidToken":
|
|
1109
842
|
case "com.amazonaws.sfn#InvalidToken":
|
|
1110
|
-
|
|
1111
|
-
...(await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)),
|
|
1112
|
-
name: errorCode,
|
|
1113
|
-
$metadata: deserializeMetadata(output),
|
|
1114
|
-
};
|
|
1115
|
-
break;
|
|
843
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
1116
844
|
case "TaskDoesNotExist":
|
|
1117
845
|
case "com.amazonaws.sfn#TaskDoesNotExist":
|
|
1118
|
-
|
|
1119
|
-
...(await deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)),
|
|
1120
|
-
name: errorCode,
|
|
1121
|
-
$metadata: deserializeMetadata(output),
|
|
1122
|
-
};
|
|
1123
|
-
break;
|
|
846
|
+
throw await deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context);
|
|
1124
847
|
case "TaskTimedOut":
|
|
1125
848
|
case "com.amazonaws.sfn#TaskTimedOut":
|
|
1126
|
-
|
|
1127
|
-
...(await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)),
|
|
1128
|
-
name: errorCode,
|
|
1129
|
-
$metadata: deserializeMetadata(output),
|
|
1130
|
-
};
|
|
1131
|
-
break;
|
|
849
|
+
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
1132
850
|
default:
|
|
1133
851
|
const parsedBody = parsedOutput.body;
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
...parsedBody,
|
|
1137
|
-
name: `${errorCode}`,
|
|
1138
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
852
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
853
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1139
854
|
$fault: "client",
|
|
1140
855
|
$metadata: deserializeMetadata(output),
|
|
1141
|
-
};
|
|
856
|
+
});
|
|
857
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1142
858
|
}
|
|
1143
|
-
const message = response.message || response.Message || errorCode;
|
|
1144
|
-
response.message = message;
|
|
1145
|
-
delete response.Message;
|
|
1146
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1147
859
|
};
|
|
1148
860
|
const deserializeAws_json1_0SendTaskHeartbeatCommand = async (output, context) => {
|
|
1149
861
|
if (output.statusCode >= 300) {
|
|
@@ -1170,43 +882,22 @@ const deserializeAws_json1_0SendTaskHeartbeatCommandError = async (output, conte
|
|
|
1170
882
|
switch (errorCode) {
|
|
1171
883
|
case "InvalidToken":
|
|
1172
884
|
case "com.amazonaws.sfn#InvalidToken":
|
|
1173
|
-
|
|
1174
|
-
...(await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)),
|
|
1175
|
-
name: errorCode,
|
|
1176
|
-
$metadata: deserializeMetadata(output),
|
|
1177
|
-
};
|
|
1178
|
-
break;
|
|
885
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
1179
886
|
case "TaskDoesNotExist":
|
|
1180
887
|
case "com.amazonaws.sfn#TaskDoesNotExist":
|
|
1181
|
-
|
|
1182
|
-
...(await deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)),
|
|
1183
|
-
name: errorCode,
|
|
1184
|
-
$metadata: deserializeMetadata(output),
|
|
1185
|
-
};
|
|
1186
|
-
break;
|
|
888
|
+
throw await deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context);
|
|
1187
889
|
case "TaskTimedOut":
|
|
1188
890
|
case "com.amazonaws.sfn#TaskTimedOut":
|
|
1189
|
-
|
|
1190
|
-
...(await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)),
|
|
1191
|
-
name: errorCode,
|
|
1192
|
-
$metadata: deserializeMetadata(output),
|
|
1193
|
-
};
|
|
1194
|
-
break;
|
|
891
|
+
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
1195
892
|
default:
|
|
1196
893
|
const parsedBody = parsedOutput.body;
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
...parsedBody,
|
|
1200
|
-
name: `${errorCode}`,
|
|
1201
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
894
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
895
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1202
896
|
$fault: "client",
|
|
1203
897
|
$metadata: deserializeMetadata(output),
|
|
1204
|
-
};
|
|
898
|
+
});
|
|
899
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1205
900
|
}
|
|
1206
|
-
const message = response.message || response.Message || errorCode;
|
|
1207
|
-
response.message = message;
|
|
1208
|
-
delete response.Message;
|
|
1209
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1210
901
|
};
|
|
1211
902
|
const deserializeAws_json1_0SendTaskSuccessCommand = async (output, context) => {
|
|
1212
903
|
if (output.statusCode >= 300) {
|
|
@@ -1233,51 +924,25 @@ const deserializeAws_json1_0SendTaskSuccessCommandError = async (output, context
|
|
|
1233
924
|
switch (errorCode) {
|
|
1234
925
|
case "InvalidOutput":
|
|
1235
926
|
case "com.amazonaws.sfn#InvalidOutput":
|
|
1236
|
-
|
|
1237
|
-
...(await deserializeAws_json1_0InvalidOutputResponse(parsedOutput, context)),
|
|
1238
|
-
name: errorCode,
|
|
1239
|
-
$metadata: deserializeMetadata(output),
|
|
1240
|
-
};
|
|
1241
|
-
break;
|
|
927
|
+
throw await deserializeAws_json1_0InvalidOutputResponse(parsedOutput, context);
|
|
1242
928
|
case "InvalidToken":
|
|
1243
929
|
case "com.amazonaws.sfn#InvalidToken":
|
|
1244
|
-
|
|
1245
|
-
...(await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context)),
|
|
1246
|
-
name: errorCode,
|
|
1247
|
-
$metadata: deserializeMetadata(output),
|
|
1248
|
-
};
|
|
1249
|
-
break;
|
|
930
|
+
throw await deserializeAws_json1_0InvalidTokenResponse(parsedOutput, context);
|
|
1250
931
|
case "TaskDoesNotExist":
|
|
1251
932
|
case "com.amazonaws.sfn#TaskDoesNotExist":
|
|
1252
|
-
|
|
1253
|
-
...(await deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context)),
|
|
1254
|
-
name: errorCode,
|
|
1255
|
-
$metadata: deserializeMetadata(output),
|
|
1256
|
-
};
|
|
1257
|
-
break;
|
|
933
|
+
throw await deserializeAws_json1_0TaskDoesNotExistResponse(parsedOutput, context);
|
|
1258
934
|
case "TaskTimedOut":
|
|
1259
935
|
case "com.amazonaws.sfn#TaskTimedOut":
|
|
1260
|
-
|
|
1261
|
-
...(await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context)),
|
|
1262
|
-
name: errorCode,
|
|
1263
|
-
$metadata: deserializeMetadata(output),
|
|
1264
|
-
};
|
|
1265
|
-
break;
|
|
936
|
+
throw await deserializeAws_json1_0TaskTimedOutResponse(parsedOutput, context);
|
|
1266
937
|
default:
|
|
1267
938
|
const parsedBody = parsedOutput.body;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
...parsedBody,
|
|
1271
|
-
name: `${errorCode}`,
|
|
1272
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
939
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
940
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1273
941
|
$fault: "client",
|
|
1274
942
|
$metadata: deserializeMetadata(output),
|
|
1275
|
-
};
|
|
943
|
+
});
|
|
944
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1276
945
|
}
|
|
1277
|
-
const message = response.message || response.Message || errorCode;
|
|
1278
|
-
response.message = message;
|
|
1279
|
-
delete response.Message;
|
|
1280
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1281
946
|
};
|
|
1282
947
|
const deserializeAws_json1_0StartExecutionCommand = async (output, context) => {
|
|
1283
948
|
if (output.statusCode >= 300) {
|
|
@@ -1304,75 +969,34 @@ const deserializeAws_json1_0StartExecutionCommandError = async (output, context)
|
|
|
1304
969
|
switch (errorCode) {
|
|
1305
970
|
case "ExecutionAlreadyExists":
|
|
1306
971
|
case "com.amazonaws.sfn#ExecutionAlreadyExists":
|
|
1307
|
-
|
|
1308
|
-
...(await deserializeAws_json1_0ExecutionAlreadyExistsResponse(parsedOutput, context)),
|
|
1309
|
-
name: errorCode,
|
|
1310
|
-
$metadata: deserializeMetadata(output),
|
|
1311
|
-
};
|
|
1312
|
-
break;
|
|
972
|
+
throw await deserializeAws_json1_0ExecutionAlreadyExistsResponse(parsedOutput, context);
|
|
1313
973
|
case "ExecutionLimitExceeded":
|
|
1314
974
|
case "com.amazonaws.sfn#ExecutionLimitExceeded":
|
|
1315
|
-
|
|
1316
|
-
...(await deserializeAws_json1_0ExecutionLimitExceededResponse(parsedOutput, context)),
|
|
1317
|
-
name: errorCode,
|
|
1318
|
-
$metadata: deserializeMetadata(output),
|
|
1319
|
-
};
|
|
1320
|
-
break;
|
|
975
|
+
throw await deserializeAws_json1_0ExecutionLimitExceededResponse(parsedOutput, context);
|
|
1321
976
|
case "InvalidArn":
|
|
1322
977
|
case "com.amazonaws.sfn#InvalidArn":
|
|
1323
|
-
|
|
1324
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
1325
|
-
name: errorCode,
|
|
1326
|
-
$metadata: deserializeMetadata(output),
|
|
1327
|
-
};
|
|
1328
|
-
break;
|
|
978
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1329
979
|
case "InvalidExecutionInput":
|
|
1330
980
|
case "com.amazonaws.sfn#InvalidExecutionInput":
|
|
1331
|
-
|
|
1332
|
-
...(await deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context)),
|
|
1333
|
-
name: errorCode,
|
|
1334
|
-
$metadata: deserializeMetadata(output),
|
|
1335
|
-
};
|
|
1336
|
-
break;
|
|
981
|
+
throw await deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context);
|
|
1337
982
|
case "InvalidName":
|
|
1338
983
|
case "com.amazonaws.sfn#InvalidName":
|
|
1339
|
-
|
|
1340
|
-
...(await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)),
|
|
1341
|
-
name: errorCode,
|
|
1342
|
-
$metadata: deserializeMetadata(output),
|
|
1343
|
-
};
|
|
1344
|
-
break;
|
|
984
|
+
throw await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context);
|
|
1345
985
|
case "StateMachineDeleting":
|
|
1346
986
|
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
1347
|
-
|
|
1348
|
-
...(await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)),
|
|
1349
|
-
name: errorCode,
|
|
1350
|
-
$metadata: deserializeMetadata(output),
|
|
1351
|
-
};
|
|
1352
|
-
break;
|
|
987
|
+
throw await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context);
|
|
1353
988
|
case "StateMachineDoesNotExist":
|
|
1354
989
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1355
|
-
|
|
1356
|
-
...(await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)),
|
|
1357
|
-
name: errorCode,
|
|
1358
|
-
$metadata: deserializeMetadata(output),
|
|
1359
|
-
};
|
|
1360
|
-
break;
|
|
990
|
+
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1361
991
|
default:
|
|
1362
992
|
const parsedBody = parsedOutput.body;
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
...parsedBody,
|
|
1366
|
-
name: `${errorCode}`,
|
|
1367
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
993
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
994
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1368
995
|
$fault: "client",
|
|
1369
996
|
$metadata: deserializeMetadata(output),
|
|
1370
|
-
};
|
|
997
|
+
});
|
|
998
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1371
999
|
}
|
|
1372
|
-
const message = response.message || response.Message || errorCode;
|
|
1373
|
-
response.message = message;
|
|
1374
|
-
delete response.Message;
|
|
1375
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1376
1000
|
};
|
|
1377
1001
|
const deserializeAws_json1_0StartSyncExecutionCommand = async (output, context) => {
|
|
1378
1002
|
if (output.statusCode >= 300) {
|
|
@@ -1399,67 +1023,31 @@ const deserializeAws_json1_0StartSyncExecutionCommandError = async (output, cont
|
|
|
1399
1023
|
switch (errorCode) {
|
|
1400
1024
|
case "InvalidArn":
|
|
1401
1025
|
case "com.amazonaws.sfn#InvalidArn":
|
|
1402
|
-
|
|
1403
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
1404
|
-
name: errorCode,
|
|
1405
|
-
$metadata: deserializeMetadata(output),
|
|
1406
|
-
};
|
|
1407
|
-
break;
|
|
1026
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1408
1027
|
case "InvalidExecutionInput":
|
|
1409
1028
|
case "com.amazonaws.sfn#InvalidExecutionInput":
|
|
1410
|
-
|
|
1411
|
-
...(await deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context)),
|
|
1412
|
-
name: errorCode,
|
|
1413
|
-
$metadata: deserializeMetadata(output),
|
|
1414
|
-
};
|
|
1415
|
-
break;
|
|
1029
|
+
throw await deserializeAws_json1_0InvalidExecutionInputResponse(parsedOutput, context);
|
|
1416
1030
|
case "InvalidName":
|
|
1417
1031
|
case "com.amazonaws.sfn#InvalidName":
|
|
1418
|
-
|
|
1419
|
-
...(await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context)),
|
|
1420
|
-
name: errorCode,
|
|
1421
|
-
$metadata: deserializeMetadata(output),
|
|
1422
|
-
};
|
|
1423
|
-
break;
|
|
1032
|
+
throw await deserializeAws_json1_0InvalidNameResponse(parsedOutput, context);
|
|
1424
1033
|
case "StateMachineDeleting":
|
|
1425
1034
|
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
1426
|
-
|
|
1427
|
-
...(await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)),
|
|
1428
|
-
name: errorCode,
|
|
1429
|
-
$metadata: deserializeMetadata(output),
|
|
1430
|
-
};
|
|
1431
|
-
break;
|
|
1035
|
+
throw await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context);
|
|
1432
1036
|
case "StateMachineDoesNotExist":
|
|
1433
1037
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1434
|
-
|
|
1435
|
-
...(await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)),
|
|
1436
|
-
name: errorCode,
|
|
1437
|
-
$metadata: deserializeMetadata(output),
|
|
1438
|
-
};
|
|
1439
|
-
break;
|
|
1038
|
+
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1440
1039
|
case "StateMachineTypeNotSupported":
|
|
1441
1040
|
case "com.amazonaws.sfn#StateMachineTypeNotSupported":
|
|
1442
|
-
|
|
1443
|
-
...(await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context)),
|
|
1444
|
-
name: errorCode,
|
|
1445
|
-
$metadata: deserializeMetadata(output),
|
|
1446
|
-
};
|
|
1447
|
-
break;
|
|
1041
|
+
throw await deserializeAws_json1_0StateMachineTypeNotSupportedResponse(parsedOutput, context);
|
|
1448
1042
|
default:
|
|
1449
1043
|
const parsedBody = parsedOutput.body;
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
...parsedBody,
|
|
1453
|
-
name: `${errorCode}`,
|
|
1454
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1044
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
1045
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1455
1046
|
$fault: "client",
|
|
1456
1047
|
$metadata: deserializeMetadata(output),
|
|
1457
|
-
};
|
|
1048
|
+
});
|
|
1049
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1458
1050
|
}
|
|
1459
|
-
const message = response.message || response.Message || errorCode;
|
|
1460
|
-
response.message = message;
|
|
1461
|
-
delete response.Message;
|
|
1462
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1463
1051
|
};
|
|
1464
1052
|
const deserializeAws_json1_0StopExecutionCommand = async (output, context) => {
|
|
1465
1053
|
if (output.statusCode >= 300) {
|
|
@@ -1486,35 +1074,19 @@ const deserializeAws_json1_0StopExecutionCommandError = async (output, context)
|
|
|
1486
1074
|
switch (errorCode) {
|
|
1487
1075
|
case "ExecutionDoesNotExist":
|
|
1488
1076
|
case "com.amazonaws.sfn#ExecutionDoesNotExist":
|
|
1489
|
-
|
|
1490
|
-
...(await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context)),
|
|
1491
|
-
name: errorCode,
|
|
1492
|
-
$metadata: deserializeMetadata(output),
|
|
1493
|
-
};
|
|
1494
|
-
break;
|
|
1077
|
+
throw await deserializeAws_json1_0ExecutionDoesNotExistResponse(parsedOutput, context);
|
|
1495
1078
|
case "InvalidArn":
|
|
1496
1079
|
case "com.amazonaws.sfn#InvalidArn":
|
|
1497
|
-
|
|
1498
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
1499
|
-
name: errorCode,
|
|
1500
|
-
$metadata: deserializeMetadata(output),
|
|
1501
|
-
};
|
|
1502
|
-
break;
|
|
1080
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1503
1081
|
default:
|
|
1504
1082
|
const parsedBody = parsedOutput.body;
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
...parsedBody,
|
|
1508
|
-
name: `${errorCode}`,
|
|
1509
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1083
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
1084
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1510
1085
|
$fault: "client",
|
|
1511
1086
|
$metadata: deserializeMetadata(output),
|
|
1512
|
-
};
|
|
1087
|
+
});
|
|
1088
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1513
1089
|
}
|
|
1514
|
-
const message = response.message || response.Message || errorCode;
|
|
1515
|
-
response.message = message;
|
|
1516
|
-
delete response.Message;
|
|
1517
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1518
1090
|
};
|
|
1519
1091
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
1520
1092
|
if (output.statusCode >= 300) {
|
|
@@ -1541,43 +1113,22 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
1541
1113
|
switch (errorCode) {
|
|
1542
1114
|
case "InvalidArn":
|
|
1543
1115
|
case "com.amazonaws.sfn#InvalidArn":
|
|
1544
|
-
|
|
1545
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
1546
|
-
name: errorCode,
|
|
1547
|
-
$metadata: deserializeMetadata(output),
|
|
1548
|
-
};
|
|
1549
|
-
break;
|
|
1116
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1550
1117
|
case "ResourceNotFound":
|
|
1551
1118
|
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1552
|
-
|
|
1553
|
-
...(await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)),
|
|
1554
|
-
name: errorCode,
|
|
1555
|
-
$metadata: deserializeMetadata(output),
|
|
1556
|
-
};
|
|
1557
|
-
break;
|
|
1119
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
1558
1120
|
case "TooManyTags":
|
|
1559
1121
|
case "com.amazonaws.sfn#TooManyTags":
|
|
1560
|
-
|
|
1561
|
-
...(await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context)),
|
|
1562
|
-
name: errorCode,
|
|
1563
|
-
$metadata: deserializeMetadata(output),
|
|
1564
|
-
};
|
|
1565
|
-
break;
|
|
1122
|
+
throw await deserializeAws_json1_0TooManyTagsResponse(parsedOutput, context);
|
|
1566
1123
|
default:
|
|
1567
1124
|
const parsedBody = parsedOutput.body;
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
...parsedBody,
|
|
1571
|
-
name: `${errorCode}`,
|
|
1572
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1125
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
1126
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1573
1127
|
$fault: "client",
|
|
1574
1128
|
$metadata: deserializeMetadata(output),
|
|
1575
|
-
};
|
|
1129
|
+
});
|
|
1130
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1576
1131
|
}
|
|
1577
|
-
const message = response.message || response.Message || errorCode;
|
|
1578
|
-
response.message = message;
|
|
1579
|
-
delete response.Message;
|
|
1580
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1581
1132
|
};
|
|
1582
1133
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
1583
1134
|
if (output.statusCode >= 300) {
|
|
@@ -1604,35 +1155,19 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
1604
1155
|
switch (errorCode) {
|
|
1605
1156
|
case "InvalidArn":
|
|
1606
1157
|
case "com.amazonaws.sfn#InvalidArn":
|
|
1607
|
-
|
|
1608
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
1609
|
-
name: errorCode,
|
|
1610
|
-
$metadata: deserializeMetadata(output),
|
|
1611
|
-
};
|
|
1612
|
-
break;
|
|
1158
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1613
1159
|
case "ResourceNotFound":
|
|
1614
1160
|
case "com.amazonaws.sfn#ResourceNotFound":
|
|
1615
|
-
|
|
1616
|
-
...(await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context)),
|
|
1617
|
-
name: errorCode,
|
|
1618
|
-
$metadata: deserializeMetadata(output),
|
|
1619
|
-
};
|
|
1620
|
-
break;
|
|
1161
|
+
throw await deserializeAws_json1_0ResourceNotFoundResponse(parsedOutput, context);
|
|
1621
1162
|
default:
|
|
1622
1163
|
const parsedBody = parsedOutput.body;
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
...parsedBody,
|
|
1626
|
-
name: `${errorCode}`,
|
|
1627
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1164
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
1165
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1628
1166
|
$fault: "client",
|
|
1629
1167
|
$metadata: deserializeMetadata(output),
|
|
1630
|
-
};
|
|
1168
|
+
});
|
|
1169
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1631
1170
|
}
|
|
1632
|
-
const message = response.message || response.Message || errorCode;
|
|
1633
|
-
response.message = message;
|
|
1634
|
-
delete response.Message;
|
|
1635
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1636
1171
|
};
|
|
1637
1172
|
const deserializeAws_json1_0UpdateStateMachineCommand = async (output, context) => {
|
|
1638
1173
|
if (output.statusCode >= 300) {
|
|
@@ -1659,339 +1194,250 @@ const deserializeAws_json1_0UpdateStateMachineCommandError = async (output, cont
|
|
|
1659
1194
|
switch (errorCode) {
|
|
1660
1195
|
case "InvalidArn":
|
|
1661
1196
|
case "com.amazonaws.sfn#InvalidArn":
|
|
1662
|
-
|
|
1663
|
-
...(await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context)),
|
|
1664
|
-
name: errorCode,
|
|
1665
|
-
$metadata: deserializeMetadata(output),
|
|
1666
|
-
};
|
|
1667
|
-
break;
|
|
1197
|
+
throw await deserializeAws_json1_0InvalidArnResponse(parsedOutput, context);
|
|
1668
1198
|
case "InvalidDefinition":
|
|
1669
1199
|
case "com.amazonaws.sfn#InvalidDefinition":
|
|
1670
|
-
|
|
1671
|
-
...(await deserializeAws_json1_0InvalidDefinitionResponse(parsedOutput, context)),
|
|
1672
|
-
name: errorCode,
|
|
1673
|
-
$metadata: deserializeMetadata(output),
|
|
1674
|
-
};
|
|
1675
|
-
break;
|
|
1200
|
+
throw await deserializeAws_json1_0InvalidDefinitionResponse(parsedOutput, context);
|
|
1676
1201
|
case "InvalidLoggingConfiguration":
|
|
1677
1202
|
case "com.amazonaws.sfn#InvalidLoggingConfiguration":
|
|
1678
|
-
|
|
1679
|
-
...(await deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context)),
|
|
1680
|
-
name: errorCode,
|
|
1681
|
-
$metadata: deserializeMetadata(output),
|
|
1682
|
-
};
|
|
1683
|
-
break;
|
|
1203
|
+
throw await deserializeAws_json1_0InvalidLoggingConfigurationResponse(parsedOutput, context);
|
|
1684
1204
|
case "InvalidTracingConfiguration":
|
|
1685
1205
|
case "com.amazonaws.sfn#InvalidTracingConfiguration":
|
|
1686
|
-
|
|
1687
|
-
...(await deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context)),
|
|
1688
|
-
name: errorCode,
|
|
1689
|
-
$metadata: deserializeMetadata(output),
|
|
1690
|
-
};
|
|
1691
|
-
break;
|
|
1206
|
+
throw await deserializeAws_json1_0InvalidTracingConfigurationResponse(parsedOutput, context);
|
|
1692
1207
|
case "MissingRequiredParameter":
|
|
1693
1208
|
case "com.amazonaws.sfn#MissingRequiredParameter":
|
|
1694
|
-
|
|
1695
|
-
...(await deserializeAws_json1_0MissingRequiredParameterResponse(parsedOutput, context)),
|
|
1696
|
-
name: errorCode,
|
|
1697
|
-
$metadata: deserializeMetadata(output),
|
|
1698
|
-
};
|
|
1699
|
-
break;
|
|
1209
|
+
throw await deserializeAws_json1_0MissingRequiredParameterResponse(parsedOutput, context);
|
|
1700
1210
|
case "StateMachineDeleting":
|
|
1701
1211
|
case "com.amazonaws.sfn#StateMachineDeleting":
|
|
1702
|
-
|
|
1703
|
-
...(await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context)),
|
|
1704
|
-
name: errorCode,
|
|
1705
|
-
$metadata: deserializeMetadata(output),
|
|
1706
|
-
};
|
|
1707
|
-
break;
|
|
1212
|
+
throw await deserializeAws_json1_0StateMachineDeletingResponse(parsedOutput, context);
|
|
1708
1213
|
case "StateMachineDoesNotExist":
|
|
1709
1214
|
case "com.amazonaws.sfn#StateMachineDoesNotExist":
|
|
1710
|
-
|
|
1711
|
-
...(await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context)),
|
|
1712
|
-
name: errorCode,
|
|
1713
|
-
$metadata: deserializeMetadata(output),
|
|
1714
|
-
};
|
|
1715
|
-
break;
|
|
1215
|
+
throw await deserializeAws_json1_0StateMachineDoesNotExistResponse(parsedOutput, context);
|
|
1716
1216
|
default:
|
|
1717
1217
|
const parsedBody = parsedOutput.body;
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
...parsedBody,
|
|
1721
|
-
name: `${errorCode}`,
|
|
1722
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1218
|
+
response = new SFNServiceException_1.SFNServiceException({
|
|
1219
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1723
1220
|
$fault: "client",
|
|
1724
1221
|
$metadata: deserializeMetadata(output),
|
|
1725
|
-
};
|
|
1222
|
+
});
|
|
1223
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1726
1224
|
}
|
|
1727
|
-
const message = response.message || response.Message || errorCode;
|
|
1728
|
-
response.message = message;
|
|
1729
|
-
delete response.Message;
|
|
1730
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1731
1225
|
};
|
|
1732
1226
|
const deserializeAws_json1_0ActivityDoesNotExistResponse = async (parsedOutput, context) => {
|
|
1733
1227
|
const body = parsedOutput.body;
|
|
1734
1228
|
const deserialized = deserializeAws_json1_0ActivityDoesNotExist(body, context);
|
|
1735
|
-
const
|
|
1736
|
-
name: "ActivityDoesNotExist",
|
|
1737
|
-
$fault: "client",
|
|
1229
|
+
const exception = new models_0_1.ActivityDoesNotExist({
|
|
1738
1230
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1739
1231
|
...deserialized,
|
|
1740
|
-
};
|
|
1741
|
-
return
|
|
1232
|
+
});
|
|
1233
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1742
1234
|
};
|
|
1743
1235
|
const deserializeAws_json1_0ActivityLimitExceededResponse = async (parsedOutput, context) => {
|
|
1744
1236
|
const body = parsedOutput.body;
|
|
1745
1237
|
const deserialized = deserializeAws_json1_0ActivityLimitExceeded(body, context);
|
|
1746
|
-
const
|
|
1747
|
-
name: "ActivityLimitExceeded",
|
|
1748
|
-
$fault: "client",
|
|
1238
|
+
const exception = new models_0_1.ActivityLimitExceeded({
|
|
1749
1239
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1750
1240
|
...deserialized,
|
|
1751
|
-
};
|
|
1752
|
-
return
|
|
1241
|
+
});
|
|
1242
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1753
1243
|
};
|
|
1754
1244
|
const deserializeAws_json1_0ActivityWorkerLimitExceededResponse = async (parsedOutput, context) => {
|
|
1755
1245
|
const body = parsedOutput.body;
|
|
1756
1246
|
const deserialized = deserializeAws_json1_0ActivityWorkerLimitExceeded(body, context);
|
|
1757
|
-
const
|
|
1758
|
-
name: "ActivityWorkerLimitExceeded",
|
|
1759
|
-
$fault: "client",
|
|
1247
|
+
const exception = new models_0_1.ActivityWorkerLimitExceeded({
|
|
1760
1248
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1761
1249
|
...deserialized,
|
|
1762
|
-
};
|
|
1763
|
-
return
|
|
1250
|
+
});
|
|
1251
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1764
1252
|
};
|
|
1765
1253
|
const deserializeAws_json1_0ExecutionAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
1766
1254
|
const body = parsedOutput.body;
|
|
1767
1255
|
const deserialized = deserializeAws_json1_0ExecutionAlreadyExists(body, context);
|
|
1768
|
-
const
|
|
1769
|
-
name: "ExecutionAlreadyExists",
|
|
1770
|
-
$fault: "client",
|
|
1256
|
+
const exception = new models_0_1.ExecutionAlreadyExists({
|
|
1771
1257
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1772
1258
|
...deserialized,
|
|
1773
|
-
};
|
|
1774
|
-
return
|
|
1259
|
+
});
|
|
1260
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1775
1261
|
};
|
|
1776
1262
|
const deserializeAws_json1_0ExecutionDoesNotExistResponse = async (parsedOutput, context) => {
|
|
1777
1263
|
const body = parsedOutput.body;
|
|
1778
1264
|
const deserialized = deserializeAws_json1_0ExecutionDoesNotExist(body, context);
|
|
1779
|
-
const
|
|
1780
|
-
name: "ExecutionDoesNotExist",
|
|
1781
|
-
$fault: "client",
|
|
1265
|
+
const exception = new models_0_1.ExecutionDoesNotExist({
|
|
1782
1266
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1783
1267
|
...deserialized,
|
|
1784
|
-
};
|
|
1785
|
-
return
|
|
1268
|
+
});
|
|
1269
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1786
1270
|
};
|
|
1787
1271
|
const deserializeAws_json1_0ExecutionLimitExceededResponse = async (parsedOutput, context) => {
|
|
1788
1272
|
const body = parsedOutput.body;
|
|
1789
1273
|
const deserialized = deserializeAws_json1_0ExecutionLimitExceeded(body, context);
|
|
1790
|
-
const
|
|
1791
|
-
name: "ExecutionLimitExceeded",
|
|
1792
|
-
$fault: "client",
|
|
1274
|
+
const exception = new models_0_1.ExecutionLimitExceeded({
|
|
1793
1275
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1794
1276
|
...deserialized,
|
|
1795
|
-
};
|
|
1796
|
-
return
|
|
1277
|
+
});
|
|
1278
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1797
1279
|
};
|
|
1798
1280
|
const deserializeAws_json1_0InvalidArnResponse = async (parsedOutput, context) => {
|
|
1799
1281
|
const body = parsedOutput.body;
|
|
1800
1282
|
const deserialized = deserializeAws_json1_0InvalidArn(body, context);
|
|
1801
|
-
const
|
|
1802
|
-
name: "InvalidArn",
|
|
1803
|
-
$fault: "client",
|
|
1283
|
+
const exception = new models_0_1.InvalidArn({
|
|
1804
1284
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1805
1285
|
...deserialized,
|
|
1806
|
-
};
|
|
1807
|
-
return
|
|
1286
|
+
});
|
|
1287
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1808
1288
|
};
|
|
1809
1289
|
const deserializeAws_json1_0InvalidDefinitionResponse = async (parsedOutput, context) => {
|
|
1810
1290
|
const body = parsedOutput.body;
|
|
1811
1291
|
const deserialized = deserializeAws_json1_0InvalidDefinition(body, context);
|
|
1812
|
-
const
|
|
1813
|
-
name: "InvalidDefinition",
|
|
1814
|
-
$fault: "client",
|
|
1292
|
+
const exception = new models_0_1.InvalidDefinition({
|
|
1815
1293
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1816
1294
|
...deserialized,
|
|
1817
|
-
};
|
|
1818
|
-
return
|
|
1295
|
+
});
|
|
1296
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1819
1297
|
};
|
|
1820
1298
|
const deserializeAws_json1_0InvalidExecutionInputResponse = async (parsedOutput, context) => {
|
|
1821
1299
|
const body = parsedOutput.body;
|
|
1822
1300
|
const deserialized = deserializeAws_json1_0InvalidExecutionInput(body, context);
|
|
1823
|
-
const
|
|
1824
|
-
name: "InvalidExecutionInput",
|
|
1825
|
-
$fault: "client",
|
|
1301
|
+
const exception = new models_0_1.InvalidExecutionInput({
|
|
1826
1302
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1827
1303
|
...deserialized,
|
|
1828
|
-
};
|
|
1829
|
-
return
|
|
1304
|
+
});
|
|
1305
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1830
1306
|
};
|
|
1831
1307
|
const deserializeAws_json1_0InvalidLoggingConfigurationResponse = async (parsedOutput, context) => {
|
|
1832
1308
|
const body = parsedOutput.body;
|
|
1833
1309
|
const deserialized = deserializeAws_json1_0InvalidLoggingConfiguration(body, context);
|
|
1834
|
-
const
|
|
1835
|
-
name: "InvalidLoggingConfiguration",
|
|
1836
|
-
$fault: "client",
|
|
1310
|
+
const exception = new models_0_1.InvalidLoggingConfiguration({
|
|
1837
1311
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1838
1312
|
...deserialized,
|
|
1839
|
-
};
|
|
1840
|
-
return
|
|
1313
|
+
});
|
|
1314
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1841
1315
|
};
|
|
1842
1316
|
const deserializeAws_json1_0InvalidNameResponse = async (parsedOutput, context) => {
|
|
1843
1317
|
const body = parsedOutput.body;
|
|
1844
1318
|
const deserialized = deserializeAws_json1_0InvalidName(body, context);
|
|
1845
|
-
const
|
|
1846
|
-
name: "InvalidName",
|
|
1847
|
-
$fault: "client",
|
|
1319
|
+
const exception = new models_0_1.InvalidName({
|
|
1848
1320
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1849
1321
|
...deserialized,
|
|
1850
|
-
};
|
|
1851
|
-
return
|
|
1322
|
+
});
|
|
1323
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1852
1324
|
};
|
|
1853
1325
|
const deserializeAws_json1_0InvalidOutputResponse = async (parsedOutput, context) => {
|
|
1854
1326
|
const body = parsedOutput.body;
|
|
1855
1327
|
const deserialized = deserializeAws_json1_0InvalidOutput(body, context);
|
|
1856
|
-
const
|
|
1857
|
-
name: "InvalidOutput",
|
|
1858
|
-
$fault: "client",
|
|
1328
|
+
const exception = new models_0_1.InvalidOutput({
|
|
1859
1329
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1860
1330
|
...deserialized,
|
|
1861
|
-
};
|
|
1862
|
-
return
|
|
1331
|
+
});
|
|
1332
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1863
1333
|
};
|
|
1864
1334
|
const deserializeAws_json1_0InvalidTokenResponse = async (parsedOutput, context) => {
|
|
1865
1335
|
const body = parsedOutput.body;
|
|
1866
1336
|
const deserialized = deserializeAws_json1_0InvalidToken(body, context);
|
|
1867
|
-
const
|
|
1868
|
-
name: "InvalidToken",
|
|
1869
|
-
$fault: "client",
|
|
1337
|
+
const exception = new models_0_1.InvalidToken({
|
|
1870
1338
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1871
1339
|
...deserialized,
|
|
1872
|
-
};
|
|
1873
|
-
return
|
|
1340
|
+
});
|
|
1341
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1874
1342
|
};
|
|
1875
1343
|
const deserializeAws_json1_0InvalidTracingConfigurationResponse = async (parsedOutput, context) => {
|
|
1876
1344
|
const body = parsedOutput.body;
|
|
1877
1345
|
const deserialized = deserializeAws_json1_0InvalidTracingConfiguration(body, context);
|
|
1878
|
-
const
|
|
1879
|
-
name: "InvalidTracingConfiguration",
|
|
1880
|
-
$fault: "client",
|
|
1346
|
+
const exception = new models_0_1.InvalidTracingConfiguration({
|
|
1881
1347
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1882
1348
|
...deserialized,
|
|
1883
|
-
};
|
|
1884
|
-
return
|
|
1349
|
+
});
|
|
1350
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1885
1351
|
};
|
|
1886
1352
|
const deserializeAws_json1_0MissingRequiredParameterResponse = async (parsedOutput, context) => {
|
|
1887
1353
|
const body = parsedOutput.body;
|
|
1888
1354
|
const deserialized = deserializeAws_json1_0MissingRequiredParameter(body, context);
|
|
1889
|
-
const
|
|
1890
|
-
name: "MissingRequiredParameter",
|
|
1891
|
-
$fault: "client",
|
|
1355
|
+
const exception = new models_0_1.MissingRequiredParameter({
|
|
1892
1356
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1893
1357
|
...deserialized,
|
|
1894
|
-
};
|
|
1895
|
-
return
|
|
1358
|
+
});
|
|
1359
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1896
1360
|
};
|
|
1897
1361
|
const deserializeAws_json1_0ResourceNotFoundResponse = async (parsedOutput, context) => {
|
|
1898
1362
|
const body = parsedOutput.body;
|
|
1899
1363
|
const deserialized = deserializeAws_json1_0ResourceNotFound(body, context);
|
|
1900
|
-
const
|
|
1901
|
-
name: "ResourceNotFound",
|
|
1902
|
-
$fault: "client",
|
|
1364
|
+
const exception = new models_0_1.ResourceNotFound({
|
|
1903
1365
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1904
1366
|
...deserialized,
|
|
1905
|
-
};
|
|
1906
|
-
return
|
|
1367
|
+
});
|
|
1368
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1907
1369
|
};
|
|
1908
1370
|
const deserializeAws_json1_0StateMachineAlreadyExistsResponse = async (parsedOutput, context) => {
|
|
1909
1371
|
const body = parsedOutput.body;
|
|
1910
1372
|
const deserialized = deserializeAws_json1_0StateMachineAlreadyExists(body, context);
|
|
1911
|
-
const
|
|
1912
|
-
name: "StateMachineAlreadyExists",
|
|
1913
|
-
$fault: "client",
|
|
1373
|
+
const exception = new models_0_1.StateMachineAlreadyExists({
|
|
1914
1374
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1915
1375
|
...deserialized,
|
|
1916
|
-
};
|
|
1917
|
-
return
|
|
1376
|
+
});
|
|
1377
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1918
1378
|
};
|
|
1919
1379
|
const deserializeAws_json1_0StateMachineDeletingResponse = async (parsedOutput, context) => {
|
|
1920
1380
|
const body = parsedOutput.body;
|
|
1921
1381
|
const deserialized = deserializeAws_json1_0StateMachineDeleting(body, context);
|
|
1922
|
-
const
|
|
1923
|
-
name: "StateMachineDeleting",
|
|
1924
|
-
$fault: "client",
|
|
1382
|
+
const exception = new models_0_1.StateMachineDeleting({
|
|
1925
1383
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1926
1384
|
...deserialized,
|
|
1927
|
-
};
|
|
1928
|
-
return
|
|
1385
|
+
});
|
|
1386
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1929
1387
|
};
|
|
1930
1388
|
const deserializeAws_json1_0StateMachineDoesNotExistResponse = async (parsedOutput, context) => {
|
|
1931
1389
|
const body = parsedOutput.body;
|
|
1932
1390
|
const deserialized = deserializeAws_json1_0StateMachineDoesNotExist(body, context);
|
|
1933
|
-
const
|
|
1934
|
-
name: "StateMachineDoesNotExist",
|
|
1935
|
-
$fault: "client",
|
|
1391
|
+
const exception = new models_0_1.StateMachineDoesNotExist({
|
|
1936
1392
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1937
1393
|
...deserialized,
|
|
1938
|
-
};
|
|
1939
|
-
return
|
|
1394
|
+
});
|
|
1395
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1940
1396
|
};
|
|
1941
1397
|
const deserializeAws_json1_0StateMachineLimitExceededResponse = async (parsedOutput, context) => {
|
|
1942
1398
|
const body = parsedOutput.body;
|
|
1943
1399
|
const deserialized = deserializeAws_json1_0StateMachineLimitExceeded(body, context);
|
|
1944
|
-
const
|
|
1945
|
-
name: "StateMachineLimitExceeded",
|
|
1946
|
-
$fault: "client",
|
|
1400
|
+
const exception = new models_0_1.StateMachineLimitExceeded({
|
|
1947
1401
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1948
1402
|
...deserialized,
|
|
1949
|
-
};
|
|
1950
|
-
return
|
|
1403
|
+
});
|
|
1404
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1951
1405
|
};
|
|
1952
1406
|
const deserializeAws_json1_0StateMachineTypeNotSupportedResponse = async (parsedOutput, context) => {
|
|
1953
1407
|
const body = parsedOutput.body;
|
|
1954
1408
|
const deserialized = deserializeAws_json1_0StateMachineTypeNotSupported(body, context);
|
|
1955
|
-
const
|
|
1956
|
-
name: "StateMachineTypeNotSupported",
|
|
1957
|
-
$fault: "client",
|
|
1409
|
+
const exception = new models_0_1.StateMachineTypeNotSupported({
|
|
1958
1410
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1959
1411
|
...deserialized,
|
|
1960
|
-
};
|
|
1961
|
-
return
|
|
1412
|
+
});
|
|
1413
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1962
1414
|
};
|
|
1963
1415
|
const deserializeAws_json1_0TaskDoesNotExistResponse = async (parsedOutput, context) => {
|
|
1964
1416
|
const body = parsedOutput.body;
|
|
1965
1417
|
const deserialized = deserializeAws_json1_0TaskDoesNotExist(body, context);
|
|
1966
|
-
const
|
|
1967
|
-
name: "TaskDoesNotExist",
|
|
1968
|
-
$fault: "client",
|
|
1418
|
+
const exception = new models_0_1.TaskDoesNotExist({
|
|
1969
1419
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1970
1420
|
...deserialized,
|
|
1971
|
-
};
|
|
1972
|
-
return
|
|
1421
|
+
});
|
|
1422
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1973
1423
|
};
|
|
1974
1424
|
const deserializeAws_json1_0TaskTimedOutResponse = async (parsedOutput, context) => {
|
|
1975
1425
|
const body = parsedOutput.body;
|
|
1976
1426
|
const deserialized = deserializeAws_json1_0TaskTimedOut(body, context);
|
|
1977
|
-
const
|
|
1978
|
-
name: "TaskTimedOut",
|
|
1979
|
-
$fault: "client",
|
|
1427
|
+
const exception = new models_0_1.TaskTimedOut({
|
|
1980
1428
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1981
1429
|
...deserialized,
|
|
1982
|
-
};
|
|
1983
|
-
return
|
|
1430
|
+
});
|
|
1431
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1984
1432
|
};
|
|
1985
1433
|
const deserializeAws_json1_0TooManyTagsResponse = async (parsedOutput, context) => {
|
|
1986
1434
|
const body = parsedOutput.body;
|
|
1987
1435
|
const deserialized = deserializeAws_json1_0TooManyTags(body, context);
|
|
1988
|
-
const
|
|
1989
|
-
name: "TooManyTags",
|
|
1990
|
-
$fault: "client",
|
|
1436
|
+
const exception = new models_0_1.TooManyTags({
|
|
1991
1437
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1992
1438
|
...deserialized,
|
|
1993
|
-
};
|
|
1994
|
-
return
|
|
1439
|
+
});
|
|
1440
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
1995
1441
|
};
|
|
1996
1442
|
const serializeAws_json1_0CloudWatchLogsLogGroup = (input, context) => {
|
|
1997
1443
|
return {
|
|
@@ -2244,7 +1690,7 @@ const deserializeAws_json1_0ActivityLimitExceeded = (output, context) => {
|
|
|
2244
1690
|
};
|
|
2245
1691
|
};
|
|
2246
1692
|
const deserializeAws_json1_0ActivityList = (output, context) => {
|
|
2247
|
-
|
|
1693
|
+
const retVal = (output || [])
|
|
2248
1694
|
.filter((e) => e != null)
|
|
2249
1695
|
.map((entry) => {
|
|
2250
1696
|
if (entry === null) {
|
|
@@ -2252,6 +1698,7 @@ const deserializeAws_json1_0ActivityList = (output, context) => {
|
|
|
2252
1698
|
}
|
|
2253
1699
|
return deserializeAws_json1_0ActivityListItem(entry, context);
|
|
2254
1700
|
});
|
|
1701
|
+
return retVal;
|
|
2255
1702
|
};
|
|
2256
1703
|
const deserializeAws_json1_0ActivityListItem = (output, context) => {
|
|
2257
1704
|
return {
|
|
@@ -2437,7 +1884,7 @@ const deserializeAws_json1_0ExecutionLimitExceeded = (output, context) => {
|
|
|
2437
1884
|
};
|
|
2438
1885
|
};
|
|
2439
1886
|
const deserializeAws_json1_0ExecutionList = (output, context) => {
|
|
2440
|
-
|
|
1887
|
+
const retVal = (output || [])
|
|
2441
1888
|
.filter((e) => e != null)
|
|
2442
1889
|
.map((entry) => {
|
|
2443
1890
|
if (entry === null) {
|
|
@@ -2445,6 +1892,7 @@ const deserializeAws_json1_0ExecutionList = (output, context) => {
|
|
|
2445
1892
|
}
|
|
2446
1893
|
return deserializeAws_json1_0ExecutionListItem(entry, context);
|
|
2447
1894
|
});
|
|
1895
|
+
return retVal;
|
|
2448
1896
|
};
|
|
2449
1897
|
const deserializeAws_json1_0ExecutionListItem = (output, context) => {
|
|
2450
1898
|
return {
|
|
@@ -2611,7 +2059,7 @@ const deserializeAws_json1_0HistoryEventExecutionDataDetails = (output, context)
|
|
|
2611
2059
|
};
|
|
2612
2060
|
};
|
|
2613
2061
|
const deserializeAws_json1_0HistoryEventList = (output, context) => {
|
|
2614
|
-
|
|
2062
|
+
const retVal = (output || [])
|
|
2615
2063
|
.filter((e) => e != null)
|
|
2616
2064
|
.map((entry) => {
|
|
2617
2065
|
if (entry === null) {
|
|
@@ -2619,6 +2067,7 @@ const deserializeAws_json1_0HistoryEventList = (output, context) => {
|
|
|
2619
2067
|
}
|
|
2620
2068
|
return deserializeAws_json1_0HistoryEvent(entry, context);
|
|
2621
2069
|
});
|
|
2070
|
+
return retVal;
|
|
2622
2071
|
};
|
|
2623
2072
|
const deserializeAws_json1_0InvalidArn = (output, context) => {
|
|
2624
2073
|
return {
|
|
@@ -2741,7 +2190,7 @@ const deserializeAws_json1_0LogDestination = (output, context) => {
|
|
|
2741
2190
|
};
|
|
2742
2191
|
};
|
|
2743
2192
|
const deserializeAws_json1_0LogDestinationList = (output, context) => {
|
|
2744
|
-
|
|
2193
|
+
const retVal = (output || [])
|
|
2745
2194
|
.filter((e) => e != null)
|
|
2746
2195
|
.map((entry) => {
|
|
2747
2196
|
if (entry === null) {
|
|
@@ -2749,6 +2198,7 @@ const deserializeAws_json1_0LogDestinationList = (output, context) => {
|
|
|
2749
2198
|
}
|
|
2750
2199
|
return deserializeAws_json1_0LogDestination(entry, context);
|
|
2751
2200
|
});
|
|
2201
|
+
return retVal;
|
|
2752
2202
|
};
|
|
2753
2203
|
const deserializeAws_json1_0LoggingConfiguration = (output, context) => {
|
|
2754
2204
|
return {
|
|
@@ -2865,7 +2315,7 @@ const deserializeAws_json1_0StateMachineLimitExceeded = (output, context) => {
|
|
|
2865
2315
|
};
|
|
2866
2316
|
};
|
|
2867
2317
|
const deserializeAws_json1_0StateMachineList = (output, context) => {
|
|
2868
|
-
|
|
2318
|
+
const retVal = (output || [])
|
|
2869
2319
|
.filter((e) => e != null)
|
|
2870
2320
|
.map((entry) => {
|
|
2871
2321
|
if (entry === null) {
|
|
@@ -2873,6 +2323,7 @@ const deserializeAws_json1_0StateMachineList = (output, context) => {
|
|
|
2873
2323
|
}
|
|
2874
2324
|
return deserializeAws_json1_0StateMachineListItem(entry, context);
|
|
2875
2325
|
});
|
|
2326
|
+
return retVal;
|
|
2876
2327
|
};
|
|
2877
2328
|
const deserializeAws_json1_0StateMachineListItem = (output, context) => {
|
|
2878
2329
|
return {
|
|
@@ -2903,7 +2354,7 @@ const deserializeAws_json1_0Tag = (output, context) => {
|
|
|
2903
2354
|
};
|
|
2904
2355
|
};
|
|
2905
2356
|
const deserializeAws_json1_0TagList = (output, context) => {
|
|
2906
|
-
|
|
2357
|
+
const retVal = (output || [])
|
|
2907
2358
|
.filter((e) => e != null)
|
|
2908
2359
|
.map((entry) => {
|
|
2909
2360
|
if (entry === null) {
|
|
@@ -2911,6 +2362,7 @@ const deserializeAws_json1_0TagList = (output, context) => {
|
|
|
2911
2362
|
}
|
|
2912
2363
|
return deserializeAws_json1_0Tag(entry, context);
|
|
2913
2364
|
});
|
|
2365
|
+
return retVal;
|
|
2914
2366
|
};
|
|
2915
2367
|
const deserializeAws_json1_0TagResourceOutput = (output, context) => {
|
|
2916
2368
|
return {};
|