@aws-sdk/client-cloudwatch-logs 3.51.0 → 3.54.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 +30 -0
- package/dist-cjs/endpoints.js +3 -5
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/CloudWatchLogsServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +150 -2
- package/dist-cjs/protocols/Aws_json1_1.js +383 -1357
- package/dist-es/endpoints.js +3 -5
- package/dist-es/index.js +1 -0
- package/dist-es/models/CloudWatchLogsServiceException.js +12 -0
- package/dist-es/models/models_0.js +137 -1
- package/dist-es/protocols/Aws_json1_1.js +864 -1504
- package/dist-types/CloudWatchLogsClient.d.ts +2 -2
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/CloudWatchLogsServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +79 -45
- 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/CloudWatchLogsClient.d.ts +2 -2
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/CloudWatchLogsServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +57 -45
- 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 +33 -33
|
@@ -4,6 +4,8 @@ exports.deserializeAws_json1_1DeleteLogStreamCommand = exports.deserializeAws_js
|
|
|
4
4
|
exports.deserializeAws_json1_1UntagLogGroupCommand = exports.deserializeAws_json1_1TestMetricFilterCommand = exports.deserializeAws_json1_1TagLogGroupCommand = exports.deserializeAws_json1_1StopQueryCommand = exports.deserializeAws_json1_1StartQueryCommand = exports.deserializeAws_json1_1PutSubscriptionFilterCommand = exports.deserializeAws_json1_1PutRetentionPolicyCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1PutQueryDefinitionCommand = exports.deserializeAws_json1_1PutMetricFilterCommand = exports.deserializeAws_json1_1PutLogEventsCommand = exports.deserializeAws_json1_1PutDestinationPolicyCommand = exports.deserializeAws_json1_1PutDestinationCommand = exports.deserializeAws_json1_1ListTagsLogGroupCommand = exports.deserializeAws_json1_1GetQueryResultsCommand = exports.deserializeAws_json1_1GetLogRecordCommand = exports.deserializeAws_json1_1GetLogGroupFieldsCommand = exports.deserializeAws_json1_1GetLogEventsCommand = exports.deserializeAws_json1_1FilterLogEventsCommand = exports.deserializeAws_json1_1DisassociateKmsKeyCommand = exports.deserializeAws_json1_1DescribeSubscriptionFiltersCommand = exports.deserializeAws_json1_1DescribeResourcePoliciesCommand = exports.deserializeAws_json1_1DescribeQueryDefinitionsCommand = exports.deserializeAws_json1_1DescribeQueriesCommand = exports.deserializeAws_json1_1DescribeMetricFiltersCommand = exports.deserializeAws_json1_1DescribeLogStreamsCommand = exports.deserializeAws_json1_1DescribeLogGroupsCommand = exports.deserializeAws_json1_1DescribeExportTasksCommand = exports.deserializeAws_json1_1DescribeDestinationsCommand = exports.deserializeAws_json1_1DeleteSubscriptionFilterCommand = exports.deserializeAws_json1_1DeleteRetentionPolicyCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteQueryDefinitionCommand = exports.deserializeAws_json1_1DeleteMetricFilterCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const CloudWatchLogsServiceException_1 = require("../models/CloudWatchLogsServiceException");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
7
9
|
const serializeAws_json1_1AssociateKmsKeyCommand = async (input, context) => {
|
|
8
10
|
const headers = {
|
|
9
11
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -446,51 +448,25 @@ const deserializeAws_json1_1AssociateKmsKeyCommandError = async (output, context
|
|
|
446
448
|
switch (errorCode) {
|
|
447
449
|
case "InvalidParameterException":
|
|
448
450
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
449
|
-
|
|
450
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
451
|
-
name: errorCode,
|
|
452
|
-
$metadata: deserializeMetadata(output),
|
|
453
|
-
};
|
|
454
|
-
break;
|
|
451
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
455
452
|
case "OperationAbortedException":
|
|
456
453
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
457
|
-
|
|
458
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
459
|
-
name: errorCode,
|
|
460
|
-
$metadata: deserializeMetadata(output),
|
|
461
|
-
};
|
|
462
|
-
break;
|
|
454
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
463
455
|
case "ResourceNotFoundException":
|
|
464
456
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
465
|
-
|
|
466
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
467
|
-
name: errorCode,
|
|
468
|
-
$metadata: deserializeMetadata(output),
|
|
469
|
-
};
|
|
470
|
-
break;
|
|
457
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
471
458
|
case "ServiceUnavailableException":
|
|
472
459
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
473
|
-
|
|
474
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
475
|
-
name: errorCode,
|
|
476
|
-
$metadata: deserializeMetadata(output),
|
|
477
|
-
};
|
|
478
|
-
break;
|
|
460
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
479
461
|
default:
|
|
480
462
|
const parsedBody = parsedOutput.body;
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
...parsedBody,
|
|
484
|
-
name: `${errorCode}`,
|
|
485
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
463
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
464
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
486
465
|
$fault: "client",
|
|
487
466
|
$metadata: deserializeMetadata(output),
|
|
488
|
-
};
|
|
467
|
+
});
|
|
468
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
489
469
|
}
|
|
490
|
-
const message = response.message || response.Message || errorCode;
|
|
491
|
-
response.message = message;
|
|
492
|
-
delete response.Message;
|
|
493
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
494
470
|
};
|
|
495
471
|
const deserializeAws_json1_1CancelExportTaskCommand = async (output, context) => {
|
|
496
472
|
if (output.statusCode >= 300) {
|
|
@@ -514,51 +490,25 @@ const deserializeAws_json1_1CancelExportTaskCommandError = async (output, contex
|
|
|
514
490
|
switch (errorCode) {
|
|
515
491
|
case "InvalidOperationException":
|
|
516
492
|
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
517
|
-
|
|
518
|
-
...(await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context)),
|
|
519
|
-
name: errorCode,
|
|
520
|
-
$metadata: deserializeMetadata(output),
|
|
521
|
-
};
|
|
522
|
-
break;
|
|
493
|
+
throw await deserializeAws_json1_1InvalidOperationExceptionResponse(parsedOutput, context);
|
|
523
494
|
case "InvalidParameterException":
|
|
524
495
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
525
|
-
|
|
526
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
527
|
-
name: errorCode,
|
|
528
|
-
$metadata: deserializeMetadata(output),
|
|
529
|
-
};
|
|
530
|
-
break;
|
|
496
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
531
497
|
case "ResourceNotFoundException":
|
|
532
498
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
533
|
-
|
|
534
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
535
|
-
name: errorCode,
|
|
536
|
-
$metadata: deserializeMetadata(output),
|
|
537
|
-
};
|
|
538
|
-
break;
|
|
499
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
539
500
|
case "ServiceUnavailableException":
|
|
540
501
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
541
|
-
|
|
542
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
543
|
-
name: errorCode,
|
|
544
|
-
$metadata: deserializeMetadata(output),
|
|
545
|
-
};
|
|
546
|
-
break;
|
|
502
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
547
503
|
default:
|
|
548
504
|
const parsedBody = parsedOutput.body;
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
...parsedBody,
|
|
552
|
-
name: `${errorCode}`,
|
|
553
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
505
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
506
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
554
507
|
$fault: "client",
|
|
555
508
|
$metadata: deserializeMetadata(output),
|
|
556
|
-
};
|
|
509
|
+
});
|
|
510
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
557
511
|
}
|
|
558
|
-
const message = response.message || response.Message || errorCode;
|
|
559
|
-
response.message = message;
|
|
560
|
-
delete response.Message;
|
|
561
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
562
512
|
};
|
|
563
513
|
const deserializeAws_json1_1CreateExportTaskCommand = async (output, context) => {
|
|
564
514
|
if (output.statusCode >= 300) {
|
|
@@ -585,67 +535,31 @@ const deserializeAws_json1_1CreateExportTaskCommandError = async (output, contex
|
|
|
585
535
|
switch (errorCode) {
|
|
586
536
|
case "InvalidParameterException":
|
|
587
537
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
588
|
-
|
|
589
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
590
|
-
name: errorCode,
|
|
591
|
-
$metadata: deserializeMetadata(output),
|
|
592
|
-
};
|
|
593
|
-
break;
|
|
538
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
594
539
|
case "LimitExceededException":
|
|
595
540
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
596
|
-
|
|
597
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
598
|
-
name: errorCode,
|
|
599
|
-
$metadata: deserializeMetadata(output),
|
|
600
|
-
};
|
|
601
|
-
break;
|
|
541
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
602
542
|
case "OperationAbortedException":
|
|
603
543
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
604
|
-
|
|
605
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
606
|
-
name: errorCode,
|
|
607
|
-
$metadata: deserializeMetadata(output),
|
|
608
|
-
};
|
|
609
|
-
break;
|
|
544
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
610
545
|
case "ResourceAlreadyExistsException":
|
|
611
546
|
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
612
|
-
|
|
613
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
614
|
-
name: errorCode,
|
|
615
|
-
$metadata: deserializeMetadata(output),
|
|
616
|
-
};
|
|
617
|
-
break;
|
|
547
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
618
548
|
case "ResourceNotFoundException":
|
|
619
549
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
620
|
-
|
|
621
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
622
|
-
name: errorCode,
|
|
623
|
-
$metadata: deserializeMetadata(output),
|
|
624
|
-
};
|
|
625
|
-
break;
|
|
550
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
626
551
|
case "ServiceUnavailableException":
|
|
627
552
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
628
|
-
|
|
629
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
630
|
-
name: errorCode,
|
|
631
|
-
$metadata: deserializeMetadata(output),
|
|
632
|
-
};
|
|
633
|
-
break;
|
|
553
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
634
554
|
default:
|
|
635
555
|
const parsedBody = parsedOutput.body;
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
...parsedBody,
|
|
639
|
-
name: `${errorCode}`,
|
|
640
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
556
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
557
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
641
558
|
$fault: "client",
|
|
642
559
|
$metadata: deserializeMetadata(output),
|
|
643
|
-
};
|
|
560
|
+
});
|
|
561
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
644
562
|
}
|
|
645
|
-
const message = response.message || response.Message || errorCode;
|
|
646
|
-
response.message = message;
|
|
647
|
-
delete response.Message;
|
|
648
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
649
563
|
};
|
|
650
564
|
const deserializeAws_json1_1CreateLogGroupCommand = async (output, context) => {
|
|
651
565
|
if (output.statusCode >= 300) {
|
|
@@ -669,59 +583,28 @@ const deserializeAws_json1_1CreateLogGroupCommandError = async (output, context)
|
|
|
669
583
|
switch (errorCode) {
|
|
670
584
|
case "InvalidParameterException":
|
|
671
585
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
672
|
-
|
|
673
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
674
|
-
name: errorCode,
|
|
675
|
-
$metadata: deserializeMetadata(output),
|
|
676
|
-
};
|
|
677
|
-
break;
|
|
586
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
678
587
|
case "LimitExceededException":
|
|
679
588
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
680
|
-
|
|
681
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
682
|
-
name: errorCode,
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
};
|
|
685
|
-
break;
|
|
589
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
686
590
|
case "OperationAbortedException":
|
|
687
591
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
688
|
-
|
|
689
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
690
|
-
name: errorCode,
|
|
691
|
-
$metadata: deserializeMetadata(output),
|
|
692
|
-
};
|
|
693
|
-
break;
|
|
592
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
694
593
|
case "ResourceAlreadyExistsException":
|
|
695
594
|
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
696
|
-
|
|
697
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
698
|
-
name: errorCode,
|
|
699
|
-
$metadata: deserializeMetadata(output),
|
|
700
|
-
};
|
|
701
|
-
break;
|
|
595
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
702
596
|
case "ServiceUnavailableException":
|
|
703
597
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
704
|
-
|
|
705
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
706
|
-
name: errorCode,
|
|
707
|
-
$metadata: deserializeMetadata(output),
|
|
708
|
-
};
|
|
709
|
-
break;
|
|
598
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
710
599
|
default:
|
|
711
600
|
const parsedBody = parsedOutput.body;
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
...parsedBody,
|
|
715
|
-
name: `${errorCode}`,
|
|
716
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
601
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
602
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
717
603
|
$fault: "client",
|
|
718
604
|
$metadata: deserializeMetadata(output),
|
|
719
|
-
};
|
|
605
|
+
});
|
|
606
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
720
607
|
}
|
|
721
|
-
const message = response.message || response.Message || errorCode;
|
|
722
|
-
response.message = message;
|
|
723
|
-
delete response.Message;
|
|
724
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
725
608
|
};
|
|
726
609
|
const deserializeAws_json1_1CreateLogStreamCommand = async (output, context) => {
|
|
727
610
|
if (output.statusCode >= 300) {
|
|
@@ -745,51 +628,25 @@ const deserializeAws_json1_1CreateLogStreamCommandError = async (output, context
|
|
|
745
628
|
switch (errorCode) {
|
|
746
629
|
case "InvalidParameterException":
|
|
747
630
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
748
|
-
|
|
749
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
750
|
-
name: errorCode,
|
|
751
|
-
$metadata: deserializeMetadata(output),
|
|
752
|
-
};
|
|
753
|
-
break;
|
|
631
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
754
632
|
case "ResourceAlreadyExistsException":
|
|
755
633
|
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
756
|
-
|
|
757
|
-
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
758
|
-
name: errorCode,
|
|
759
|
-
$metadata: deserializeMetadata(output),
|
|
760
|
-
};
|
|
761
|
-
break;
|
|
634
|
+
throw await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context);
|
|
762
635
|
case "ResourceNotFoundException":
|
|
763
636
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
764
|
-
|
|
765
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
766
|
-
name: errorCode,
|
|
767
|
-
$metadata: deserializeMetadata(output),
|
|
768
|
-
};
|
|
769
|
-
break;
|
|
637
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
770
638
|
case "ServiceUnavailableException":
|
|
771
639
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
772
|
-
|
|
773
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
774
|
-
name: errorCode,
|
|
775
|
-
$metadata: deserializeMetadata(output),
|
|
776
|
-
};
|
|
777
|
-
break;
|
|
640
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
778
641
|
default:
|
|
779
642
|
const parsedBody = parsedOutput.body;
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
...parsedBody,
|
|
783
|
-
name: `${errorCode}`,
|
|
784
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
643
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
644
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
785
645
|
$fault: "client",
|
|
786
646
|
$metadata: deserializeMetadata(output),
|
|
787
|
-
};
|
|
647
|
+
});
|
|
648
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
788
649
|
}
|
|
789
|
-
const message = response.message || response.Message || errorCode;
|
|
790
|
-
response.message = message;
|
|
791
|
-
delete response.Message;
|
|
792
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
793
650
|
};
|
|
794
651
|
const deserializeAws_json1_1DeleteDestinationCommand = async (output, context) => {
|
|
795
652
|
if (output.statusCode >= 300) {
|
|
@@ -813,51 +670,25 @@ const deserializeAws_json1_1DeleteDestinationCommandError = async (output, conte
|
|
|
813
670
|
switch (errorCode) {
|
|
814
671
|
case "InvalidParameterException":
|
|
815
672
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
816
|
-
|
|
817
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
818
|
-
name: errorCode,
|
|
819
|
-
$metadata: deserializeMetadata(output),
|
|
820
|
-
};
|
|
821
|
-
break;
|
|
673
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
822
674
|
case "OperationAbortedException":
|
|
823
675
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
824
|
-
|
|
825
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
826
|
-
name: errorCode,
|
|
827
|
-
$metadata: deserializeMetadata(output),
|
|
828
|
-
};
|
|
829
|
-
break;
|
|
676
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
830
677
|
case "ResourceNotFoundException":
|
|
831
678
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
832
|
-
|
|
833
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
834
|
-
name: errorCode,
|
|
835
|
-
$metadata: deserializeMetadata(output),
|
|
836
|
-
};
|
|
837
|
-
break;
|
|
679
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
838
680
|
case "ServiceUnavailableException":
|
|
839
681
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
840
|
-
|
|
841
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
842
|
-
name: errorCode,
|
|
843
|
-
$metadata: deserializeMetadata(output),
|
|
844
|
-
};
|
|
845
|
-
break;
|
|
682
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
846
683
|
default:
|
|
847
684
|
const parsedBody = parsedOutput.body;
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
...parsedBody,
|
|
851
|
-
name: `${errorCode}`,
|
|
852
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
685
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
686
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
853
687
|
$fault: "client",
|
|
854
688
|
$metadata: deserializeMetadata(output),
|
|
855
|
-
};
|
|
689
|
+
});
|
|
690
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
856
691
|
}
|
|
857
|
-
const message = response.message || response.Message || errorCode;
|
|
858
|
-
response.message = message;
|
|
859
|
-
delete response.Message;
|
|
860
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
861
692
|
};
|
|
862
693
|
const deserializeAws_json1_1DeleteLogGroupCommand = async (output, context) => {
|
|
863
694
|
if (output.statusCode >= 300) {
|
|
@@ -881,51 +712,25 @@ const deserializeAws_json1_1DeleteLogGroupCommandError = async (output, context)
|
|
|
881
712
|
switch (errorCode) {
|
|
882
713
|
case "InvalidParameterException":
|
|
883
714
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
884
|
-
|
|
885
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
886
|
-
name: errorCode,
|
|
887
|
-
$metadata: deserializeMetadata(output),
|
|
888
|
-
};
|
|
889
|
-
break;
|
|
715
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
890
716
|
case "OperationAbortedException":
|
|
891
717
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
892
|
-
|
|
893
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
894
|
-
name: errorCode,
|
|
895
|
-
$metadata: deserializeMetadata(output),
|
|
896
|
-
};
|
|
897
|
-
break;
|
|
718
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
898
719
|
case "ResourceNotFoundException":
|
|
899
720
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
900
|
-
|
|
901
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
902
|
-
name: errorCode,
|
|
903
|
-
$metadata: deserializeMetadata(output),
|
|
904
|
-
};
|
|
905
|
-
break;
|
|
721
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
906
722
|
case "ServiceUnavailableException":
|
|
907
723
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
908
|
-
|
|
909
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
910
|
-
name: errorCode,
|
|
911
|
-
$metadata: deserializeMetadata(output),
|
|
912
|
-
};
|
|
913
|
-
break;
|
|
724
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
914
725
|
default:
|
|
915
726
|
const parsedBody = parsedOutput.body;
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
...parsedBody,
|
|
919
|
-
name: `${errorCode}`,
|
|
920
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
727
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
728
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
921
729
|
$fault: "client",
|
|
922
730
|
$metadata: deserializeMetadata(output),
|
|
923
|
-
};
|
|
731
|
+
});
|
|
732
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
924
733
|
}
|
|
925
|
-
const message = response.message || response.Message || errorCode;
|
|
926
|
-
response.message = message;
|
|
927
|
-
delete response.Message;
|
|
928
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
929
734
|
};
|
|
930
735
|
const deserializeAws_json1_1DeleteLogStreamCommand = async (output, context) => {
|
|
931
736
|
if (output.statusCode >= 300) {
|
|
@@ -949,51 +754,25 @@ const deserializeAws_json1_1DeleteLogStreamCommandError = async (output, context
|
|
|
949
754
|
switch (errorCode) {
|
|
950
755
|
case "InvalidParameterException":
|
|
951
756
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
952
|
-
|
|
953
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
954
|
-
name: errorCode,
|
|
955
|
-
$metadata: deserializeMetadata(output),
|
|
956
|
-
};
|
|
957
|
-
break;
|
|
757
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
958
758
|
case "OperationAbortedException":
|
|
959
759
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
960
|
-
|
|
961
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
962
|
-
name: errorCode,
|
|
963
|
-
$metadata: deserializeMetadata(output),
|
|
964
|
-
};
|
|
965
|
-
break;
|
|
760
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
966
761
|
case "ResourceNotFoundException":
|
|
967
762
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
968
|
-
|
|
969
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
970
|
-
name: errorCode,
|
|
971
|
-
$metadata: deserializeMetadata(output),
|
|
972
|
-
};
|
|
973
|
-
break;
|
|
763
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
974
764
|
case "ServiceUnavailableException":
|
|
975
765
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
976
|
-
|
|
977
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
978
|
-
name: errorCode,
|
|
979
|
-
$metadata: deserializeMetadata(output),
|
|
980
|
-
};
|
|
981
|
-
break;
|
|
766
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
982
767
|
default:
|
|
983
768
|
const parsedBody = parsedOutput.body;
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
...parsedBody,
|
|
987
|
-
name: `${errorCode}`,
|
|
988
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
769
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
770
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
989
771
|
$fault: "client",
|
|
990
772
|
$metadata: deserializeMetadata(output),
|
|
991
|
-
};
|
|
773
|
+
});
|
|
774
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
992
775
|
}
|
|
993
|
-
const message = response.message || response.Message || errorCode;
|
|
994
|
-
response.message = message;
|
|
995
|
-
delete response.Message;
|
|
996
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
997
776
|
};
|
|
998
777
|
const deserializeAws_json1_1DeleteMetricFilterCommand = async (output, context) => {
|
|
999
778
|
if (output.statusCode >= 300) {
|
|
@@ -1017,51 +796,25 @@ const deserializeAws_json1_1DeleteMetricFilterCommandError = async (output, cont
|
|
|
1017
796
|
switch (errorCode) {
|
|
1018
797
|
case "InvalidParameterException":
|
|
1019
798
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1020
|
-
|
|
1021
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1022
|
-
name: errorCode,
|
|
1023
|
-
$metadata: deserializeMetadata(output),
|
|
1024
|
-
};
|
|
1025
|
-
break;
|
|
799
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1026
800
|
case "OperationAbortedException":
|
|
1027
801
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1028
|
-
|
|
1029
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
1030
|
-
name: errorCode,
|
|
1031
|
-
$metadata: deserializeMetadata(output),
|
|
1032
|
-
};
|
|
1033
|
-
break;
|
|
802
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
1034
803
|
case "ResourceNotFoundException":
|
|
1035
804
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1036
|
-
|
|
1037
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1038
|
-
name: errorCode,
|
|
1039
|
-
$metadata: deserializeMetadata(output),
|
|
1040
|
-
};
|
|
1041
|
-
break;
|
|
805
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1042
806
|
case "ServiceUnavailableException":
|
|
1043
807
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1044
|
-
|
|
1045
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1046
|
-
name: errorCode,
|
|
1047
|
-
$metadata: deserializeMetadata(output),
|
|
1048
|
-
};
|
|
1049
|
-
break;
|
|
808
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1050
809
|
default:
|
|
1051
810
|
const parsedBody = parsedOutput.body;
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
...parsedBody,
|
|
1055
|
-
name: `${errorCode}`,
|
|
1056
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
811
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
812
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1057
813
|
$fault: "client",
|
|
1058
814
|
$metadata: deserializeMetadata(output),
|
|
1059
|
-
};
|
|
815
|
+
});
|
|
816
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1060
817
|
}
|
|
1061
|
-
const message = response.message || response.Message || errorCode;
|
|
1062
|
-
response.message = message;
|
|
1063
|
-
delete response.Message;
|
|
1064
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1065
818
|
};
|
|
1066
819
|
const deserializeAws_json1_1DeleteQueryDefinitionCommand = async (output, context) => {
|
|
1067
820
|
if (output.statusCode >= 300) {
|
|
@@ -1088,43 +841,22 @@ const deserializeAws_json1_1DeleteQueryDefinitionCommandError = async (output, c
|
|
|
1088
841
|
switch (errorCode) {
|
|
1089
842
|
case "InvalidParameterException":
|
|
1090
843
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1091
|
-
|
|
1092
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1093
|
-
name: errorCode,
|
|
1094
|
-
$metadata: deserializeMetadata(output),
|
|
1095
|
-
};
|
|
1096
|
-
break;
|
|
844
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1097
845
|
case "ResourceNotFoundException":
|
|
1098
846
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1099
|
-
|
|
1100
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1101
|
-
name: errorCode,
|
|
1102
|
-
$metadata: deserializeMetadata(output),
|
|
1103
|
-
};
|
|
1104
|
-
break;
|
|
847
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1105
848
|
case "ServiceUnavailableException":
|
|
1106
849
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1107
|
-
|
|
1108
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1109
|
-
name: errorCode,
|
|
1110
|
-
$metadata: deserializeMetadata(output),
|
|
1111
|
-
};
|
|
1112
|
-
break;
|
|
850
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1113
851
|
default:
|
|
1114
852
|
const parsedBody = parsedOutput.body;
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
...parsedBody,
|
|
1118
|
-
name: `${errorCode}`,
|
|
1119
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
853
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
854
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1120
855
|
$fault: "client",
|
|
1121
856
|
$metadata: deserializeMetadata(output),
|
|
1122
|
-
};
|
|
857
|
+
});
|
|
858
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1123
859
|
}
|
|
1124
|
-
const message = response.message || response.Message || errorCode;
|
|
1125
|
-
response.message = message;
|
|
1126
|
-
delete response.Message;
|
|
1127
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1128
860
|
};
|
|
1129
861
|
const deserializeAws_json1_1DeleteResourcePolicyCommand = async (output, context) => {
|
|
1130
862
|
if (output.statusCode >= 300) {
|
|
@@ -1148,43 +880,22 @@ const deserializeAws_json1_1DeleteResourcePolicyCommandError = async (output, co
|
|
|
1148
880
|
switch (errorCode) {
|
|
1149
881
|
case "InvalidParameterException":
|
|
1150
882
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1151
|
-
|
|
1152
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1153
|
-
name: errorCode,
|
|
1154
|
-
$metadata: deserializeMetadata(output),
|
|
1155
|
-
};
|
|
1156
|
-
break;
|
|
883
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1157
884
|
case "ResourceNotFoundException":
|
|
1158
885
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1159
|
-
|
|
1160
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1161
|
-
name: errorCode,
|
|
1162
|
-
$metadata: deserializeMetadata(output),
|
|
1163
|
-
};
|
|
1164
|
-
break;
|
|
886
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1165
887
|
case "ServiceUnavailableException":
|
|
1166
888
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1167
|
-
|
|
1168
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1169
|
-
name: errorCode,
|
|
1170
|
-
$metadata: deserializeMetadata(output),
|
|
1171
|
-
};
|
|
1172
|
-
break;
|
|
889
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1173
890
|
default:
|
|
1174
891
|
const parsedBody = parsedOutput.body;
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
...parsedBody,
|
|
1178
|
-
name: `${errorCode}`,
|
|
1179
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
892
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
893
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1180
894
|
$fault: "client",
|
|
1181
895
|
$metadata: deserializeMetadata(output),
|
|
1182
|
-
};
|
|
896
|
+
});
|
|
897
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1183
898
|
}
|
|
1184
|
-
const message = response.message || response.Message || errorCode;
|
|
1185
|
-
response.message = message;
|
|
1186
|
-
delete response.Message;
|
|
1187
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1188
899
|
};
|
|
1189
900
|
const deserializeAws_json1_1DeleteRetentionPolicyCommand = async (output, context) => {
|
|
1190
901
|
if (output.statusCode >= 300) {
|
|
@@ -1208,51 +919,25 @@ const deserializeAws_json1_1DeleteRetentionPolicyCommandError = async (output, c
|
|
|
1208
919
|
switch (errorCode) {
|
|
1209
920
|
case "InvalidParameterException":
|
|
1210
921
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1211
|
-
|
|
1212
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1213
|
-
name: errorCode,
|
|
1214
|
-
$metadata: deserializeMetadata(output),
|
|
1215
|
-
};
|
|
1216
|
-
break;
|
|
922
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1217
923
|
case "OperationAbortedException":
|
|
1218
924
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1219
|
-
|
|
1220
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
1221
|
-
name: errorCode,
|
|
1222
|
-
$metadata: deserializeMetadata(output),
|
|
1223
|
-
};
|
|
1224
|
-
break;
|
|
925
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
1225
926
|
case "ResourceNotFoundException":
|
|
1226
927
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1227
|
-
|
|
1228
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1229
|
-
name: errorCode,
|
|
1230
|
-
$metadata: deserializeMetadata(output),
|
|
1231
|
-
};
|
|
1232
|
-
break;
|
|
928
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1233
929
|
case "ServiceUnavailableException":
|
|
1234
930
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1235
|
-
|
|
1236
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1237
|
-
name: errorCode,
|
|
1238
|
-
$metadata: deserializeMetadata(output),
|
|
1239
|
-
};
|
|
1240
|
-
break;
|
|
931
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1241
932
|
default:
|
|
1242
933
|
const parsedBody = parsedOutput.body;
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
...parsedBody,
|
|
1246
|
-
name: `${errorCode}`,
|
|
1247
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
934
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
935
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1248
936
|
$fault: "client",
|
|
1249
937
|
$metadata: deserializeMetadata(output),
|
|
1250
|
-
};
|
|
938
|
+
});
|
|
939
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1251
940
|
}
|
|
1252
|
-
const message = response.message || response.Message || errorCode;
|
|
1253
|
-
response.message = message;
|
|
1254
|
-
delete response.Message;
|
|
1255
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1256
941
|
};
|
|
1257
942
|
const deserializeAws_json1_1DeleteSubscriptionFilterCommand = async (output, context) => {
|
|
1258
943
|
if (output.statusCode >= 300) {
|
|
@@ -1276,51 +961,25 @@ const deserializeAws_json1_1DeleteSubscriptionFilterCommandError = async (output
|
|
|
1276
961
|
switch (errorCode) {
|
|
1277
962
|
case "InvalidParameterException":
|
|
1278
963
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1279
|
-
|
|
1280
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1281
|
-
name: errorCode,
|
|
1282
|
-
$metadata: deserializeMetadata(output),
|
|
1283
|
-
};
|
|
1284
|
-
break;
|
|
964
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1285
965
|
case "OperationAbortedException":
|
|
1286
966
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1287
|
-
|
|
1288
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
1289
|
-
name: errorCode,
|
|
1290
|
-
$metadata: deserializeMetadata(output),
|
|
1291
|
-
};
|
|
1292
|
-
break;
|
|
967
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
1293
968
|
case "ResourceNotFoundException":
|
|
1294
969
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1295
|
-
|
|
1296
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1297
|
-
name: errorCode,
|
|
1298
|
-
$metadata: deserializeMetadata(output),
|
|
1299
|
-
};
|
|
1300
|
-
break;
|
|
970
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1301
971
|
case "ServiceUnavailableException":
|
|
1302
972
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1303
|
-
|
|
1304
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1305
|
-
name: errorCode,
|
|
1306
|
-
$metadata: deserializeMetadata(output),
|
|
1307
|
-
};
|
|
1308
|
-
break;
|
|
973
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1309
974
|
default:
|
|
1310
975
|
const parsedBody = parsedOutput.body;
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
...parsedBody,
|
|
1314
|
-
name: `${errorCode}`,
|
|
1315
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
976
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
977
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1316
978
|
$fault: "client",
|
|
1317
979
|
$metadata: deserializeMetadata(output),
|
|
1318
|
-
};
|
|
980
|
+
});
|
|
981
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1319
982
|
}
|
|
1320
|
-
const message = response.message || response.Message || errorCode;
|
|
1321
|
-
response.message = message;
|
|
1322
|
-
delete response.Message;
|
|
1323
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1324
983
|
};
|
|
1325
984
|
const deserializeAws_json1_1DescribeDestinationsCommand = async (output, context) => {
|
|
1326
985
|
if (output.statusCode >= 300) {
|
|
@@ -1347,35 +1006,19 @@ const deserializeAws_json1_1DescribeDestinationsCommandError = async (output, co
|
|
|
1347
1006
|
switch (errorCode) {
|
|
1348
1007
|
case "InvalidParameterException":
|
|
1349
1008
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1350
|
-
|
|
1351
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1352
|
-
name: errorCode,
|
|
1353
|
-
$metadata: deserializeMetadata(output),
|
|
1354
|
-
};
|
|
1355
|
-
break;
|
|
1009
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1356
1010
|
case "ServiceUnavailableException":
|
|
1357
1011
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1358
|
-
|
|
1359
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1360
|
-
name: errorCode,
|
|
1361
|
-
$metadata: deserializeMetadata(output),
|
|
1362
|
-
};
|
|
1363
|
-
break;
|
|
1012
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1364
1013
|
default:
|
|
1365
1014
|
const parsedBody = parsedOutput.body;
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
...parsedBody,
|
|
1369
|
-
name: `${errorCode}`,
|
|
1370
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1015
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1016
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1371
1017
|
$fault: "client",
|
|
1372
1018
|
$metadata: deserializeMetadata(output),
|
|
1373
|
-
};
|
|
1019
|
+
});
|
|
1020
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1374
1021
|
}
|
|
1375
|
-
const message = response.message || response.Message || errorCode;
|
|
1376
|
-
response.message = message;
|
|
1377
|
-
delete response.Message;
|
|
1378
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1379
1022
|
};
|
|
1380
1023
|
const deserializeAws_json1_1DescribeExportTasksCommand = async (output, context) => {
|
|
1381
1024
|
if (output.statusCode >= 300) {
|
|
@@ -1402,35 +1045,19 @@ const deserializeAws_json1_1DescribeExportTasksCommandError = async (output, con
|
|
|
1402
1045
|
switch (errorCode) {
|
|
1403
1046
|
case "InvalidParameterException":
|
|
1404
1047
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1405
|
-
|
|
1406
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1407
|
-
name: errorCode,
|
|
1408
|
-
$metadata: deserializeMetadata(output),
|
|
1409
|
-
};
|
|
1410
|
-
break;
|
|
1048
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1411
1049
|
case "ServiceUnavailableException":
|
|
1412
1050
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1413
|
-
|
|
1414
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1415
|
-
name: errorCode,
|
|
1416
|
-
$metadata: deserializeMetadata(output),
|
|
1417
|
-
};
|
|
1418
|
-
break;
|
|
1051
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1419
1052
|
default:
|
|
1420
1053
|
const parsedBody = parsedOutput.body;
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
...parsedBody,
|
|
1424
|
-
name: `${errorCode}`,
|
|
1425
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1054
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1055
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1426
1056
|
$fault: "client",
|
|
1427
1057
|
$metadata: deserializeMetadata(output),
|
|
1428
|
-
};
|
|
1058
|
+
});
|
|
1059
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1429
1060
|
}
|
|
1430
|
-
const message = response.message || response.Message || errorCode;
|
|
1431
|
-
response.message = message;
|
|
1432
|
-
delete response.Message;
|
|
1433
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1434
1061
|
};
|
|
1435
1062
|
const deserializeAws_json1_1DescribeLogGroupsCommand = async (output, context) => {
|
|
1436
1063
|
if (output.statusCode >= 300) {
|
|
@@ -1457,35 +1084,19 @@ const deserializeAws_json1_1DescribeLogGroupsCommandError = async (output, conte
|
|
|
1457
1084
|
switch (errorCode) {
|
|
1458
1085
|
case "InvalidParameterException":
|
|
1459
1086
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1460
|
-
|
|
1461
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1462
|
-
name: errorCode,
|
|
1463
|
-
$metadata: deserializeMetadata(output),
|
|
1464
|
-
};
|
|
1465
|
-
break;
|
|
1087
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1466
1088
|
case "ServiceUnavailableException":
|
|
1467
1089
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1468
|
-
|
|
1469
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1470
|
-
name: errorCode,
|
|
1471
|
-
$metadata: deserializeMetadata(output),
|
|
1472
|
-
};
|
|
1473
|
-
break;
|
|
1090
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1474
1091
|
default:
|
|
1475
1092
|
const parsedBody = parsedOutput.body;
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
...parsedBody,
|
|
1479
|
-
name: `${errorCode}`,
|
|
1480
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1093
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1094
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1481
1095
|
$fault: "client",
|
|
1482
1096
|
$metadata: deserializeMetadata(output),
|
|
1483
|
-
};
|
|
1097
|
+
});
|
|
1098
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1484
1099
|
}
|
|
1485
|
-
const message = response.message || response.Message || errorCode;
|
|
1486
|
-
response.message = message;
|
|
1487
|
-
delete response.Message;
|
|
1488
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1489
1100
|
};
|
|
1490
1101
|
const deserializeAws_json1_1DescribeLogStreamsCommand = async (output, context) => {
|
|
1491
1102
|
if (output.statusCode >= 300) {
|
|
@@ -1512,43 +1123,22 @@ const deserializeAws_json1_1DescribeLogStreamsCommandError = async (output, cont
|
|
|
1512
1123
|
switch (errorCode) {
|
|
1513
1124
|
case "InvalidParameterException":
|
|
1514
1125
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1515
|
-
|
|
1516
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1517
|
-
name: errorCode,
|
|
1518
|
-
$metadata: deserializeMetadata(output),
|
|
1519
|
-
};
|
|
1520
|
-
break;
|
|
1126
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1521
1127
|
case "ResourceNotFoundException":
|
|
1522
1128
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1523
|
-
|
|
1524
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1525
|
-
name: errorCode,
|
|
1526
|
-
$metadata: deserializeMetadata(output),
|
|
1527
|
-
};
|
|
1528
|
-
break;
|
|
1129
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1529
1130
|
case "ServiceUnavailableException":
|
|
1530
1131
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1531
|
-
|
|
1532
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1533
|
-
name: errorCode,
|
|
1534
|
-
$metadata: deserializeMetadata(output),
|
|
1535
|
-
};
|
|
1536
|
-
break;
|
|
1132
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1537
1133
|
default:
|
|
1538
1134
|
const parsedBody = parsedOutput.body;
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
...parsedBody,
|
|
1542
|
-
name: `${errorCode}`,
|
|
1543
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1135
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1136
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1544
1137
|
$fault: "client",
|
|
1545
1138
|
$metadata: deserializeMetadata(output),
|
|
1546
|
-
};
|
|
1139
|
+
});
|
|
1140
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1547
1141
|
}
|
|
1548
|
-
const message = response.message || response.Message || errorCode;
|
|
1549
|
-
response.message = message;
|
|
1550
|
-
delete response.Message;
|
|
1551
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1552
1142
|
};
|
|
1553
1143
|
const deserializeAws_json1_1DescribeMetricFiltersCommand = async (output, context) => {
|
|
1554
1144
|
if (output.statusCode >= 300) {
|
|
@@ -1575,43 +1165,22 @@ const deserializeAws_json1_1DescribeMetricFiltersCommandError = async (output, c
|
|
|
1575
1165
|
switch (errorCode) {
|
|
1576
1166
|
case "InvalidParameterException":
|
|
1577
1167
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1578
|
-
|
|
1579
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1580
|
-
name: errorCode,
|
|
1581
|
-
$metadata: deserializeMetadata(output),
|
|
1582
|
-
};
|
|
1583
|
-
break;
|
|
1168
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1584
1169
|
case "ResourceNotFoundException":
|
|
1585
1170
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1586
|
-
|
|
1587
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1588
|
-
name: errorCode,
|
|
1589
|
-
$metadata: deserializeMetadata(output),
|
|
1590
|
-
};
|
|
1591
|
-
break;
|
|
1171
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1592
1172
|
case "ServiceUnavailableException":
|
|
1593
1173
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1594
|
-
|
|
1595
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1596
|
-
name: errorCode,
|
|
1597
|
-
$metadata: deserializeMetadata(output),
|
|
1598
|
-
};
|
|
1599
|
-
break;
|
|
1174
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1600
1175
|
default:
|
|
1601
1176
|
const parsedBody = parsedOutput.body;
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
...parsedBody,
|
|
1605
|
-
name: `${errorCode}`,
|
|
1606
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1177
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1178
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1607
1179
|
$fault: "client",
|
|
1608
1180
|
$metadata: deserializeMetadata(output),
|
|
1609
|
-
};
|
|
1181
|
+
});
|
|
1182
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1610
1183
|
}
|
|
1611
|
-
const message = response.message || response.Message || errorCode;
|
|
1612
|
-
response.message = message;
|
|
1613
|
-
delete response.Message;
|
|
1614
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1615
1184
|
};
|
|
1616
1185
|
const deserializeAws_json1_1DescribeQueriesCommand = async (output, context) => {
|
|
1617
1186
|
if (output.statusCode >= 300) {
|
|
@@ -1638,43 +1207,22 @@ const deserializeAws_json1_1DescribeQueriesCommandError = async (output, context
|
|
|
1638
1207
|
switch (errorCode) {
|
|
1639
1208
|
case "InvalidParameterException":
|
|
1640
1209
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1641
|
-
|
|
1642
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1643
|
-
name: errorCode,
|
|
1644
|
-
$metadata: deserializeMetadata(output),
|
|
1645
|
-
};
|
|
1646
|
-
break;
|
|
1210
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1647
1211
|
case "ResourceNotFoundException":
|
|
1648
1212
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1649
|
-
|
|
1650
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1651
|
-
name: errorCode,
|
|
1652
|
-
$metadata: deserializeMetadata(output),
|
|
1653
|
-
};
|
|
1654
|
-
break;
|
|
1213
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1655
1214
|
case "ServiceUnavailableException":
|
|
1656
1215
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1657
|
-
|
|
1658
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1659
|
-
name: errorCode,
|
|
1660
|
-
$metadata: deserializeMetadata(output),
|
|
1661
|
-
};
|
|
1662
|
-
break;
|
|
1216
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1663
1217
|
default:
|
|
1664
1218
|
const parsedBody = parsedOutput.body;
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
...parsedBody,
|
|
1668
|
-
name: `${errorCode}`,
|
|
1669
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1219
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1220
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1670
1221
|
$fault: "client",
|
|
1671
1222
|
$metadata: deserializeMetadata(output),
|
|
1672
|
-
};
|
|
1223
|
+
});
|
|
1224
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1673
1225
|
}
|
|
1674
|
-
const message = response.message || response.Message || errorCode;
|
|
1675
|
-
response.message = message;
|
|
1676
|
-
delete response.Message;
|
|
1677
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1678
1226
|
};
|
|
1679
1227
|
const deserializeAws_json1_1DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
1680
1228
|
if (output.statusCode >= 300) {
|
|
@@ -1701,35 +1249,19 @@ const deserializeAws_json1_1DescribeQueryDefinitionsCommandError = async (output
|
|
|
1701
1249
|
switch (errorCode) {
|
|
1702
1250
|
case "InvalidParameterException":
|
|
1703
1251
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1704
|
-
|
|
1705
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1706
|
-
name: errorCode,
|
|
1707
|
-
$metadata: deserializeMetadata(output),
|
|
1708
|
-
};
|
|
1709
|
-
break;
|
|
1252
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1710
1253
|
case "ServiceUnavailableException":
|
|
1711
1254
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1712
|
-
|
|
1713
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1714
|
-
name: errorCode,
|
|
1715
|
-
$metadata: deserializeMetadata(output),
|
|
1716
|
-
};
|
|
1717
|
-
break;
|
|
1255
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1718
1256
|
default:
|
|
1719
1257
|
const parsedBody = parsedOutput.body;
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
...parsedBody,
|
|
1723
|
-
name: `${errorCode}`,
|
|
1724
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1258
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1259
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1725
1260
|
$fault: "client",
|
|
1726
1261
|
$metadata: deserializeMetadata(output),
|
|
1727
|
-
};
|
|
1262
|
+
});
|
|
1263
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1728
1264
|
}
|
|
1729
|
-
const message = response.message || response.Message || errorCode;
|
|
1730
|
-
response.message = message;
|
|
1731
|
-
delete response.Message;
|
|
1732
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1733
1265
|
};
|
|
1734
1266
|
const deserializeAws_json1_1DescribeResourcePoliciesCommand = async (output, context) => {
|
|
1735
1267
|
if (output.statusCode >= 300) {
|
|
@@ -1756,35 +1288,19 @@ const deserializeAws_json1_1DescribeResourcePoliciesCommandError = async (output
|
|
|
1756
1288
|
switch (errorCode) {
|
|
1757
1289
|
case "InvalidParameterException":
|
|
1758
1290
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1759
|
-
|
|
1760
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1761
|
-
name: errorCode,
|
|
1762
|
-
$metadata: deserializeMetadata(output),
|
|
1763
|
-
};
|
|
1764
|
-
break;
|
|
1291
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1765
1292
|
case "ServiceUnavailableException":
|
|
1766
1293
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1767
|
-
|
|
1768
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1769
|
-
name: errorCode,
|
|
1770
|
-
$metadata: deserializeMetadata(output),
|
|
1771
|
-
};
|
|
1772
|
-
break;
|
|
1294
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1773
1295
|
default:
|
|
1774
1296
|
const parsedBody = parsedOutput.body;
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
...parsedBody,
|
|
1778
|
-
name: `${errorCode}`,
|
|
1779
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1297
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1298
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1780
1299
|
$fault: "client",
|
|
1781
1300
|
$metadata: deserializeMetadata(output),
|
|
1782
|
-
};
|
|
1301
|
+
});
|
|
1302
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1783
1303
|
}
|
|
1784
|
-
const message = response.message || response.Message || errorCode;
|
|
1785
|
-
response.message = message;
|
|
1786
|
-
delete response.Message;
|
|
1787
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1788
1304
|
};
|
|
1789
1305
|
const deserializeAws_json1_1DescribeSubscriptionFiltersCommand = async (output, context) => {
|
|
1790
1306
|
if (output.statusCode >= 300) {
|
|
@@ -1811,43 +1327,22 @@ const deserializeAws_json1_1DescribeSubscriptionFiltersCommandError = async (out
|
|
|
1811
1327
|
switch (errorCode) {
|
|
1812
1328
|
case "InvalidParameterException":
|
|
1813
1329
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1814
|
-
|
|
1815
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1816
|
-
name: errorCode,
|
|
1817
|
-
$metadata: deserializeMetadata(output),
|
|
1818
|
-
};
|
|
1819
|
-
break;
|
|
1330
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1820
1331
|
case "ResourceNotFoundException":
|
|
1821
1332
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1822
|
-
|
|
1823
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1824
|
-
name: errorCode,
|
|
1825
|
-
$metadata: deserializeMetadata(output),
|
|
1826
|
-
};
|
|
1827
|
-
break;
|
|
1333
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1828
1334
|
case "ServiceUnavailableException":
|
|
1829
1335
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1830
|
-
|
|
1831
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1832
|
-
name: errorCode,
|
|
1833
|
-
$metadata: deserializeMetadata(output),
|
|
1834
|
-
};
|
|
1835
|
-
break;
|
|
1336
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1836
1337
|
default:
|
|
1837
1338
|
const parsedBody = parsedOutput.body;
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
...parsedBody,
|
|
1841
|
-
name: `${errorCode}`,
|
|
1842
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1339
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1340
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1843
1341
|
$fault: "client",
|
|
1844
1342
|
$metadata: deserializeMetadata(output),
|
|
1845
|
-
};
|
|
1343
|
+
});
|
|
1344
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1846
1345
|
}
|
|
1847
|
-
const message = response.message || response.Message || errorCode;
|
|
1848
|
-
response.message = message;
|
|
1849
|
-
delete response.Message;
|
|
1850
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1851
1346
|
};
|
|
1852
1347
|
const deserializeAws_json1_1DisassociateKmsKeyCommand = async (output, context) => {
|
|
1853
1348
|
if (output.statusCode >= 300) {
|
|
@@ -1871,51 +1366,25 @@ const deserializeAws_json1_1DisassociateKmsKeyCommandError = async (output, cont
|
|
|
1871
1366
|
switch (errorCode) {
|
|
1872
1367
|
case "InvalidParameterException":
|
|
1873
1368
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1874
|
-
|
|
1875
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1876
|
-
name: errorCode,
|
|
1877
|
-
$metadata: deserializeMetadata(output),
|
|
1878
|
-
};
|
|
1879
|
-
break;
|
|
1369
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1880
1370
|
case "OperationAbortedException":
|
|
1881
1371
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1882
|
-
|
|
1883
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
1884
|
-
name: errorCode,
|
|
1885
|
-
$metadata: deserializeMetadata(output),
|
|
1886
|
-
};
|
|
1887
|
-
break;
|
|
1372
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
1888
1373
|
case "ResourceNotFoundException":
|
|
1889
1374
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1890
|
-
|
|
1891
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1892
|
-
name: errorCode,
|
|
1893
|
-
$metadata: deserializeMetadata(output),
|
|
1894
|
-
};
|
|
1895
|
-
break;
|
|
1375
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1896
1376
|
case "ServiceUnavailableException":
|
|
1897
1377
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1898
|
-
|
|
1899
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1900
|
-
name: errorCode,
|
|
1901
|
-
$metadata: deserializeMetadata(output),
|
|
1902
|
-
};
|
|
1903
|
-
break;
|
|
1378
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1904
1379
|
default:
|
|
1905
1380
|
const parsedBody = parsedOutput.body;
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
...parsedBody,
|
|
1909
|
-
name: `${errorCode}`,
|
|
1910
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1381
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1382
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1911
1383
|
$fault: "client",
|
|
1912
1384
|
$metadata: deserializeMetadata(output),
|
|
1913
|
-
};
|
|
1385
|
+
});
|
|
1386
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1914
1387
|
}
|
|
1915
|
-
const message = response.message || response.Message || errorCode;
|
|
1916
|
-
response.message = message;
|
|
1917
|
-
delete response.Message;
|
|
1918
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1919
1388
|
};
|
|
1920
1389
|
const deserializeAws_json1_1FilterLogEventsCommand = async (output, context) => {
|
|
1921
1390
|
if (output.statusCode >= 300) {
|
|
@@ -1942,43 +1411,22 @@ const deserializeAws_json1_1FilterLogEventsCommandError = async (output, context
|
|
|
1942
1411
|
switch (errorCode) {
|
|
1943
1412
|
case "InvalidParameterException":
|
|
1944
1413
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1945
|
-
|
|
1946
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
1947
|
-
name: errorCode,
|
|
1948
|
-
$metadata: deserializeMetadata(output),
|
|
1949
|
-
};
|
|
1950
|
-
break;
|
|
1414
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
1951
1415
|
case "ResourceNotFoundException":
|
|
1952
1416
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1953
|
-
|
|
1954
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1955
|
-
name: errorCode,
|
|
1956
|
-
$metadata: deserializeMetadata(output),
|
|
1957
|
-
};
|
|
1958
|
-
break;
|
|
1417
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1959
1418
|
case "ServiceUnavailableException":
|
|
1960
1419
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1961
|
-
|
|
1962
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
1963
|
-
name: errorCode,
|
|
1964
|
-
$metadata: deserializeMetadata(output),
|
|
1965
|
-
};
|
|
1966
|
-
break;
|
|
1420
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
1967
1421
|
default:
|
|
1968
1422
|
const parsedBody = parsedOutput.body;
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
...parsedBody,
|
|
1972
|
-
name: `${errorCode}`,
|
|
1973
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1423
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1424
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1974
1425
|
$fault: "client",
|
|
1975
1426
|
$metadata: deserializeMetadata(output),
|
|
1976
|
-
};
|
|
1427
|
+
});
|
|
1428
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1977
1429
|
}
|
|
1978
|
-
const message = response.message || response.Message || errorCode;
|
|
1979
|
-
response.message = message;
|
|
1980
|
-
delete response.Message;
|
|
1981
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
1982
1430
|
};
|
|
1983
1431
|
const deserializeAws_json1_1GetLogEventsCommand = async (output, context) => {
|
|
1984
1432
|
if (output.statusCode >= 300) {
|
|
@@ -2005,43 +1453,22 @@ const deserializeAws_json1_1GetLogEventsCommandError = async (output, context) =
|
|
|
2005
1453
|
switch (errorCode) {
|
|
2006
1454
|
case "InvalidParameterException":
|
|
2007
1455
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2008
|
-
|
|
2009
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2010
|
-
name: errorCode,
|
|
2011
|
-
$metadata: deserializeMetadata(output),
|
|
2012
|
-
};
|
|
2013
|
-
break;
|
|
1456
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2014
1457
|
case "ResourceNotFoundException":
|
|
2015
1458
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2016
|
-
|
|
2017
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2018
|
-
name: errorCode,
|
|
2019
|
-
$metadata: deserializeMetadata(output),
|
|
2020
|
-
};
|
|
2021
|
-
break;
|
|
1459
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2022
1460
|
case "ServiceUnavailableException":
|
|
2023
1461
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2024
|
-
|
|
2025
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2026
|
-
name: errorCode,
|
|
2027
|
-
$metadata: deserializeMetadata(output),
|
|
2028
|
-
};
|
|
2029
|
-
break;
|
|
1462
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2030
1463
|
default:
|
|
2031
1464
|
const parsedBody = parsedOutput.body;
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
...parsedBody,
|
|
2035
|
-
name: `${errorCode}`,
|
|
2036
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1465
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1466
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2037
1467
|
$fault: "client",
|
|
2038
1468
|
$metadata: deserializeMetadata(output),
|
|
2039
|
-
};
|
|
1469
|
+
});
|
|
1470
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2040
1471
|
}
|
|
2041
|
-
const message = response.message || response.Message || errorCode;
|
|
2042
|
-
response.message = message;
|
|
2043
|
-
delete response.Message;
|
|
2044
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2045
1472
|
};
|
|
2046
1473
|
const deserializeAws_json1_1GetLogGroupFieldsCommand = async (output, context) => {
|
|
2047
1474
|
if (output.statusCode >= 300) {
|
|
@@ -2068,51 +1495,25 @@ const deserializeAws_json1_1GetLogGroupFieldsCommandError = async (output, conte
|
|
|
2068
1495
|
switch (errorCode) {
|
|
2069
1496
|
case "InvalidParameterException":
|
|
2070
1497
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2071
|
-
|
|
2072
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2073
|
-
name: errorCode,
|
|
2074
|
-
$metadata: deserializeMetadata(output),
|
|
2075
|
-
};
|
|
2076
|
-
break;
|
|
1498
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2077
1499
|
case "LimitExceededException":
|
|
2078
1500
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2079
|
-
|
|
2080
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2081
|
-
name: errorCode,
|
|
2082
|
-
$metadata: deserializeMetadata(output),
|
|
2083
|
-
};
|
|
2084
|
-
break;
|
|
1501
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2085
1502
|
case "ResourceNotFoundException":
|
|
2086
1503
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2087
|
-
|
|
2088
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2089
|
-
name: errorCode,
|
|
2090
|
-
$metadata: deserializeMetadata(output),
|
|
2091
|
-
};
|
|
2092
|
-
break;
|
|
1504
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2093
1505
|
case "ServiceUnavailableException":
|
|
2094
1506
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2095
|
-
|
|
2096
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2097
|
-
name: errorCode,
|
|
2098
|
-
$metadata: deserializeMetadata(output),
|
|
2099
|
-
};
|
|
2100
|
-
break;
|
|
1507
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2101
1508
|
default:
|
|
2102
1509
|
const parsedBody = parsedOutput.body;
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
...parsedBody,
|
|
2106
|
-
name: `${errorCode}`,
|
|
2107
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1510
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1511
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2108
1512
|
$fault: "client",
|
|
2109
1513
|
$metadata: deserializeMetadata(output),
|
|
2110
|
-
};
|
|
1514
|
+
});
|
|
1515
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2111
1516
|
}
|
|
2112
|
-
const message = response.message || response.Message || errorCode;
|
|
2113
|
-
response.message = message;
|
|
2114
|
-
delete response.Message;
|
|
2115
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2116
1517
|
};
|
|
2117
1518
|
const deserializeAws_json1_1GetLogRecordCommand = async (output, context) => {
|
|
2118
1519
|
if (output.statusCode >= 300) {
|
|
@@ -2139,51 +1540,25 @@ const deserializeAws_json1_1GetLogRecordCommandError = async (output, context) =
|
|
|
2139
1540
|
switch (errorCode) {
|
|
2140
1541
|
case "InvalidParameterException":
|
|
2141
1542
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2142
|
-
|
|
2143
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2144
|
-
name: errorCode,
|
|
2145
|
-
$metadata: deserializeMetadata(output),
|
|
2146
|
-
};
|
|
2147
|
-
break;
|
|
1543
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2148
1544
|
case "LimitExceededException":
|
|
2149
1545
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2150
|
-
|
|
2151
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2152
|
-
name: errorCode,
|
|
2153
|
-
$metadata: deserializeMetadata(output),
|
|
2154
|
-
};
|
|
2155
|
-
break;
|
|
1546
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2156
1547
|
case "ResourceNotFoundException":
|
|
2157
1548
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2158
|
-
|
|
2159
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2160
|
-
name: errorCode,
|
|
2161
|
-
$metadata: deserializeMetadata(output),
|
|
2162
|
-
};
|
|
2163
|
-
break;
|
|
1549
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2164
1550
|
case "ServiceUnavailableException":
|
|
2165
1551
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2166
|
-
|
|
2167
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2168
|
-
name: errorCode,
|
|
2169
|
-
$metadata: deserializeMetadata(output),
|
|
2170
|
-
};
|
|
2171
|
-
break;
|
|
1552
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2172
1553
|
default:
|
|
2173
1554
|
const parsedBody = parsedOutput.body;
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
...parsedBody,
|
|
2177
|
-
name: `${errorCode}`,
|
|
2178
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1555
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1556
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2179
1557
|
$fault: "client",
|
|
2180
1558
|
$metadata: deserializeMetadata(output),
|
|
2181
|
-
};
|
|
1559
|
+
});
|
|
1560
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2182
1561
|
}
|
|
2183
|
-
const message = response.message || response.Message || errorCode;
|
|
2184
|
-
response.message = message;
|
|
2185
|
-
delete response.Message;
|
|
2186
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2187
1562
|
};
|
|
2188
1563
|
const deserializeAws_json1_1GetQueryResultsCommand = async (output, context) => {
|
|
2189
1564
|
if (output.statusCode >= 300) {
|
|
@@ -2210,43 +1585,22 @@ const deserializeAws_json1_1GetQueryResultsCommandError = async (output, context
|
|
|
2210
1585
|
switch (errorCode) {
|
|
2211
1586
|
case "InvalidParameterException":
|
|
2212
1587
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2213
|
-
|
|
2214
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2215
|
-
name: errorCode,
|
|
2216
|
-
$metadata: deserializeMetadata(output),
|
|
2217
|
-
};
|
|
2218
|
-
break;
|
|
1588
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2219
1589
|
case "ResourceNotFoundException":
|
|
2220
1590
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2221
|
-
|
|
2222
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2223
|
-
name: errorCode,
|
|
2224
|
-
$metadata: deserializeMetadata(output),
|
|
2225
|
-
};
|
|
2226
|
-
break;
|
|
1591
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2227
1592
|
case "ServiceUnavailableException":
|
|
2228
1593
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2229
|
-
|
|
2230
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2231
|
-
name: errorCode,
|
|
2232
|
-
$metadata: deserializeMetadata(output),
|
|
2233
|
-
};
|
|
2234
|
-
break;
|
|
1594
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2235
1595
|
default:
|
|
2236
1596
|
const parsedBody = parsedOutput.body;
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
...parsedBody,
|
|
2240
|
-
name: `${errorCode}`,
|
|
2241
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1597
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1598
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2242
1599
|
$fault: "client",
|
|
2243
1600
|
$metadata: deserializeMetadata(output),
|
|
2244
|
-
};
|
|
1601
|
+
});
|
|
1602
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2245
1603
|
}
|
|
2246
|
-
const message = response.message || response.Message || errorCode;
|
|
2247
|
-
response.message = message;
|
|
2248
|
-
delete response.Message;
|
|
2249
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2250
1604
|
};
|
|
2251
1605
|
const deserializeAws_json1_1ListTagsLogGroupCommand = async (output, context) => {
|
|
2252
1606
|
if (output.statusCode >= 300) {
|
|
@@ -2273,35 +1627,19 @@ const deserializeAws_json1_1ListTagsLogGroupCommandError = async (output, contex
|
|
|
2273
1627
|
switch (errorCode) {
|
|
2274
1628
|
case "ResourceNotFoundException":
|
|
2275
1629
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2276
|
-
|
|
2277
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2278
|
-
name: errorCode,
|
|
2279
|
-
$metadata: deserializeMetadata(output),
|
|
2280
|
-
};
|
|
2281
|
-
break;
|
|
1630
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2282
1631
|
case "ServiceUnavailableException":
|
|
2283
1632
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2284
|
-
|
|
2285
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2286
|
-
name: errorCode,
|
|
2287
|
-
$metadata: deserializeMetadata(output),
|
|
2288
|
-
};
|
|
2289
|
-
break;
|
|
1633
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2290
1634
|
default:
|
|
2291
1635
|
const parsedBody = parsedOutput.body;
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
...parsedBody,
|
|
2295
|
-
name: `${errorCode}`,
|
|
2296
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1636
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1637
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2297
1638
|
$fault: "client",
|
|
2298
1639
|
$metadata: deserializeMetadata(output),
|
|
2299
|
-
};
|
|
1640
|
+
});
|
|
1641
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2300
1642
|
}
|
|
2301
|
-
const message = response.message || response.Message || errorCode;
|
|
2302
|
-
response.message = message;
|
|
2303
|
-
delete response.Message;
|
|
2304
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2305
1643
|
};
|
|
2306
1644
|
const deserializeAws_json1_1PutDestinationCommand = async (output, context) => {
|
|
2307
1645
|
if (output.statusCode >= 300) {
|
|
@@ -2328,43 +1666,22 @@ const deserializeAws_json1_1PutDestinationCommandError = async (output, context)
|
|
|
2328
1666
|
switch (errorCode) {
|
|
2329
1667
|
case "InvalidParameterException":
|
|
2330
1668
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2331
|
-
|
|
2332
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2333
|
-
name: errorCode,
|
|
2334
|
-
$metadata: deserializeMetadata(output),
|
|
2335
|
-
};
|
|
2336
|
-
break;
|
|
1669
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2337
1670
|
case "OperationAbortedException":
|
|
2338
1671
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2339
|
-
|
|
2340
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
2341
|
-
name: errorCode,
|
|
2342
|
-
$metadata: deserializeMetadata(output),
|
|
2343
|
-
};
|
|
2344
|
-
break;
|
|
1672
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
2345
1673
|
case "ServiceUnavailableException":
|
|
2346
1674
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2347
|
-
|
|
2348
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2349
|
-
name: errorCode,
|
|
2350
|
-
$metadata: deserializeMetadata(output),
|
|
2351
|
-
};
|
|
2352
|
-
break;
|
|
1675
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2353
1676
|
default:
|
|
2354
1677
|
const parsedBody = parsedOutput.body;
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
...parsedBody,
|
|
2358
|
-
name: `${errorCode}`,
|
|
2359
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1678
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1679
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2360
1680
|
$fault: "client",
|
|
2361
1681
|
$metadata: deserializeMetadata(output),
|
|
2362
|
-
};
|
|
1682
|
+
});
|
|
1683
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2363
1684
|
}
|
|
2364
|
-
const message = response.message || response.Message || errorCode;
|
|
2365
|
-
response.message = message;
|
|
2366
|
-
delete response.Message;
|
|
2367
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2368
1685
|
};
|
|
2369
1686
|
const deserializeAws_json1_1PutDestinationPolicyCommand = async (output, context) => {
|
|
2370
1687
|
if (output.statusCode >= 300) {
|
|
@@ -2388,43 +1705,22 @@ const deserializeAws_json1_1PutDestinationPolicyCommandError = async (output, co
|
|
|
2388
1705
|
switch (errorCode) {
|
|
2389
1706
|
case "InvalidParameterException":
|
|
2390
1707
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2391
|
-
|
|
2392
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2393
|
-
name: errorCode,
|
|
2394
|
-
$metadata: deserializeMetadata(output),
|
|
2395
|
-
};
|
|
2396
|
-
break;
|
|
1708
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2397
1709
|
case "OperationAbortedException":
|
|
2398
1710
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2399
|
-
|
|
2400
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
2401
|
-
name: errorCode,
|
|
2402
|
-
$metadata: deserializeMetadata(output),
|
|
2403
|
-
};
|
|
2404
|
-
break;
|
|
1711
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
2405
1712
|
case "ServiceUnavailableException":
|
|
2406
1713
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2407
|
-
|
|
2408
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2409
|
-
name: errorCode,
|
|
2410
|
-
$metadata: deserializeMetadata(output),
|
|
2411
|
-
};
|
|
2412
|
-
break;
|
|
1714
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2413
1715
|
default:
|
|
2414
1716
|
const parsedBody = parsedOutput.body;
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
...parsedBody,
|
|
2418
|
-
name: `${errorCode}`,
|
|
2419
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1717
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1718
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2420
1719
|
$fault: "client",
|
|
2421
1720
|
$metadata: deserializeMetadata(output),
|
|
2422
|
-
};
|
|
1721
|
+
});
|
|
1722
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2423
1723
|
}
|
|
2424
|
-
const message = response.message || response.Message || errorCode;
|
|
2425
|
-
response.message = message;
|
|
2426
|
-
delete response.Message;
|
|
2427
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2428
1724
|
};
|
|
2429
1725
|
const deserializeAws_json1_1PutLogEventsCommand = async (output, context) => {
|
|
2430
1726
|
if (output.statusCode >= 300) {
|
|
@@ -2451,67 +1747,31 @@ const deserializeAws_json1_1PutLogEventsCommandError = async (output, context) =
|
|
|
2451
1747
|
switch (errorCode) {
|
|
2452
1748
|
case "DataAlreadyAcceptedException":
|
|
2453
1749
|
case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
|
|
2454
|
-
|
|
2455
|
-
...(await deserializeAws_json1_1DataAlreadyAcceptedExceptionResponse(parsedOutput, context)),
|
|
2456
|
-
name: errorCode,
|
|
2457
|
-
$metadata: deserializeMetadata(output),
|
|
2458
|
-
};
|
|
2459
|
-
break;
|
|
1750
|
+
throw await deserializeAws_json1_1DataAlreadyAcceptedExceptionResponse(parsedOutput, context);
|
|
2460
1751
|
case "InvalidParameterException":
|
|
2461
1752
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2462
|
-
|
|
2463
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2464
|
-
name: errorCode,
|
|
2465
|
-
$metadata: deserializeMetadata(output),
|
|
2466
|
-
};
|
|
2467
|
-
break;
|
|
1753
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2468
1754
|
case "InvalidSequenceTokenException":
|
|
2469
1755
|
case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":
|
|
2470
|
-
|
|
2471
|
-
...(await deserializeAws_json1_1InvalidSequenceTokenExceptionResponse(parsedOutput, context)),
|
|
2472
|
-
name: errorCode,
|
|
2473
|
-
$metadata: deserializeMetadata(output),
|
|
2474
|
-
};
|
|
2475
|
-
break;
|
|
1756
|
+
throw await deserializeAws_json1_1InvalidSequenceTokenExceptionResponse(parsedOutput, context);
|
|
2476
1757
|
case "ResourceNotFoundException":
|
|
2477
1758
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2478
|
-
|
|
2479
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2480
|
-
name: errorCode,
|
|
2481
|
-
$metadata: deserializeMetadata(output),
|
|
2482
|
-
};
|
|
2483
|
-
break;
|
|
1759
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2484
1760
|
case "ServiceUnavailableException":
|
|
2485
1761
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2486
|
-
|
|
2487
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2488
|
-
name: errorCode,
|
|
2489
|
-
$metadata: deserializeMetadata(output),
|
|
2490
|
-
};
|
|
2491
|
-
break;
|
|
1762
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2492
1763
|
case "UnrecognizedClientException":
|
|
2493
1764
|
case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException":
|
|
2494
|
-
|
|
2495
|
-
...(await deserializeAws_json1_1UnrecognizedClientExceptionResponse(parsedOutput, context)),
|
|
2496
|
-
name: errorCode,
|
|
2497
|
-
$metadata: deserializeMetadata(output),
|
|
2498
|
-
};
|
|
2499
|
-
break;
|
|
1765
|
+
throw await deserializeAws_json1_1UnrecognizedClientExceptionResponse(parsedOutput, context);
|
|
2500
1766
|
default:
|
|
2501
1767
|
const parsedBody = parsedOutput.body;
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
...parsedBody,
|
|
2505
|
-
name: `${errorCode}`,
|
|
2506
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1768
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1769
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2507
1770
|
$fault: "client",
|
|
2508
1771
|
$metadata: deserializeMetadata(output),
|
|
2509
|
-
};
|
|
1772
|
+
});
|
|
1773
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2510
1774
|
}
|
|
2511
|
-
const message = response.message || response.Message || errorCode;
|
|
2512
|
-
response.message = message;
|
|
2513
|
-
delete response.Message;
|
|
2514
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2515
1775
|
};
|
|
2516
1776
|
const deserializeAws_json1_1PutMetricFilterCommand = async (output, context) => {
|
|
2517
1777
|
if (output.statusCode >= 300) {
|
|
@@ -2535,59 +1795,28 @@ const deserializeAws_json1_1PutMetricFilterCommandError = async (output, context
|
|
|
2535
1795
|
switch (errorCode) {
|
|
2536
1796
|
case "InvalidParameterException":
|
|
2537
1797
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2538
|
-
|
|
2539
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2540
|
-
name: errorCode,
|
|
2541
|
-
$metadata: deserializeMetadata(output),
|
|
2542
|
-
};
|
|
2543
|
-
break;
|
|
1798
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2544
1799
|
case "LimitExceededException":
|
|
2545
1800
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2546
|
-
|
|
2547
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2548
|
-
name: errorCode,
|
|
2549
|
-
$metadata: deserializeMetadata(output),
|
|
2550
|
-
};
|
|
2551
|
-
break;
|
|
1801
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2552
1802
|
case "OperationAbortedException":
|
|
2553
1803
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2554
|
-
|
|
2555
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
2556
|
-
name: errorCode,
|
|
2557
|
-
$metadata: deserializeMetadata(output),
|
|
2558
|
-
};
|
|
2559
|
-
break;
|
|
1804
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
2560
1805
|
case "ResourceNotFoundException":
|
|
2561
1806
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2562
|
-
|
|
2563
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2564
|
-
name: errorCode,
|
|
2565
|
-
$metadata: deserializeMetadata(output),
|
|
2566
|
-
};
|
|
2567
|
-
break;
|
|
1807
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2568
1808
|
case "ServiceUnavailableException":
|
|
2569
1809
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2570
|
-
|
|
2571
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2572
|
-
name: errorCode,
|
|
2573
|
-
$metadata: deserializeMetadata(output),
|
|
2574
|
-
};
|
|
2575
|
-
break;
|
|
1810
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2576
1811
|
default:
|
|
2577
1812
|
const parsedBody = parsedOutput.body;
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
...parsedBody,
|
|
2581
|
-
name: `${errorCode}`,
|
|
2582
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1813
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1814
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2583
1815
|
$fault: "client",
|
|
2584
1816
|
$metadata: deserializeMetadata(output),
|
|
2585
|
-
};
|
|
1817
|
+
});
|
|
1818
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2586
1819
|
}
|
|
2587
|
-
const message = response.message || response.Message || errorCode;
|
|
2588
|
-
response.message = message;
|
|
2589
|
-
delete response.Message;
|
|
2590
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2591
1820
|
};
|
|
2592
1821
|
const deserializeAws_json1_1PutQueryDefinitionCommand = async (output, context) => {
|
|
2593
1822
|
if (output.statusCode >= 300) {
|
|
@@ -2614,51 +1843,25 @@ const deserializeAws_json1_1PutQueryDefinitionCommandError = async (output, cont
|
|
|
2614
1843
|
switch (errorCode) {
|
|
2615
1844
|
case "InvalidParameterException":
|
|
2616
1845
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2617
|
-
|
|
2618
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2619
|
-
name: errorCode,
|
|
2620
|
-
$metadata: deserializeMetadata(output),
|
|
2621
|
-
};
|
|
2622
|
-
break;
|
|
1846
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2623
1847
|
case "LimitExceededException":
|
|
2624
1848
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2625
|
-
|
|
2626
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2627
|
-
name: errorCode,
|
|
2628
|
-
$metadata: deserializeMetadata(output),
|
|
2629
|
-
};
|
|
2630
|
-
break;
|
|
1849
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2631
1850
|
case "ResourceNotFoundException":
|
|
2632
1851
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2633
|
-
|
|
2634
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2635
|
-
name: errorCode,
|
|
2636
|
-
$metadata: deserializeMetadata(output),
|
|
2637
|
-
};
|
|
2638
|
-
break;
|
|
1852
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2639
1853
|
case "ServiceUnavailableException":
|
|
2640
1854
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2641
|
-
|
|
2642
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2643
|
-
name: errorCode,
|
|
2644
|
-
$metadata: deserializeMetadata(output),
|
|
2645
|
-
};
|
|
2646
|
-
break;
|
|
1855
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2647
1856
|
default:
|
|
2648
1857
|
const parsedBody = parsedOutput.body;
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
...parsedBody,
|
|
2652
|
-
name: `${errorCode}`,
|
|
2653
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1858
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1859
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2654
1860
|
$fault: "client",
|
|
2655
1861
|
$metadata: deserializeMetadata(output),
|
|
2656
|
-
};
|
|
1862
|
+
});
|
|
1863
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2657
1864
|
}
|
|
2658
|
-
const message = response.message || response.Message || errorCode;
|
|
2659
|
-
response.message = message;
|
|
2660
|
-
delete response.Message;
|
|
2661
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2662
1865
|
};
|
|
2663
1866
|
const deserializeAws_json1_1PutResourcePolicyCommand = async (output, context) => {
|
|
2664
1867
|
if (output.statusCode >= 300) {
|
|
@@ -2685,43 +1888,22 @@ const deserializeAws_json1_1PutResourcePolicyCommandError = async (output, conte
|
|
|
2685
1888
|
switch (errorCode) {
|
|
2686
1889
|
case "InvalidParameterException":
|
|
2687
1890
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2688
|
-
|
|
2689
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2690
|
-
name: errorCode,
|
|
2691
|
-
$metadata: deserializeMetadata(output),
|
|
2692
|
-
};
|
|
2693
|
-
break;
|
|
1891
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2694
1892
|
case "LimitExceededException":
|
|
2695
1893
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2696
|
-
|
|
2697
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2698
|
-
name: errorCode,
|
|
2699
|
-
$metadata: deserializeMetadata(output),
|
|
2700
|
-
};
|
|
2701
|
-
break;
|
|
1894
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2702
1895
|
case "ServiceUnavailableException":
|
|
2703
1896
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2704
|
-
|
|
2705
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2706
|
-
name: errorCode,
|
|
2707
|
-
$metadata: deserializeMetadata(output),
|
|
2708
|
-
};
|
|
2709
|
-
break;
|
|
1897
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2710
1898
|
default:
|
|
2711
1899
|
const parsedBody = parsedOutput.body;
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
...parsedBody,
|
|
2715
|
-
name: `${errorCode}`,
|
|
2716
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1900
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1901
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2717
1902
|
$fault: "client",
|
|
2718
1903
|
$metadata: deserializeMetadata(output),
|
|
2719
|
-
};
|
|
1904
|
+
});
|
|
1905
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2720
1906
|
}
|
|
2721
|
-
const message = response.message || response.Message || errorCode;
|
|
2722
|
-
response.message = message;
|
|
2723
|
-
delete response.Message;
|
|
2724
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2725
1907
|
};
|
|
2726
1908
|
const deserializeAws_json1_1PutRetentionPolicyCommand = async (output, context) => {
|
|
2727
1909
|
if (output.statusCode >= 300) {
|
|
@@ -2745,51 +1927,25 @@ const deserializeAws_json1_1PutRetentionPolicyCommandError = async (output, cont
|
|
|
2745
1927
|
switch (errorCode) {
|
|
2746
1928
|
case "InvalidParameterException":
|
|
2747
1929
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2748
|
-
|
|
2749
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2750
|
-
name: errorCode,
|
|
2751
|
-
$metadata: deserializeMetadata(output),
|
|
2752
|
-
};
|
|
2753
|
-
break;
|
|
1930
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2754
1931
|
case "OperationAbortedException":
|
|
2755
1932
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2756
|
-
|
|
2757
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
2758
|
-
name: errorCode,
|
|
2759
|
-
$metadata: deserializeMetadata(output),
|
|
2760
|
-
};
|
|
2761
|
-
break;
|
|
1933
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
2762
1934
|
case "ResourceNotFoundException":
|
|
2763
1935
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2764
|
-
|
|
2765
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2766
|
-
name: errorCode,
|
|
2767
|
-
$metadata: deserializeMetadata(output),
|
|
2768
|
-
};
|
|
2769
|
-
break;
|
|
1936
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2770
1937
|
case "ServiceUnavailableException":
|
|
2771
1938
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2772
|
-
|
|
2773
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2774
|
-
name: errorCode,
|
|
2775
|
-
$metadata: deserializeMetadata(output),
|
|
2776
|
-
};
|
|
2777
|
-
break;
|
|
1939
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2778
1940
|
default:
|
|
2779
1941
|
const parsedBody = parsedOutput.body;
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
...parsedBody,
|
|
2783
|
-
name: `${errorCode}`,
|
|
2784
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1942
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1943
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2785
1944
|
$fault: "client",
|
|
2786
1945
|
$metadata: deserializeMetadata(output),
|
|
2787
|
-
};
|
|
1946
|
+
});
|
|
1947
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2788
1948
|
}
|
|
2789
|
-
const message = response.message || response.Message || errorCode;
|
|
2790
|
-
response.message = message;
|
|
2791
|
-
delete response.Message;
|
|
2792
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2793
1949
|
};
|
|
2794
1950
|
const deserializeAws_json1_1PutSubscriptionFilterCommand = async (output, context) => {
|
|
2795
1951
|
if (output.statusCode >= 300) {
|
|
@@ -2813,59 +1969,28 @@ const deserializeAws_json1_1PutSubscriptionFilterCommandError = async (output, c
|
|
|
2813
1969
|
switch (errorCode) {
|
|
2814
1970
|
case "InvalidParameterException":
|
|
2815
1971
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2816
|
-
|
|
2817
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2818
|
-
name: errorCode,
|
|
2819
|
-
$metadata: deserializeMetadata(output),
|
|
2820
|
-
};
|
|
2821
|
-
break;
|
|
1972
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2822
1973
|
case "LimitExceededException":
|
|
2823
1974
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2824
|
-
|
|
2825
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2826
|
-
name: errorCode,
|
|
2827
|
-
$metadata: deserializeMetadata(output),
|
|
2828
|
-
};
|
|
2829
|
-
break;
|
|
1975
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2830
1976
|
case "OperationAbortedException":
|
|
2831
1977
|
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2832
|
-
|
|
2833
|
-
...(await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context)),
|
|
2834
|
-
name: errorCode,
|
|
2835
|
-
$metadata: deserializeMetadata(output),
|
|
2836
|
-
};
|
|
2837
|
-
break;
|
|
1978
|
+
throw await deserializeAws_json1_1OperationAbortedExceptionResponse(parsedOutput, context);
|
|
2838
1979
|
case "ResourceNotFoundException":
|
|
2839
1980
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2840
|
-
|
|
2841
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2842
|
-
name: errorCode,
|
|
2843
|
-
$metadata: deserializeMetadata(output),
|
|
2844
|
-
};
|
|
2845
|
-
break;
|
|
1981
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2846
1982
|
case "ServiceUnavailableException":
|
|
2847
1983
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2848
|
-
|
|
2849
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2850
|
-
name: errorCode,
|
|
2851
|
-
$metadata: deserializeMetadata(output),
|
|
2852
|
-
};
|
|
2853
|
-
break;
|
|
1984
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2854
1985
|
default:
|
|
2855
1986
|
const parsedBody = parsedOutput.body;
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
...parsedBody,
|
|
2859
|
-
name: `${errorCode}`,
|
|
2860
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1987
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
1988
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2861
1989
|
$fault: "client",
|
|
2862
1990
|
$metadata: deserializeMetadata(output),
|
|
2863
|
-
};
|
|
1991
|
+
});
|
|
1992
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2864
1993
|
}
|
|
2865
|
-
const message = response.message || response.Message || errorCode;
|
|
2866
|
-
response.message = message;
|
|
2867
|
-
delete response.Message;
|
|
2868
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2869
1994
|
};
|
|
2870
1995
|
const deserializeAws_json1_1StartQueryCommand = async (output, context) => {
|
|
2871
1996
|
if (output.statusCode >= 300) {
|
|
@@ -2892,59 +2017,28 @@ const deserializeAws_json1_1StartQueryCommandError = async (output, context) =>
|
|
|
2892
2017
|
switch (errorCode) {
|
|
2893
2018
|
case "InvalidParameterException":
|
|
2894
2019
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2895
|
-
|
|
2896
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2897
|
-
name: errorCode,
|
|
2898
|
-
$metadata: deserializeMetadata(output),
|
|
2899
|
-
};
|
|
2900
|
-
break;
|
|
2020
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2901
2021
|
case "LimitExceededException":
|
|
2902
2022
|
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2903
|
-
|
|
2904
|
-
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2905
|
-
name: errorCode,
|
|
2906
|
-
$metadata: deserializeMetadata(output),
|
|
2907
|
-
};
|
|
2908
|
-
break;
|
|
2023
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2909
2024
|
case "MalformedQueryException":
|
|
2910
2025
|
case "com.amazonaws.cloudwatchlogs#MalformedQueryException":
|
|
2911
|
-
|
|
2912
|
-
...(await deserializeAws_json1_1MalformedQueryExceptionResponse(parsedOutput, context)),
|
|
2913
|
-
name: errorCode,
|
|
2914
|
-
$metadata: deserializeMetadata(output),
|
|
2915
|
-
};
|
|
2916
|
-
break;
|
|
2026
|
+
throw await deserializeAws_json1_1MalformedQueryExceptionResponse(parsedOutput, context);
|
|
2917
2027
|
case "ResourceNotFoundException":
|
|
2918
2028
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2919
|
-
|
|
2920
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2921
|
-
name: errorCode,
|
|
2922
|
-
$metadata: deserializeMetadata(output),
|
|
2923
|
-
};
|
|
2924
|
-
break;
|
|
2029
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2925
2030
|
case "ServiceUnavailableException":
|
|
2926
2031
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2927
|
-
|
|
2928
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2929
|
-
name: errorCode,
|
|
2930
|
-
$metadata: deserializeMetadata(output),
|
|
2931
|
-
};
|
|
2932
|
-
break;
|
|
2032
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2933
2033
|
default:
|
|
2934
2034
|
const parsedBody = parsedOutput.body;
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
...parsedBody,
|
|
2938
|
-
name: `${errorCode}`,
|
|
2939
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2035
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
2036
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2940
2037
|
$fault: "client",
|
|
2941
2038
|
$metadata: deserializeMetadata(output),
|
|
2942
|
-
};
|
|
2039
|
+
});
|
|
2040
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2943
2041
|
}
|
|
2944
|
-
const message = response.message || response.Message || errorCode;
|
|
2945
|
-
response.message = message;
|
|
2946
|
-
delete response.Message;
|
|
2947
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2948
2042
|
};
|
|
2949
2043
|
const deserializeAws_json1_1StopQueryCommand = async (output, context) => {
|
|
2950
2044
|
if (output.statusCode >= 300) {
|
|
@@ -2971,43 +2065,22 @@ const deserializeAws_json1_1StopQueryCommandError = async (output, context) => {
|
|
|
2971
2065
|
switch (errorCode) {
|
|
2972
2066
|
case "InvalidParameterException":
|
|
2973
2067
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2974
|
-
|
|
2975
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
2976
|
-
name: errorCode,
|
|
2977
|
-
$metadata: deserializeMetadata(output),
|
|
2978
|
-
};
|
|
2979
|
-
break;
|
|
2068
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
2980
2069
|
case "ResourceNotFoundException":
|
|
2981
2070
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2982
|
-
|
|
2983
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2984
|
-
name: errorCode,
|
|
2985
|
-
$metadata: deserializeMetadata(output),
|
|
2986
|
-
};
|
|
2987
|
-
break;
|
|
2071
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2988
2072
|
case "ServiceUnavailableException":
|
|
2989
2073
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2990
|
-
|
|
2991
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2992
|
-
name: errorCode,
|
|
2993
|
-
$metadata: deserializeMetadata(output),
|
|
2994
|
-
};
|
|
2995
|
-
break;
|
|
2074
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2996
2075
|
default:
|
|
2997
2076
|
const parsedBody = parsedOutput.body;
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
...parsedBody,
|
|
3001
|
-
name: `${errorCode}`,
|
|
3002
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2077
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
2078
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3003
2079
|
$fault: "client",
|
|
3004
2080
|
$metadata: deserializeMetadata(output),
|
|
3005
|
-
};
|
|
2081
|
+
});
|
|
2082
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3006
2083
|
}
|
|
3007
|
-
const message = response.message || response.Message || errorCode;
|
|
3008
|
-
response.message = message;
|
|
3009
|
-
delete response.Message;
|
|
3010
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3011
2084
|
};
|
|
3012
2085
|
const deserializeAws_json1_1TagLogGroupCommand = async (output, context) => {
|
|
3013
2086
|
if (output.statusCode >= 300) {
|
|
@@ -3031,35 +2104,19 @@ const deserializeAws_json1_1TagLogGroupCommandError = async (output, context) =>
|
|
|
3031
2104
|
switch (errorCode) {
|
|
3032
2105
|
case "InvalidParameterException":
|
|
3033
2106
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3034
|
-
|
|
3035
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3036
|
-
name: errorCode,
|
|
3037
|
-
$metadata: deserializeMetadata(output),
|
|
3038
|
-
};
|
|
3039
|
-
break;
|
|
2107
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3040
2108
|
case "ResourceNotFoundException":
|
|
3041
2109
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3042
|
-
|
|
3043
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3044
|
-
name: errorCode,
|
|
3045
|
-
$metadata: deserializeMetadata(output),
|
|
3046
|
-
};
|
|
3047
|
-
break;
|
|
2110
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3048
2111
|
default:
|
|
3049
2112
|
const parsedBody = parsedOutput.body;
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
...parsedBody,
|
|
3053
|
-
name: `${errorCode}`,
|
|
3054
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2113
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
2114
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3055
2115
|
$fault: "client",
|
|
3056
2116
|
$metadata: deserializeMetadata(output),
|
|
3057
|
-
};
|
|
2117
|
+
});
|
|
2118
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3058
2119
|
}
|
|
3059
|
-
const message = response.message || response.Message || errorCode;
|
|
3060
|
-
response.message = message;
|
|
3061
|
-
delete response.Message;
|
|
3062
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3063
2120
|
};
|
|
3064
2121
|
const deserializeAws_json1_1TestMetricFilterCommand = async (output, context) => {
|
|
3065
2122
|
if (output.statusCode >= 300) {
|
|
@@ -3086,35 +2143,19 @@ const deserializeAws_json1_1TestMetricFilterCommandError = async (output, contex
|
|
|
3086
2143
|
switch (errorCode) {
|
|
3087
2144
|
case "InvalidParameterException":
|
|
3088
2145
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3089
|
-
|
|
3090
|
-
...(await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context)),
|
|
3091
|
-
name: errorCode,
|
|
3092
|
-
$metadata: deserializeMetadata(output),
|
|
3093
|
-
};
|
|
3094
|
-
break;
|
|
2146
|
+
throw await deserializeAws_json1_1InvalidParameterExceptionResponse(parsedOutput, context);
|
|
3095
2147
|
case "ServiceUnavailableException":
|
|
3096
2148
|
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3097
|
-
|
|
3098
|
-
...(await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3099
|
-
name: errorCode,
|
|
3100
|
-
$metadata: deserializeMetadata(output),
|
|
3101
|
-
};
|
|
3102
|
-
break;
|
|
2149
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3103
2150
|
default:
|
|
3104
2151
|
const parsedBody = parsedOutput.body;
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
...parsedBody,
|
|
3108
|
-
name: `${errorCode}`,
|
|
3109
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2152
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
2153
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3110
2154
|
$fault: "client",
|
|
3111
2155
|
$metadata: deserializeMetadata(output),
|
|
3112
|
-
};
|
|
2156
|
+
});
|
|
2157
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3113
2158
|
}
|
|
3114
|
-
const message = response.message || response.Message || errorCode;
|
|
3115
|
-
response.message = message;
|
|
3116
|
-
delete response.Message;
|
|
3117
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3118
2159
|
};
|
|
3119
2160
|
const deserializeAws_json1_1UntagLogGroupCommand = async (output, context) => {
|
|
3120
2161
|
if (output.statusCode >= 300) {
|
|
@@ -3138,148 +2179,115 @@ const deserializeAws_json1_1UntagLogGroupCommandError = async (output, context)
|
|
|
3138
2179
|
switch (errorCode) {
|
|
3139
2180
|
case "ResourceNotFoundException":
|
|
3140
2181
|
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3141
|
-
|
|
3142
|
-
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3143
|
-
name: errorCode,
|
|
3144
|
-
$metadata: deserializeMetadata(output),
|
|
3145
|
-
};
|
|
3146
|
-
break;
|
|
2182
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3147
2183
|
default:
|
|
3148
2184
|
const parsedBody = parsedOutput.body;
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
...parsedBody,
|
|
3152
|
-
name: `${errorCode}`,
|
|
3153
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2185
|
+
response = new CloudWatchLogsServiceException_1.CloudWatchLogsServiceException({
|
|
2186
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3154
2187
|
$fault: "client",
|
|
3155
2188
|
$metadata: deserializeMetadata(output),
|
|
3156
|
-
};
|
|
2189
|
+
});
|
|
2190
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3157
2191
|
}
|
|
3158
|
-
const message = response.message || response.Message || errorCode;
|
|
3159
|
-
response.message = message;
|
|
3160
|
-
delete response.Message;
|
|
3161
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3162
2192
|
};
|
|
3163
2193
|
const deserializeAws_json1_1DataAlreadyAcceptedExceptionResponse = async (parsedOutput, context) => {
|
|
3164
2194
|
const body = parsedOutput.body;
|
|
3165
2195
|
const deserialized = deserializeAws_json1_1DataAlreadyAcceptedException(body, context);
|
|
3166
|
-
const
|
|
3167
|
-
name: "DataAlreadyAcceptedException",
|
|
3168
|
-
$fault: "client",
|
|
2196
|
+
const exception = new models_0_1.DataAlreadyAcceptedException({
|
|
3169
2197
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3170
2198
|
...deserialized,
|
|
3171
|
-
};
|
|
3172
|
-
return
|
|
2199
|
+
});
|
|
2200
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3173
2201
|
};
|
|
3174
2202
|
const deserializeAws_json1_1InvalidOperationExceptionResponse = async (parsedOutput, context) => {
|
|
3175
2203
|
const body = parsedOutput.body;
|
|
3176
2204
|
const deserialized = deserializeAws_json1_1InvalidOperationException(body, context);
|
|
3177
|
-
const
|
|
3178
|
-
name: "InvalidOperationException",
|
|
3179
|
-
$fault: "client",
|
|
2205
|
+
const exception = new models_0_1.InvalidOperationException({
|
|
3180
2206
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3181
2207
|
...deserialized,
|
|
3182
|
-
};
|
|
3183
|
-
return
|
|
2208
|
+
});
|
|
2209
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3184
2210
|
};
|
|
3185
2211
|
const deserializeAws_json1_1InvalidParameterExceptionResponse = async (parsedOutput, context) => {
|
|
3186
2212
|
const body = parsedOutput.body;
|
|
3187
2213
|
const deserialized = deserializeAws_json1_1InvalidParameterException(body, context);
|
|
3188
|
-
const
|
|
3189
|
-
name: "InvalidParameterException",
|
|
3190
|
-
$fault: "client",
|
|
2214
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
3191
2215
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3192
2216
|
...deserialized,
|
|
3193
|
-
};
|
|
3194
|
-
return
|
|
2217
|
+
});
|
|
2218
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3195
2219
|
};
|
|
3196
2220
|
const deserializeAws_json1_1InvalidSequenceTokenExceptionResponse = async (parsedOutput, context) => {
|
|
3197
2221
|
const body = parsedOutput.body;
|
|
3198
2222
|
const deserialized = deserializeAws_json1_1InvalidSequenceTokenException(body, context);
|
|
3199
|
-
const
|
|
3200
|
-
name: "InvalidSequenceTokenException",
|
|
3201
|
-
$fault: "client",
|
|
2223
|
+
const exception = new models_0_1.InvalidSequenceTokenException({
|
|
3202
2224
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3203
2225
|
...deserialized,
|
|
3204
|
-
};
|
|
3205
|
-
return
|
|
2226
|
+
});
|
|
2227
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3206
2228
|
};
|
|
3207
2229
|
const deserializeAws_json1_1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
3208
2230
|
const body = parsedOutput.body;
|
|
3209
2231
|
const deserialized = deserializeAws_json1_1LimitExceededException(body, context);
|
|
3210
|
-
const
|
|
3211
|
-
name: "LimitExceededException",
|
|
3212
|
-
$fault: "client",
|
|
2232
|
+
const exception = new models_0_1.LimitExceededException({
|
|
3213
2233
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3214
2234
|
...deserialized,
|
|
3215
|
-
};
|
|
3216
|
-
return
|
|
2235
|
+
});
|
|
2236
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3217
2237
|
};
|
|
3218
2238
|
const deserializeAws_json1_1MalformedQueryExceptionResponse = async (parsedOutput, context) => {
|
|
3219
2239
|
const body = parsedOutput.body;
|
|
3220
2240
|
const deserialized = deserializeAws_json1_1MalformedQueryException(body, context);
|
|
3221
|
-
const
|
|
3222
|
-
name: "MalformedQueryException",
|
|
3223
|
-
$fault: "client",
|
|
2241
|
+
const exception = new models_0_1.MalformedQueryException({
|
|
3224
2242
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3225
2243
|
...deserialized,
|
|
3226
|
-
};
|
|
3227
|
-
return
|
|
2244
|
+
});
|
|
2245
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3228
2246
|
};
|
|
3229
2247
|
const deserializeAws_json1_1OperationAbortedExceptionResponse = async (parsedOutput, context) => {
|
|
3230
2248
|
const body = parsedOutput.body;
|
|
3231
2249
|
const deserialized = deserializeAws_json1_1OperationAbortedException(body, context);
|
|
3232
|
-
const
|
|
3233
|
-
name: "OperationAbortedException",
|
|
3234
|
-
$fault: "client",
|
|
2250
|
+
const exception = new models_0_1.OperationAbortedException({
|
|
3235
2251
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3236
2252
|
...deserialized,
|
|
3237
|
-
};
|
|
3238
|
-
return
|
|
2253
|
+
});
|
|
2254
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3239
2255
|
};
|
|
3240
2256
|
const deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
3241
2257
|
const body = parsedOutput.body;
|
|
3242
2258
|
const deserialized = deserializeAws_json1_1ResourceAlreadyExistsException(body, context);
|
|
3243
|
-
const
|
|
3244
|
-
name: "ResourceAlreadyExistsException",
|
|
3245
|
-
$fault: "client",
|
|
2259
|
+
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
3246
2260
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3247
2261
|
...deserialized,
|
|
3248
|
-
};
|
|
3249
|
-
return
|
|
2262
|
+
});
|
|
2263
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3250
2264
|
};
|
|
3251
2265
|
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
3252
2266
|
const body = parsedOutput.body;
|
|
3253
2267
|
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
3254
|
-
const
|
|
3255
|
-
name: "ResourceNotFoundException",
|
|
3256
|
-
$fault: "client",
|
|
2268
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
3257
2269
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3258
2270
|
...deserialized,
|
|
3259
|
-
};
|
|
3260
|
-
return
|
|
2271
|
+
});
|
|
2272
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3261
2273
|
};
|
|
3262
2274
|
const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
3263
2275
|
const body = parsedOutput.body;
|
|
3264
2276
|
const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
3265
|
-
const
|
|
3266
|
-
name: "ServiceUnavailableException",
|
|
3267
|
-
$fault: "server",
|
|
2277
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
3268
2278
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3269
2279
|
...deserialized,
|
|
3270
|
-
};
|
|
3271
|
-
return
|
|
2280
|
+
});
|
|
2281
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3272
2282
|
};
|
|
3273
2283
|
const deserializeAws_json1_1UnrecognizedClientExceptionResponse = async (parsedOutput, context) => {
|
|
3274
2284
|
const body = parsedOutput.body;
|
|
3275
2285
|
const deserialized = deserializeAws_json1_1UnrecognizedClientException(body, context);
|
|
3276
|
-
const
|
|
3277
|
-
name: "UnrecognizedClientException",
|
|
3278
|
-
$fault: "client",
|
|
2286
|
+
const exception = new models_0_1.UnrecognizedClientException({
|
|
3279
2287
|
$metadata: deserializeMetadata(parsedOutput),
|
|
3280
2288
|
...deserialized,
|
|
3281
|
-
};
|
|
3282
|
-
return
|
|
2289
|
+
});
|
|
2290
|
+
return smithy_client_1.decorateServiceException(exception, body);
|
|
3283
2291
|
};
|
|
3284
2292
|
const serializeAws_json1_1AssociateKmsKeyRequest = (input, context) => {
|
|
3285
2293
|
return {
|
|
@@ -3808,7 +2816,7 @@ const deserializeAws_json1_1Destination = (output, context) => {
|
|
|
3808
2816
|
};
|
|
3809
2817
|
};
|
|
3810
2818
|
const deserializeAws_json1_1Destinations = (output, context) => {
|
|
3811
|
-
|
|
2819
|
+
const retVal = (output || [])
|
|
3812
2820
|
.filter((e) => e != null)
|
|
3813
2821
|
.map((entry) => {
|
|
3814
2822
|
if (entry === null) {
|
|
@@ -3816,6 +2824,7 @@ const deserializeAws_json1_1Destinations = (output, context) => {
|
|
|
3816
2824
|
}
|
|
3817
2825
|
return deserializeAws_json1_1Destination(entry, context);
|
|
3818
2826
|
});
|
|
2827
|
+
return retVal;
|
|
3819
2828
|
};
|
|
3820
2829
|
const deserializeAws_json1_1Dimensions = (output, context) => {
|
|
3821
2830
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -3852,7 +2861,7 @@ const deserializeAws_json1_1ExportTaskExecutionInfo = (output, context) => {
|
|
|
3852
2861
|
};
|
|
3853
2862
|
};
|
|
3854
2863
|
const deserializeAws_json1_1ExportTasks = (output, context) => {
|
|
3855
|
-
|
|
2864
|
+
const retVal = (output || [])
|
|
3856
2865
|
.filter((e) => e != null)
|
|
3857
2866
|
.map((entry) => {
|
|
3858
2867
|
if (entry === null) {
|
|
@@ -3860,6 +2869,7 @@ const deserializeAws_json1_1ExportTasks = (output, context) => {
|
|
|
3860
2869
|
}
|
|
3861
2870
|
return deserializeAws_json1_1ExportTask(entry, context);
|
|
3862
2871
|
});
|
|
2872
|
+
return retVal;
|
|
3863
2873
|
};
|
|
3864
2874
|
const deserializeAws_json1_1ExportTaskStatus = (output, context) => {
|
|
3865
2875
|
return {
|
|
@@ -3888,7 +2898,7 @@ const deserializeAws_json1_1FilteredLogEvent = (output, context) => {
|
|
|
3888
2898
|
};
|
|
3889
2899
|
};
|
|
3890
2900
|
const deserializeAws_json1_1FilteredLogEvents = (output, context) => {
|
|
3891
|
-
|
|
2901
|
+
const retVal = (output || [])
|
|
3892
2902
|
.filter((e) => e != null)
|
|
3893
2903
|
.map((entry) => {
|
|
3894
2904
|
if (entry === null) {
|
|
@@ -3896,6 +2906,7 @@ const deserializeAws_json1_1FilteredLogEvents = (output, context) => {
|
|
|
3896
2906
|
}
|
|
3897
2907
|
return deserializeAws_json1_1FilteredLogEvent(entry, context);
|
|
3898
2908
|
});
|
|
2909
|
+
return retVal;
|
|
3899
2910
|
};
|
|
3900
2911
|
const deserializeAws_json1_1FilterLogEventsResponse = (output, context) => {
|
|
3901
2912
|
return {
|
|
@@ -3986,7 +2997,7 @@ const deserializeAws_json1_1LogGroupField = (output, context) => {
|
|
|
3986
2997
|
};
|
|
3987
2998
|
};
|
|
3988
2999
|
const deserializeAws_json1_1LogGroupFieldList = (output, context) => {
|
|
3989
|
-
|
|
3000
|
+
const retVal = (output || [])
|
|
3990
3001
|
.filter((e) => e != null)
|
|
3991
3002
|
.map((entry) => {
|
|
3992
3003
|
if (entry === null) {
|
|
@@ -3994,9 +3005,10 @@ const deserializeAws_json1_1LogGroupFieldList = (output, context) => {
|
|
|
3994
3005
|
}
|
|
3995
3006
|
return deserializeAws_json1_1LogGroupField(entry, context);
|
|
3996
3007
|
});
|
|
3008
|
+
return retVal;
|
|
3997
3009
|
};
|
|
3998
3010
|
const deserializeAws_json1_1LogGroupNames = (output, context) => {
|
|
3999
|
-
|
|
3011
|
+
const retVal = (output || [])
|
|
4000
3012
|
.filter((e) => e != null)
|
|
4001
3013
|
.map((entry) => {
|
|
4002
3014
|
if (entry === null) {
|
|
@@ -4004,9 +3016,10 @@ const deserializeAws_json1_1LogGroupNames = (output, context) => {
|
|
|
4004
3016
|
}
|
|
4005
3017
|
return smithy_client_1.expectString(entry);
|
|
4006
3018
|
});
|
|
3019
|
+
return retVal;
|
|
4007
3020
|
};
|
|
4008
3021
|
const deserializeAws_json1_1LogGroups = (output, context) => {
|
|
4009
|
-
|
|
3022
|
+
const retVal = (output || [])
|
|
4010
3023
|
.filter((e) => e != null)
|
|
4011
3024
|
.map((entry) => {
|
|
4012
3025
|
if (entry === null) {
|
|
@@ -4014,6 +3027,7 @@ const deserializeAws_json1_1LogGroups = (output, context) => {
|
|
|
4014
3027
|
}
|
|
4015
3028
|
return deserializeAws_json1_1LogGroup(entry, context);
|
|
4016
3029
|
});
|
|
3030
|
+
return retVal;
|
|
4017
3031
|
};
|
|
4018
3032
|
const deserializeAws_json1_1LogRecord = (output, context) => {
|
|
4019
3033
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -4039,7 +3053,7 @@ const deserializeAws_json1_1LogStream = (output, context) => {
|
|
|
4039
3053
|
};
|
|
4040
3054
|
};
|
|
4041
3055
|
const deserializeAws_json1_1LogStreams = (output, context) => {
|
|
4042
|
-
|
|
3056
|
+
const retVal = (output || [])
|
|
4043
3057
|
.filter((e) => e != null)
|
|
4044
3058
|
.map((entry) => {
|
|
4045
3059
|
if (entry === null) {
|
|
@@ -4047,6 +3061,7 @@ const deserializeAws_json1_1LogStreams = (output, context) => {
|
|
|
4047
3061
|
}
|
|
4048
3062
|
return deserializeAws_json1_1LogStream(entry, context);
|
|
4049
3063
|
});
|
|
3064
|
+
return retVal;
|
|
4050
3065
|
};
|
|
4051
3066
|
const deserializeAws_json1_1MalformedQueryException = (output, context) => {
|
|
4052
3067
|
return {
|
|
@@ -4068,7 +3083,7 @@ const deserializeAws_json1_1MetricFilter = (output, context) => {
|
|
|
4068
3083
|
};
|
|
4069
3084
|
};
|
|
4070
3085
|
const deserializeAws_json1_1MetricFilterMatches = (output, context) => {
|
|
4071
|
-
|
|
3086
|
+
const retVal = (output || [])
|
|
4072
3087
|
.filter((e) => e != null)
|
|
4073
3088
|
.map((entry) => {
|
|
4074
3089
|
if (entry === null) {
|
|
@@ -4076,6 +3091,7 @@ const deserializeAws_json1_1MetricFilterMatches = (output, context) => {
|
|
|
4076
3091
|
}
|
|
4077
3092
|
return deserializeAws_json1_1MetricFilterMatchRecord(entry, context);
|
|
4078
3093
|
});
|
|
3094
|
+
return retVal;
|
|
4079
3095
|
};
|
|
4080
3096
|
const deserializeAws_json1_1MetricFilterMatchRecord = (output, context) => {
|
|
4081
3097
|
return {
|
|
@@ -4087,7 +3103,7 @@ const deserializeAws_json1_1MetricFilterMatchRecord = (output, context) => {
|
|
|
4087
3103
|
};
|
|
4088
3104
|
};
|
|
4089
3105
|
const deserializeAws_json1_1MetricFilters = (output, context) => {
|
|
4090
|
-
|
|
3106
|
+
const retVal = (output || [])
|
|
4091
3107
|
.filter((e) => e != null)
|
|
4092
3108
|
.map((entry) => {
|
|
4093
3109
|
if (entry === null) {
|
|
@@ -4095,6 +3111,7 @@ const deserializeAws_json1_1MetricFilters = (output, context) => {
|
|
|
4095
3111
|
}
|
|
4096
3112
|
return deserializeAws_json1_1MetricFilter(entry, context);
|
|
4097
3113
|
});
|
|
3114
|
+
return retVal;
|
|
4098
3115
|
};
|
|
4099
3116
|
const deserializeAws_json1_1MetricTransformation = (output, context) => {
|
|
4100
3117
|
return {
|
|
@@ -4109,7 +3126,7 @@ const deserializeAws_json1_1MetricTransformation = (output, context) => {
|
|
|
4109
3126
|
};
|
|
4110
3127
|
};
|
|
4111
3128
|
const deserializeAws_json1_1MetricTransformations = (output, context) => {
|
|
4112
|
-
|
|
3129
|
+
const retVal = (output || [])
|
|
4113
3130
|
.filter((e) => e != null)
|
|
4114
3131
|
.map((entry) => {
|
|
4115
3132
|
if (entry === null) {
|
|
@@ -4117,6 +3134,7 @@ const deserializeAws_json1_1MetricTransformations = (output, context) => {
|
|
|
4117
3134
|
}
|
|
4118
3135
|
return deserializeAws_json1_1MetricTransformation(entry, context);
|
|
4119
3136
|
});
|
|
3137
|
+
return retVal;
|
|
4120
3138
|
};
|
|
4121
3139
|
const deserializeAws_json1_1OperationAbortedException = (output, context) => {
|
|
4122
3140
|
return {
|
|
@@ -4131,7 +3149,7 @@ const deserializeAws_json1_1OutputLogEvent = (output, context) => {
|
|
|
4131
3149
|
};
|
|
4132
3150
|
};
|
|
4133
3151
|
const deserializeAws_json1_1OutputLogEvents = (output, context) => {
|
|
4134
|
-
|
|
3152
|
+
const retVal = (output || [])
|
|
4135
3153
|
.filter((e) => e != null)
|
|
4136
3154
|
.map((entry) => {
|
|
4137
3155
|
if (entry === null) {
|
|
@@ -4139,6 +3157,7 @@ const deserializeAws_json1_1OutputLogEvents = (output, context) => {
|
|
|
4139
3157
|
}
|
|
4140
3158
|
return deserializeAws_json1_1OutputLogEvent(entry, context);
|
|
4141
3159
|
});
|
|
3160
|
+
return retVal;
|
|
4142
3161
|
};
|
|
4143
3162
|
const deserializeAws_json1_1PutDestinationResponse = (output, context) => {
|
|
4144
3163
|
return {
|
|
@@ -4193,7 +3212,7 @@ const deserializeAws_json1_1QueryDefinition = (output, context) => {
|
|
|
4193
3212
|
};
|
|
4194
3213
|
};
|
|
4195
3214
|
const deserializeAws_json1_1QueryDefinitionList = (output, context) => {
|
|
4196
|
-
|
|
3215
|
+
const retVal = (output || [])
|
|
4197
3216
|
.filter((e) => e != null)
|
|
4198
3217
|
.map((entry) => {
|
|
4199
3218
|
if (entry === null) {
|
|
@@ -4201,6 +3220,7 @@ const deserializeAws_json1_1QueryDefinitionList = (output, context) => {
|
|
|
4201
3220
|
}
|
|
4202
3221
|
return deserializeAws_json1_1QueryDefinition(entry, context);
|
|
4203
3222
|
});
|
|
3223
|
+
return retVal;
|
|
4204
3224
|
};
|
|
4205
3225
|
const deserializeAws_json1_1QueryInfo = (output, context) => {
|
|
4206
3226
|
return {
|
|
@@ -4212,7 +3232,7 @@ const deserializeAws_json1_1QueryInfo = (output, context) => {
|
|
|
4212
3232
|
};
|
|
4213
3233
|
};
|
|
4214
3234
|
const deserializeAws_json1_1QueryInfoList = (output, context) => {
|
|
4215
|
-
|
|
3235
|
+
const retVal = (output || [])
|
|
4216
3236
|
.filter((e) => e != null)
|
|
4217
3237
|
.map((entry) => {
|
|
4218
3238
|
if (entry === null) {
|
|
@@ -4220,9 +3240,10 @@ const deserializeAws_json1_1QueryInfoList = (output, context) => {
|
|
|
4220
3240
|
}
|
|
4221
3241
|
return deserializeAws_json1_1QueryInfo(entry, context);
|
|
4222
3242
|
});
|
|
3243
|
+
return retVal;
|
|
4223
3244
|
};
|
|
4224
3245
|
const deserializeAws_json1_1QueryResults = (output, context) => {
|
|
4225
|
-
|
|
3246
|
+
const retVal = (output || [])
|
|
4226
3247
|
.filter((e) => e != null)
|
|
4227
3248
|
.map((entry) => {
|
|
4228
3249
|
if (entry === null) {
|
|
@@ -4230,6 +3251,7 @@ const deserializeAws_json1_1QueryResults = (output, context) => {
|
|
|
4230
3251
|
}
|
|
4231
3252
|
return deserializeAws_json1_1ResultRows(entry, context);
|
|
4232
3253
|
});
|
|
3254
|
+
return retVal;
|
|
4233
3255
|
};
|
|
4234
3256
|
const deserializeAws_json1_1QueryStatistics = (output, context) => {
|
|
4235
3257
|
return {
|
|
@@ -4256,7 +3278,7 @@ const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
|
4256
3278
|
};
|
|
4257
3279
|
};
|
|
4258
3280
|
const deserializeAws_json1_1ResourcePolicies = (output, context) => {
|
|
4259
|
-
|
|
3281
|
+
const retVal = (output || [])
|
|
4260
3282
|
.filter((e) => e != null)
|
|
4261
3283
|
.map((entry) => {
|
|
4262
3284
|
if (entry === null) {
|
|
@@ -4264,6 +3286,7 @@ const deserializeAws_json1_1ResourcePolicies = (output, context) => {
|
|
|
4264
3286
|
}
|
|
4265
3287
|
return deserializeAws_json1_1ResourcePolicy(entry, context);
|
|
4266
3288
|
});
|
|
3289
|
+
return retVal;
|
|
4267
3290
|
};
|
|
4268
3291
|
const deserializeAws_json1_1ResourcePolicy = (output, context) => {
|
|
4269
3292
|
return {
|
|
@@ -4279,7 +3302,7 @@ const deserializeAws_json1_1ResultField = (output, context) => {
|
|
|
4279
3302
|
};
|
|
4280
3303
|
};
|
|
4281
3304
|
const deserializeAws_json1_1ResultRows = (output, context) => {
|
|
4282
|
-
|
|
3305
|
+
const retVal = (output || [])
|
|
4283
3306
|
.filter((e) => e != null)
|
|
4284
3307
|
.map((entry) => {
|
|
4285
3308
|
if (entry === null) {
|
|
@@ -4287,6 +3310,7 @@ const deserializeAws_json1_1ResultRows = (output, context) => {
|
|
|
4287
3310
|
}
|
|
4288
3311
|
return deserializeAws_json1_1ResultField(entry, context);
|
|
4289
3312
|
});
|
|
3313
|
+
return retVal;
|
|
4290
3314
|
};
|
|
4291
3315
|
const deserializeAws_json1_1SearchedLogStream = (output, context) => {
|
|
4292
3316
|
return {
|
|
@@ -4295,7 +3319,7 @@ const deserializeAws_json1_1SearchedLogStream = (output, context) => {
|
|
|
4295
3319
|
};
|
|
4296
3320
|
};
|
|
4297
3321
|
const deserializeAws_json1_1SearchedLogStreams = (output, context) => {
|
|
4298
|
-
|
|
3322
|
+
const retVal = (output || [])
|
|
4299
3323
|
.filter((e) => e != null)
|
|
4300
3324
|
.map((entry) => {
|
|
4301
3325
|
if (entry === null) {
|
|
@@ -4303,6 +3327,7 @@ const deserializeAws_json1_1SearchedLogStreams = (output, context) => {
|
|
|
4303
3327
|
}
|
|
4304
3328
|
return deserializeAws_json1_1SearchedLogStream(entry, context);
|
|
4305
3329
|
});
|
|
3330
|
+
return retVal;
|
|
4306
3331
|
};
|
|
4307
3332
|
const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
|
|
4308
3333
|
return {
|
|
@@ -4331,7 +3356,7 @@ const deserializeAws_json1_1SubscriptionFilter = (output, context) => {
|
|
|
4331
3356
|
};
|
|
4332
3357
|
};
|
|
4333
3358
|
const deserializeAws_json1_1SubscriptionFilters = (output, context) => {
|
|
4334
|
-
|
|
3359
|
+
const retVal = (output || [])
|
|
4335
3360
|
.filter((e) => e != null)
|
|
4336
3361
|
.map((entry) => {
|
|
4337
3362
|
if (entry === null) {
|
|
@@ -4339,6 +3364,7 @@ const deserializeAws_json1_1SubscriptionFilters = (output, context) => {
|
|
|
4339
3364
|
}
|
|
4340
3365
|
return deserializeAws_json1_1SubscriptionFilter(entry, context);
|
|
4341
3366
|
});
|
|
3367
|
+
return retVal;
|
|
4342
3368
|
};
|
|
4343
3369
|
const deserializeAws_json1_1Tags = (output, context) => {
|
|
4344
3370
|
return Object.entries(output).reduce((acc, [key, value]) => {
|