@aws-sdk/client-cloudwatch-logs 3.489.0 → 3.495.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/CloudWatchLogs.js +1 -159
- package/dist-cjs/CloudWatchLogsClient.js +1 -45
- package/dist-cjs/commands/AssociateKmsKeyCommand.js +1 -28
- package/dist-cjs/commands/CancelExportTaskCommand.js +1 -28
- package/dist-cjs/commands/CreateDeliveryCommand.js +1 -28
- package/dist-cjs/commands/CreateExportTaskCommand.js +1 -28
- package/dist-cjs/commands/CreateLogAnomalyDetectorCommand.js +1 -28
- package/dist-cjs/commands/CreateLogGroupCommand.js +1 -28
- package/dist-cjs/commands/CreateLogStreamCommand.js +1 -28
- package/dist-cjs/commands/DeleteAccountPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteDataProtectionPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteDeliveryCommand.js +1 -28
- package/dist-cjs/commands/DeleteDeliveryDestinationCommand.js +1 -28
- package/dist-cjs/commands/DeleteDeliveryDestinationPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteDeliverySourceCommand.js +1 -28
- package/dist-cjs/commands/DeleteDestinationCommand.js +1 -28
- package/dist-cjs/commands/DeleteLogAnomalyDetectorCommand.js +1 -28
- package/dist-cjs/commands/DeleteLogGroupCommand.js +1 -28
- package/dist-cjs/commands/DeleteLogStreamCommand.js +1 -28
- package/dist-cjs/commands/DeleteMetricFilterCommand.js +1 -28
- package/dist-cjs/commands/DeleteQueryDefinitionCommand.js +1 -28
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteRetentionPolicyCommand.js +1 -28
- package/dist-cjs/commands/DeleteSubscriptionFilterCommand.js +1 -28
- package/dist-cjs/commands/DescribeAccountPoliciesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDeliveriesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDeliveryDestinationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeDeliverySourcesCommand.js +1 -28
- package/dist-cjs/commands/DescribeDestinationsCommand.js +1 -28
- package/dist-cjs/commands/DescribeExportTasksCommand.js +1 -28
- package/dist-cjs/commands/DescribeLogGroupsCommand.js +1 -28
- package/dist-cjs/commands/DescribeLogStreamsCommand.js +1 -28
- package/dist-cjs/commands/DescribeMetricFiltersCommand.js +1 -28
- package/dist-cjs/commands/DescribeQueriesCommand.js +1 -28
- package/dist-cjs/commands/DescribeQueryDefinitionsCommand.js +1 -28
- package/dist-cjs/commands/DescribeResourcePoliciesCommand.js +1 -28
- package/dist-cjs/commands/DescribeSubscriptionFiltersCommand.js +1 -28
- package/dist-cjs/commands/DisassociateKmsKeyCommand.js +1 -28
- package/dist-cjs/commands/FilterLogEventsCommand.js +1 -28
- package/dist-cjs/commands/GetDataProtectionPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetDeliveryCommand.js +1 -28
- package/dist-cjs/commands/GetDeliveryDestinationCommand.js +1 -28
- package/dist-cjs/commands/GetDeliveryDestinationPolicyCommand.js +1 -28
- package/dist-cjs/commands/GetDeliverySourceCommand.js +1 -28
- package/dist-cjs/commands/GetLogAnomalyDetectorCommand.js +1 -28
- package/dist-cjs/commands/GetLogEventsCommand.js +1 -28
- package/dist-cjs/commands/GetLogGroupFieldsCommand.js +1 -28
- package/dist-cjs/commands/GetLogRecordCommand.js +1 -28
- package/dist-cjs/commands/GetQueryResultsCommand.js +1 -28
- package/dist-cjs/commands/ListAnomaliesCommand.js +1 -28
- package/dist-cjs/commands/ListLogAnomalyDetectorsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -28
- package/dist-cjs/commands/ListTagsLogGroupCommand.js +1 -28
- package/dist-cjs/commands/PutAccountPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutDataProtectionPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutDeliveryDestinationCommand.js +1 -28
- package/dist-cjs/commands/PutDeliveryDestinationPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutDeliverySourceCommand.js +1 -28
- package/dist-cjs/commands/PutDestinationCommand.js +1 -28
- package/dist-cjs/commands/PutDestinationPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutLogEventsCommand.js +1 -28
- package/dist-cjs/commands/PutMetricFilterCommand.js +1 -28
- package/dist-cjs/commands/PutQueryDefinitionCommand.js +1 -28
- package/dist-cjs/commands/PutResourcePolicyCommand.js +1 -28
- package/dist-cjs/commands/PutRetentionPolicyCommand.js +1 -28
- package/dist-cjs/commands/PutSubscriptionFilterCommand.js +1 -28
- package/dist-cjs/commands/StartLiveTailCommand.js +1 -33
- package/dist-cjs/commands/StartQueryCommand.js +1 -28
- package/dist-cjs/commands/StopQueryCommand.js +1 -28
- package/dist-cjs/commands/TagLogGroupCommand.js +1 -28
- package/dist-cjs/commands/TagResourceCommand.js +1 -28
- package/dist-cjs/commands/TestMetricFilterCommand.js +1 -28
- package/dist-cjs/commands/UntagLogGroupCommand.js +1 -28
- package/dist-cjs/commands/UntagResourceCommand.js +1 -28
- package/dist-cjs/commands/UpdateAnomalyCommand.js +1 -28
- package/dist-cjs/commands/UpdateLogAnomalyDetectorCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -77
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6032 -11
- package/dist-cjs/models/CloudWatchLogsServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -407
- package/dist-cjs/pagination/DescribeDeliveriesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDeliveryDestinationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDeliverySourcesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeDestinationsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeLogGroupsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeLogStreamsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeMetricFiltersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSubscriptionFiltersPaginator.js +1 -7
- package/dist-cjs/pagination/FilterLogEventsPaginator.js +1 -7
- package/dist-cjs/pagination/GetLogEventsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAnomaliesPaginator.js +1 -7
- package/dist-cjs/pagination/ListLogAnomalyDetectorsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -16
- package/dist-cjs/protocols/Aws_json1_1.js +1 -3914
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +43 -43
|
@@ -1,3914 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_ListTagsForResourceCommand = exports.se_ListLogAnomalyDetectorsCommand = exports.se_ListAnomaliesCommand = exports.se_GetQueryResultsCommand = exports.se_GetLogRecordCommand = exports.se_GetLogGroupFieldsCommand = exports.se_GetLogEventsCommand = exports.se_GetLogAnomalyDetectorCommand = exports.se_GetDeliverySourceCommand = exports.se_GetDeliveryDestinationPolicyCommand = exports.se_GetDeliveryDestinationCommand = exports.se_GetDeliveryCommand = exports.se_GetDataProtectionPolicyCommand = exports.se_FilterLogEventsCommand = exports.se_DisassociateKmsKeyCommand = exports.se_DescribeSubscriptionFiltersCommand = exports.se_DescribeResourcePoliciesCommand = exports.se_DescribeQueryDefinitionsCommand = exports.se_DescribeQueriesCommand = exports.se_DescribeMetricFiltersCommand = exports.se_DescribeLogStreamsCommand = exports.se_DescribeLogGroupsCommand = exports.se_DescribeExportTasksCommand = exports.se_DescribeDestinationsCommand = exports.se_DescribeDeliverySourcesCommand = exports.se_DescribeDeliveryDestinationsCommand = exports.se_DescribeDeliveriesCommand = exports.se_DescribeAccountPoliciesCommand = exports.se_DeleteSubscriptionFilterCommand = exports.se_DeleteRetentionPolicyCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteQueryDefinitionCommand = exports.se_DeleteMetricFilterCommand = exports.se_DeleteLogStreamCommand = exports.se_DeleteLogGroupCommand = exports.se_DeleteLogAnomalyDetectorCommand = exports.se_DeleteDestinationCommand = exports.se_DeleteDeliverySourceCommand = exports.se_DeleteDeliveryDestinationPolicyCommand = exports.se_DeleteDeliveryDestinationCommand = exports.se_DeleteDeliveryCommand = exports.se_DeleteDataProtectionPolicyCommand = exports.se_DeleteAccountPolicyCommand = exports.se_CreateLogStreamCommand = exports.se_CreateLogGroupCommand = exports.se_CreateLogAnomalyDetectorCommand = exports.se_CreateExportTaskCommand = exports.se_CreateDeliveryCommand = exports.se_CancelExportTaskCommand = exports.se_AssociateKmsKeyCommand = void 0;
|
|
4
|
-
exports.de_DescribeDeliverySourcesCommand = exports.de_DescribeDeliveryDestinationsCommand = exports.de_DescribeDeliveriesCommand = exports.de_DescribeAccountPoliciesCommand = exports.de_DeleteSubscriptionFilterCommand = exports.de_DeleteRetentionPolicyCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteQueryDefinitionCommand = exports.de_DeleteMetricFilterCommand = exports.de_DeleteLogStreamCommand = exports.de_DeleteLogGroupCommand = exports.de_DeleteLogAnomalyDetectorCommand = exports.de_DeleteDestinationCommand = exports.de_DeleteDeliverySourceCommand = exports.de_DeleteDeliveryDestinationPolicyCommand = exports.de_DeleteDeliveryDestinationCommand = exports.de_DeleteDeliveryCommand = exports.de_DeleteDataProtectionPolicyCommand = exports.de_DeleteAccountPolicyCommand = exports.de_CreateLogStreamCommand = exports.de_CreateLogGroupCommand = exports.de_CreateLogAnomalyDetectorCommand = exports.de_CreateExportTaskCommand = exports.de_CreateDeliveryCommand = exports.de_CancelExportTaskCommand = exports.de_AssociateKmsKeyCommand = exports.se_UpdateLogAnomalyDetectorCommand = exports.se_UpdateAnomalyCommand = exports.se_UntagResourceCommand = exports.se_UntagLogGroupCommand = exports.se_TestMetricFilterCommand = exports.se_TagResourceCommand = exports.se_TagLogGroupCommand = exports.se_StopQueryCommand = exports.se_StartQueryCommand = exports.se_StartLiveTailCommand = exports.se_PutSubscriptionFilterCommand = exports.se_PutRetentionPolicyCommand = exports.se_PutResourcePolicyCommand = exports.se_PutQueryDefinitionCommand = exports.se_PutMetricFilterCommand = exports.se_PutLogEventsCommand = exports.se_PutDestinationPolicyCommand = exports.se_PutDestinationCommand = exports.se_PutDeliverySourceCommand = exports.se_PutDeliveryDestinationPolicyCommand = exports.se_PutDeliveryDestinationCommand = exports.se_PutDataProtectionPolicyCommand = exports.se_PutAccountPolicyCommand = exports.se_ListTagsLogGroupCommand = void 0;
|
|
5
|
-
exports.de_UpdateLogAnomalyDetectorCommand = exports.de_UpdateAnomalyCommand = exports.de_UntagResourceCommand = exports.de_UntagLogGroupCommand = exports.de_TestMetricFilterCommand = exports.de_TagResourceCommand = exports.de_TagLogGroupCommand = exports.de_StopQueryCommand = exports.de_StartQueryCommand = exports.de_StartLiveTailCommand = exports.de_PutSubscriptionFilterCommand = exports.de_PutRetentionPolicyCommand = exports.de_PutResourcePolicyCommand = exports.de_PutQueryDefinitionCommand = exports.de_PutMetricFilterCommand = exports.de_PutLogEventsCommand = exports.de_PutDestinationPolicyCommand = exports.de_PutDestinationCommand = exports.de_PutDeliverySourceCommand = exports.de_PutDeliveryDestinationPolicyCommand = exports.de_PutDeliveryDestinationCommand = exports.de_PutDataProtectionPolicyCommand = exports.de_PutAccountPolicyCommand = exports.de_ListTagsLogGroupCommand = exports.de_ListTagsForResourceCommand = exports.de_ListLogAnomalyDetectorsCommand = exports.de_ListAnomaliesCommand = exports.de_GetQueryResultsCommand = exports.de_GetLogRecordCommand = exports.de_GetLogGroupFieldsCommand = exports.de_GetLogEventsCommand = exports.de_GetLogAnomalyDetectorCommand = exports.de_GetDeliverySourceCommand = exports.de_GetDeliveryDestinationPolicyCommand = exports.de_GetDeliveryDestinationCommand = exports.de_GetDeliveryCommand = exports.de_GetDataProtectionPolicyCommand = exports.de_FilterLogEventsCommand = exports.de_DisassociateKmsKeyCommand = exports.de_DescribeSubscriptionFiltersCommand = exports.de_DescribeResourcePoliciesCommand = exports.de_DescribeQueryDefinitionsCommand = exports.de_DescribeQueriesCommand = exports.de_DescribeMetricFiltersCommand = exports.de_DescribeLogStreamsCommand = exports.de_DescribeLogGroupsCommand = exports.de_DescribeExportTasksCommand = exports.de_DescribeDestinationsCommand = void 0;
|
|
6
|
-
const protocol_http_1 = require("@smithy/protocol-http");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
|
-
const CloudWatchLogsServiceException_1 = require("../models/CloudWatchLogsServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const se_AssociateKmsKeyCommand = async (input, context) => {
|
|
12
|
-
const headers = sharedHeaders("AssociateKmsKey");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
15
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
|
-
};
|
|
17
|
-
exports.se_AssociateKmsKeyCommand = se_AssociateKmsKeyCommand;
|
|
18
|
-
const se_CancelExportTaskCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CancelExportTask");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
exports.se_CancelExportTaskCommand = se_CancelExportTaskCommand;
|
|
25
|
-
const se_CreateDeliveryCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CreateDelivery");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
exports.se_CreateDeliveryCommand = se_CreateDeliveryCommand;
|
|
32
|
-
const se_CreateExportTaskCommand = async (input, context) => {
|
|
33
|
-
const headers = sharedHeaders("CreateExportTask");
|
|
34
|
-
let body;
|
|
35
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
36
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
37
|
-
};
|
|
38
|
-
exports.se_CreateExportTaskCommand = se_CreateExportTaskCommand;
|
|
39
|
-
const se_CreateLogAnomalyDetectorCommand = async (input, context) => {
|
|
40
|
-
const headers = sharedHeaders("CreateLogAnomalyDetector");
|
|
41
|
-
let body;
|
|
42
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
43
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
44
|
-
};
|
|
45
|
-
exports.se_CreateLogAnomalyDetectorCommand = se_CreateLogAnomalyDetectorCommand;
|
|
46
|
-
const se_CreateLogGroupCommand = async (input, context) => {
|
|
47
|
-
const headers = sharedHeaders("CreateLogGroup");
|
|
48
|
-
let body;
|
|
49
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
50
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
51
|
-
};
|
|
52
|
-
exports.se_CreateLogGroupCommand = se_CreateLogGroupCommand;
|
|
53
|
-
const se_CreateLogStreamCommand = async (input, context) => {
|
|
54
|
-
const headers = sharedHeaders("CreateLogStream");
|
|
55
|
-
let body;
|
|
56
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
57
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
|
-
};
|
|
59
|
-
exports.se_CreateLogStreamCommand = se_CreateLogStreamCommand;
|
|
60
|
-
const se_DeleteAccountPolicyCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("DeleteAccountPolicy");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
exports.se_DeleteAccountPolicyCommand = se_DeleteAccountPolicyCommand;
|
|
67
|
-
const se_DeleteDataProtectionPolicyCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("DeleteDataProtectionPolicy");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
exports.se_DeleteDataProtectionPolicyCommand = se_DeleteDataProtectionPolicyCommand;
|
|
74
|
-
const se_DeleteDeliveryCommand = async (input, context) => {
|
|
75
|
-
const headers = sharedHeaders("DeleteDelivery");
|
|
76
|
-
let body;
|
|
77
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
78
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
79
|
-
};
|
|
80
|
-
exports.se_DeleteDeliveryCommand = se_DeleteDeliveryCommand;
|
|
81
|
-
const se_DeleteDeliveryDestinationCommand = async (input, context) => {
|
|
82
|
-
const headers = sharedHeaders("DeleteDeliveryDestination");
|
|
83
|
-
let body;
|
|
84
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
85
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
-
};
|
|
87
|
-
exports.se_DeleteDeliveryDestinationCommand = se_DeleteDeliveryDestinationCommand;
|
|
88
|
-
const se_DeleteDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
89
|
-
const headers = sharedHeaders("DeleteDeliveryDestinationPolicy");
|
|
90
|
-
let body;
|
|
91
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
92
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
93
|
-
};
|
|
94
|
-
exports.se_DeleteDeliveryDestinationPolicyCommand = se_DeleteDeliveryDestinationPolicyCommand;
|
|
95
|
-
const se_DeleteDeliverySourceCommand = async (input, context) => {
|
|
96
|
-
const headers = sharedHeaders("DeleteDeliverySource");
|
|
97
|
-
let body;
|
|
98
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
99
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
|
-
};
|
|
101
|
-
exports.se_DeleteDeliverySourceCommand = se_DeleteDeliverySourceCommand;
|
|
102
|
-
const se_DeleteDestinationCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("DeleteDestination");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
exports.se_DeleteDestinationCommand = se_DeleteDestinationCommand;
|
|
109
|
-
const se_DeleteLogAnomalyDetectorCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("DeleteLogAnomalyDetector");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
exports.se_DeleteLogAnomalyDetectorCommand = se_DeleteLogAnomalyDetectorCommand;
|
|
116
|
-
const se_DeleteLogGroupCommand = async (input, context) => {
|
|
117
|
-
const headers = sharedHeaders("DeleteLogGroup");
|
|
118
|
-
let body;
|
|
119
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
120
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
121
|
-
};
|
|
122
|
-
exports.se_DeleteLogGroupCommand = se_DeleteLogGroupCommand;
|
|
123
|
-
const se_DeleteLogStreamCommand = async (input, context) => {
|
|
124
|
-
const headers = sharedHeaders("DeleteLogStream");
|
|
125
|
-
let body;
|
|
126
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
127
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
|
-
};
|
|
129
|
-
exports.se_DeleteLogStreamCommand = se_DeleteLogStreamCommand;
|
|
130
|
-
const se_DeleteMetricFilterCommand = async (input, context) => {
|
|
131
|
-
const headers = sharedHeaders("DeleteMetricFilter");
|
|
132
|
-
let body;
|
|
133
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
134
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
135
|
-
};
|
|
136
|
-
exports.se_DeleteMetricFilterCommand = se_DeleteMetricFilterCommand;
|
|
137
|
-
const se_DeleteQueryDefinitionCommand = async (input, context) => {
|
|
138
|
-
const headers = sharedHeaders("DeleteQueryDefinition");
|
|
139
|
-
let body;
|
|
140
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
141
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
|
-
};
|
|
143
|
-
exports.se_DeleteQueryDefinitionCommand = se_DeleteQueryDefinitionCommand;
|
|
144
|
-
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
151
|
-
const se_DeleteRetentionPolicyCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("DeleteRetentionPolicy");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
exports.se_DeleteRetentionPolicyCommand = se_DeleteRetentionPolicyCommand;
|
|
158
|
-
const se_DeleteSubscriptionFilterCommand = async (input, context) => {
|
|
159
|
-
const headers = sharedHeaders("DeleteSubscriptionFilter");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
162
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
163
|
-
};
|
|
164
|
-
exports.se_DeleteSubscriptionFilterCommand = se_DeleteSubscriptionFilterCommand;
|
|
165
|
-
const se_DescribeAccountPoliciesCommand = async (input, context) => {
|
|
166
|
-
const headers = sharedHeaders("DescribeAccountPolicies");
|
|
167
|
-
let body;
|
|
168
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
169
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
170
|
-
};
|
|
171
|
-
exports.se_DescribeAccountPoliciesCommand = se_DescribeAccountPoliciesCommand;
|
|
172
|
-
const se_DescribeDeliveriesCommand = async (input, context) => {
|
|
173
|
-
const headers = sharedHeaders("DescribeDeliveries");
|
|
174
|
-
let body;
|
|
175
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
176
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
177
|
-
};
|
|
178
|
-
exports.se_DescribeDeliveriesCommand = se_DescribeDeliveriesCommand;
|
|
179
|
-
const se_DescribeDeliveryDestinationsCommand = async (input, context) => {
|
|
180
|
-
const headers = sharedHeaders("DescribeDeliveryDestinations");
|
|
181
|
-
let body;
|
|
182
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
183
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
|
-
};
|
|
185
|
-
exports.se_DescribeDeliveryDestinationsCommand = se_DescribeDeliveryDestinationsCommand;
|
|
186
|
-
const se_DescribeDeliverySourcesCommand = async (input, context) => {
|
|
187
|
-
const headers = sharedHeaders("DescribeDeliverySources");
|
|
188
|
-
let body;
|
|
189
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
190
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
|
-
};
|
|
192
|
-
exports.se_DescribeDeliverySourcesCommand = se_DescribeDeliverySourcesCommand;
|
|
193
|
-
const se_DescribeDestinationsCommand = async (input, context) => {
|
|
194
|
-
const headers = sharedHeaders("DescribeDestinations");
|
|
195
|
-
let body;
|
|
196
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
197
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
|
-
};
|
|
199
|
-
exports.se_DescribeDestinationsCommand = se_DescribeDestinationsCommand;
|
|
200
|
-
const se_DescribeExportTasksCommand = async (input, context) => {
|
|
201
|
-
const headers = sharedHeaders("DescribeExportTasks");
|
|
202
|
-
let body;
|
|
203
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
204
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
|
-
};
|
|
206
|
-
exports.se_DescribeExportTasksCommand = se_DescribeExportTasksCommand;
|
|
207
|
-
const se_DescribeLogGroupsCommand = async (input, context) => {
|
|
208
|
-
const headers = sharedHeaders("DescribeLogGroups");
|
|
209
|
-
let body;
|
|
210
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
211
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
-
};
|
|
213
|
-
exports.se_DescribeLogGroupsCommand = se_DescribeLogGroupsCommand;
|
|
214
|
-
const se_DescribeLogStreamsCommand = async (input, context) => {
|
|
215
|
-
const headers = sharedHeaders("DescribeLogStreams");
|
|
216
|
-
let body;
|
|
217
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
218
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
219
|
-
};
|
|
220
|
-
exports.se_DescribeLogStreamsCommand = se_DescribeLogStreamsCommand;
|
|
221
|
-
const se_DescribeMetricFiltersCommand = async (input, context) => {
|
|
222
|
-
const headers = sharedHeaders("DescribeMetricFilters");
|
|
223
|
-
let body;
|
|
224
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
225
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
226
|
-
};
|
|
227
|
-
exports.se_DescribeMetricFiltersCommand = se_DescribeMetricFiltersCommand;
|
|
228
|
-
const se_DescribeQueriesCommand = async (input, context) => {
|
|
229
|
-
const headers = sharedHeaders("DescribeQueries");
|
|
230
|
-
let body;
|
|
231
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
232
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
|
-
};
|
|
234
|
-
exports.se_DescribeQueriesCommand = se_DescribeQueriesCommand;
|
|
235
|
-
const se_DescribeQueryDefinitionsCommand = async (input, context) => {
|
|
236
|
-
const headers = sharedHeaders("DescribeQueryDefinitions");
|
|
237
|
-
let body;
|
|
238
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
239
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
240
|
-
};
|
|
241
|
-
exports.se_DescribeQueryDefinitionsCommand = se_DescribeQueryDefinitionsCommand;
|
|
242
|
-
const se_DescribeResourcePoliciesCommand = async (input, context) => {
|
|
243
|
-
const headers = sharedHeaders("DescribeResourcePolicies");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
246
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
|
-
};
|
|
248
|
-
exports.se_DescribeResourcePoliciesCommand = se_DescribeResourcePoliciesCommand;
|
|
249
|
-
const se_DescribeSubscriptionFiltersCommand = async (input, context) => {
|
|
250
|
-
const headers = sharedHeaders("DescribeSubscriptionFilters");
|
|
251
|
-
let body;
|
|
252
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
253
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
254
|
-
};
|
|
255
|
-
exports.se_DescribeSubscriptionFiltersCommand = se_DescribeSubscriptionFiltersCommand;
|
|
256
|
-
const se_DisassociateKmsKeyCommand = async (input, context) => {
|
|
257
|
-
const headers = sharedHeaders("DisassociateKmsKey");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
260
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
261
|
-
};
|
|
262
|
-
exports.se_DisassociateKmsKeyCommand = se_DisassociateKmsKeyCommand;
|
|
263
|
-
const se_FilterLogEventsCommand = async (input, context) => {
|
|
264
|
-
const headers = sharedHeaders("FilterLogEvents");
|
|
265
|
-
let body;
|
|
266
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
|
-
};
|
|
269
|
-
exports.se_FilterLogEventsCommand = se_FilterLogEventsCommand;
|
|
270
|
-
const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
271
|
-
const headers = sharedHeaders("GetDataProtectionPolicy");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
274
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
275
|
-
};
|
|
276
|
-
exports.se_GetDataProtectionPolicyCommand = se_GetDataProtectionPolicyCommand;
|
|
277
|
-
const se_GetDeliveryCommand = async (input, context) => {
|
|
278
|
-
const headers = sharedHeaders("GetDelivery");
|
|
279
|
-
let body;
|
|
280
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
281
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
282
|
-
};
|
|
283
|
-
exports.se_GetDeliveryCommand = se_GetDeliveryCommand;
|
|
284
|
-
const se_GetDeliveryDestinationCommand = async (input, context) => {
|
|
285
|
-
const headers = sharedHeaders("GetDeliveryDestination");
|
|
286
|
-
let body;
|
|
287
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
288
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
289
|
-
};
|
|
290
|
-
exports.se_GetDeliveryDestinationCommand = se_GetDeliveryDestinationCommand;
|
|
291
|
-
const se_GetDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
292
|
-
const headers = sharedHeaders("GetDeliveryDestinationPolicy");
|
|
293
|
-
let body;
|
|
294
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
295
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
296
|
-
};
|
|
297
|
-
exports.se_GetDeliveryDestinationPolicyCommand = se_GetDeliveryDestinationPolicyCommand;
|
|
298
|
-
const se_GetDeliverySourceCommand = async (input, context) => {
|
|
299
|
-
const headers = sharedHeaders("GetDeliverySource");
|
|
300
|
-
let body;
|
|
301
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
302
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
303
|
-
};
|
|
304
|
-
exports.se_GetDeliverySourceCommand = se_GetDeliverySourceCommand;
|
|
305
|
-
const se_GetLogAnomalyDetectorCommand = async (input, context) => {
|
|
306
|
-
const headers = sharedHeaders("GetLogAnomalyDetector");
|
|
307
|
-
let body;
|
|
308
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
309
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
310
|
-
};
|
|
311
|
-
exports.se_GetLogAnomalyDetectorCommand = se_GetLogAnomalyDetectorCommand;
|
|
312
|
-
const se_GetLogEventsCommand = async (input, context) => {
|
|
313
|
-
const headers = sharedHeaders("GetLogEvents");
|
|
314
|
-
let body;
|
|
315
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
316
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
|
-
};
|
|
318
|
-
exports.se_GetLogEventsCommand = se_GetLogEventsCommand;
|
|
319
|
-
const se_GetLogGroupFieldsCommand = async (input, context) => {
|
|
320
|
-
const headers = sharedHeaders("GetLogGroupFields");
|
|
321
|
-
let body;
|
|
322
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
323
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
324
|
-
};
|
|
325
|
-
exports.se_GetLogGroupFieldsCommand = se_GetLogGroupFieldsCommand;
|
|
326
|
-
const se_GetLogRecordCommand = async (input, context) => {
|
|
327
|
-
const headers = sharedHeaders("GetLogRecord");
|
|
328
|
-
let body;
|
|
329
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
330
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
331
|
-
};
|
|
332
|
-
exports.se_GetLogRecordCommand = se_GetLogRecordCommand;
|
|
333
|
-
const se_GetQueryResultsCommand = async (input, context) => {
|
|
334
|
-
const headers = sharedHeaders("GetQueryResults");
|
|
335
|
-
let body;
|
|
336
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
337
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
-
};
|
|
339
|
-
exports.se_GetQueryResultsCommand = se_GetQueryResultsCommand;
|
|
340
|
-
const se_ListAnomaliesCommand = async (input, context) => {
|
|
341
|
-
const headers = sharedHeaders("ListAnomalies");
|
|
342
|
-
let body;
|
|
343
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
344
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
|
-
};
|
|
346
|
-
exports.se_ListAnomaliesCommand = se_ListAnomaliesCommand;
|
|
347
|
-
const se_ListLogAnomalyDetectorsCommand = async (input, context) => {
|
|
348
|
-
const headers = sharedHeaders("ListLogAnomalyDetectors");
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
351
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
352
|
-
};
|
|
353
|
-
exports.se_ListLogAnomalyDetectorsCommand = se_ListLogAnomalyDetectorsCommand;
|
|
354
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
355
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
356
|
-
let body;
|
|
357
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
358
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
359
|
-
};
|
|
360
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
361
|
-
const se_ListTagsLogGroupCommand = async (input, context) => {
|
|
362
|
-
const headers = sharedHeaders("ListTagsLogGroup");
|
|
363
|
-
let body;
|
|
364
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
365
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
366
|
-
};
|
|
367
|
-
exports.se_ListTagsLogGroupCommand = se_ListTagsLogGroupCommand;
|
|
368
|
-
const se_PutAccountPolicyCommand = async (input, context) => {
|
|
369
|
-
const headers = sharedHeaders("PutAccountPolicy");
|
|
370
|
-
let body;
|
|
371
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
372
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
373
|
-
};
|
|
374
|
-
exports.se_PutAccountPolicyCommand = se_PutAccountPolicyCommand;
|
|
375
|
-
const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
376
|
-
const headers = sharedHeaders("PutDataProtectionPolicy");
|
|
377
|
-
let body;
|
|
378
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
379
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
380
|
-
};
|
|
381
|
-
exports.se_PutDataProtectionPolicyCommand = se_PutDataProtectionPolicyCommand;
|
|
382
|
-
const se_PutDeliveryDestinationCommand = async (input, context) => {
|
|
383
|
-
const headers = sharedHeaders("PutDeliveryDestination");
|
|
384
|
-
let body;
|
|
385
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
386
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
387
|
-
};
|
|
388
|
-
exports.se_PutDeliveryDestinationCommand = se_PutDeliveryDestinationCommand;
|
|
389
|
-
const se_PutDeliveryDestinationPolicyCommand = async (input, context) => {
|
|
390
|
-
const headers = sharedHeaders("PutDeliveryDestinationPolicy");
|
|
391
|
-
let body;
|
|
392
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
393
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
394
|
-
};
|
|
395
|
-
exports.se_PutDeliveryDestinationPolicyCommand = se_PutDeliveryDestinationPolicyCommand;
|
|
396
|
-
const se_PutDeliverySourceCommand = async (input, context) => {
|
|
397
|
-
const headers = sharedHeaders("PutDeliverySource");
|
|
398
|
-
let body;
|
|
399
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
400
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
|
-
};
|
|
402
|
-
exports.se_PutDeliverySourceCommand = se_PutDeliverySourceCommand;
|
|
403
|
-
const se_PutDestinationCommand = async (input, context) => {
|
|
404
|
-
const headers = sharedHeaders("PutDestination");
|
|
405
|
-
let body;
|
|
406
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
407
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
|
-
};
|
|
409
|
-
exports.se_PutDestinationCommand = se_PutDestinationCommand;
|
|
410
|
-
const se_PutDestinationPolicyCommand = async (input, context) => {
|
|
411
|
-
const headers = sharedHeaders("PutDestinationPolicy");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
414
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
415
|
-
};
|
|
416
|
-
exports.se_PutDestinationPolicyCommand = se_PutDestinationPolicyCommand;
|
|
417
|
-
const se_PutLogEventsCommand = async (input, context) => {
|
|
418
|
-
const headers = sharedHeaders("PutLogEvents");
|
|
419
|
-
let body;
|
|
420
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
421
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
422
|
-
};
|
|
423
|
-
exports.se_PutLogEventsCommand = se_PutLogEventsCommand;
|
|
424
|
-
const se_PutMetricFilterCommand = async (input, context) => {
|
|
425
|
-
const headers = sharedHeaders("PutMetricFilter");
|
|
426
|
-
let body;
|
|
427
|
-
body = JSON.stringify(se_PutMetricFilterRequest(input, context));
|
|
428
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
429
|
-
};
|
|
430
|
-
exports.se_PutMetricFilterCommand = se_PutMetricFilterCommand;
|
|
431
|
-
const se_PutQueryDefinitionCommand = async (input, context) => {
|
|
432
|
-
const headers = sharedHeaders("PutQueryDefinition");
|
|
433
|
-
let body;
|
|
434
|
-
body = JSON.stringify(se_PutQueryDefinitionRequest(input, context));
|
|
435
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
436
|
-
};
|
|
437
|
-
exports.se_PutQueryDefinitionCommand = se_PutQueryDefinitionCommand;
|
|
438
|
-
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
439
|
-
const headers = sharedHeaders("PutResourcePolicy");
|
|
440
|
-
let body;
|
|
441
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
442
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
443
|
-
};
|
|
444
|
-
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
445
|
-
const se_PutRetentionPolicyCommand = async (input, context) => {
|
|
446
|
-
const headers = sharedHeaders("PutRetentionPolicy");
|
|
447
|
-
let body;
|
|
448
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
449
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
450
|
-
};
|
|
451
|
-
exports.se_PutRetentionPolicyCommand = se_PutRetentionPolicyCommand;
|
|
452
|
-
const se_PutSubscriptionFilterCommand = async (input, context) => {
|
|
453
|
-
const headers = sharedHeaders("PutSubscriptionFilter");
|
|
454
|
-
let body;
|
|
455
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
456
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
457
|
-
};
|
|
458
|
-
exports.se_PutSubscriptionFilterCommand = se_PutSubscriptionFilterCommand;
|
|
459
|
-
const se_StartLiveTailCommand = async (input, context) => {
|
|
460
|
-
const headers = sharedHeaders("StartLiveTail");
|
|
461
|
-
let body;
|
|
462
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
463
|
-
let { hostname: resolvedHostname } = await context.endpoint();
|
|
464
|
-
if (context.disableHostPrefix !== true) {
|
|
465
|
-
resolvedHostname = "streaming-" + resolvedHostname;
|
|
466
|
-
if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
|
|
467
|
-
throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
return buildHttpRpcRequest(context, headers, "/", resolvedHostname, body);
|
|
471
|
-
};
|
|
472
|
-
exports.se_StartLiveTailCommand = se_StartLiveTailCommand;
|
|
473
|
-
const se_StartQueryCommand = async (input, context) => {
|
|
474
|
-
const headers = sharedHeaders("StartQuery");
|
|
475
|
-
let body;
|
|
476
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
477
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
|
-
};
|
|
479
|
-
exports.se_StartQueryCommand = se_StartQueryCommand;
|
|
480
|
-
const se_StopQueryCommand = async (input, context) => {
|
|
481
|
-
const headers = sharedHeaders("StopQuery");
|
|
482
|
-
let body;
|
|
483
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
484
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
485
|
-
};
|
|
486
|
-
exports.se_StopQueryCommand = se_StopQueryCommand;
|
|
487
|
-
const se_TagLogGroupCommand = async (input, context) => {
|
|
488
|
-
const headers = sharedHeaders("TagLogGroup");
|
|
489
|
-
let body;
|
|
490
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
491
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
492
|
-
};
|
|
493
|
-
exports.se_TagLogGroupCommand = se_TagLogGroupCommand;
|
|
494
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
495
|
-
const headers = sharedHeaders("TagResource");
|
|
496
|
-
let body;
|
|
497
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
498
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
499
|
-
};
|
|
500
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
501
|
-
const se_TestMetricFilterCommand = async (input, context) => {
|
|
502
|
-
const headers = sharedHeaders("TestMetricFilter");
|
|
503
|
-
let body;
|
|
504
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
505
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
506
|
-
};
|
|
507
|
-
exports.se_TestMetricFilterCommand = se_TestMetricFilterCommand;
|
|
508
|
-
const se_UntagLogGroupCommand = async (input, context) => {
|
|
509
|
-
const headers = sharedHeaders("UntagLogGroup");
|
|
510
|
-
let body;
|
|
511
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
512
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
513
|
-
};
|
|
514
|
-
exports.se_UntagLogGroupCommand = se_UntagLogGroupCommand;
|
|
515
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
516
|
-
const headers = sharedHeaders("UntagResource");
|
|
517
|
-
let body;
|
|
518
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
519
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
520
|
-
};
|
|
521
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
522
|
-
const se_UpdateAnomalyCommand = async (input, context) => {
|
|
523
|
-
const headers = sharedHeaders("UpdateAnomaly");
|
|
524
|
-
let body;
|
|
525
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
526
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
527
|
-
};
|
|
528
|
-
exports.se_UpdateAnomalyCommand = se_UpdateAnomalyCommand;
|
|
529
|
-
const se_UpdateLogAnomalyDetectorCommand = async (input, context) => {
|
|
530
|
-
const headers = sharedHeaders("UpdateLogAnomalyDetector");
|
|
531
|
-
let body;
|
|
532
|
-
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
533
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
534
|
-
};
|
|
535
|
-
exports.se_UpdateLogAnomalyDetectorCommand = se_UpdateLogAnomalyDetectorCommand;
|
|
536
|
-
const de_AssociateKmsKeyCommand = async (output, context) => {
|
|
537
|
-
if (output.statusCode >= 300) {
|
|
538
|
-
return de_AssociateKmsKeyCommandError(output, context);
|
|
539
|
-
}
|
|
540
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
541
|
-
const response = {
|
|
542
|
-
$metadata: deserializeMetadata(output),
|
|
543
|
-
};
|
|
544
|
-
return response;
|
|
545
|
-
};
|
|
546
|
-
exports.de_AssociateKmsKeyCommand = de_AssociateKmsKeyCommand;
|
|
547
|
-
const de_AssociateKmsKeyCommandError = async (output, context) => {
|
|
548
|
-
const parsedOutput = {
|
|
549
|
-
...output,
|
|
550
|
-
body: await parseErrorBody(output.body, context),
|
|
551
|
-
};
|
|
552
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
553
|
-
switch (errorCode) {
|
|
554
|
-
case "InvalidParameterException":
|
|
555
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
556
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
557
|
-
case "OperationAbortedException":
|
|
558
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
559
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
560
|
-
case "ResourceNotFoundException":
|
|
561
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
562
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
563
|
-
case "ServiceUnavailableException":
|
|
564
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
565
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
566
|
-
default:
|
|
567
|
-
const parsedBody = parsedOutput.body;
|
|
568
|
-
return throwDefaultError({
|
|
569
|
-
output,
|
|
570
|
-
parsedBody,
|
|
571
|
-
errorCode,
|
|
572
|
-
});
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
const de_CancelExportTaskCommand = async (output, context) => {
|
|
576
|
-
if (output.statusCode >= 300) {
|
|
577
|
-
return de_CancelExportTaskCommandError(output, context);
|
|
578
|
-
}
|
|
579
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
580
|
-
const response = {
|
|
581
|
-
$metadata: deserializeMetadata(output),
|
|
582
|
-
};
|
|
583
|
-
return response;
|
|
584
|
-
};
|
|
585
|
-
exports.de_CancelExportTaskCommand = de_CancelExportTaskCommand;
|
|
586
|
-
const de_CancelExportTaskCommandError = async (output, context) => {
|
|
587
|
-
const parsedOutput = {
|
|
588
|
-
...output,
|
|
589
|
-
body: await parseErrorBody(output.body, context),
|
|
590
|
-
};
|
|
591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
592
|
-
switch (errorCode) {
|
|
593
|
-
case "InvalidOperationException":
|
|
594
|
-
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
595
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
596
|
-
case "InvalidParameterException":
|
|
597
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
598
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
599
|
-
case "ResourceNotFoundException":
|
|
600
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
601
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
602
|
-
case "ServiceUnavailableException":
|
|
603
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
604
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
605
|
-
default:
|
|
606
|
-
const parsedBody = parsedOutput.body;
|
|
607
|
-
return throwDefaultError({
|
|
608
|
-
output,
|
|
609
|
-
parsedBody,
|
|
610
|
-
errorCode,
|
|
611
|
-
});
|
|
612
|
-
}
|
|
613
|
-
};
|
|
614
|
-
const de_CreateDeliveryCommand = async (output, context) => {
|
|
615
|
-
if (output.statusCode >= 300) {
|
|
616
|
-
return de_CreateDeliveryCommandError(output, context);
|
|
617
|
-
}
|
|
618
|
-
const data = await parseBody(output.body, context);
|
|
619
|
-
let contents = {};
|
|
620
|
-
contents = (0, smithy_client_1._json)(data);
|
|
621
|
-
const response = {
|
|
622
|
-
$metadata: deserializeMetadata(output),
|
|
623
|
-
...contents,
|
|
624
|
-
};
|
|
625
|
-
return response;
|
|
626
|
-
};
|
|
627
|
-
exports.de_CreateDeliveryCommand = de_CreateDeliveryCommand;
|
|
628
|
-
const de_CreateDeliveryCommandError = async (output, context) => {
|
|
629
|
-
const parsedOutput = {
|
|
630
|
-
...output,
|
|
631
|
-
body: await parseErrorBody(output.body, context),
|
|
632
|
-
};
|
|
633
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
634
|
-
switch (errorCode) {
|
|
635
|
-
case "AccessDeniedException":
|
|
636
|
-
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
637
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
638
|
-
case "ConflictException":
|
|
639
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
640
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ResourceNotFoundException":
|
|
642
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
643
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
644
|
-
case "ServiceQuotaExceededException":
|
|
645
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
646
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
647
|
-
case "ServiceUnavailableException":
|
|
648
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
649
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
650
|
-
case "ThrottlingException":
|
|
651
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
652
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ValidationException":
|
|
654
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
655
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
656
|
-
default:
|
|
657
|
-
const parsedBody = parsedOutput.body;
|
|
658
|
-
return throwDefaultError({
|
|
659
|
-
output,
|
|
660
|
-
parsedBody,
|
|
661
|
-
errorCode,
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
};
|
|
665
|
-
const de_CreateExportTaskCommand = async (output, context) => {
|
|
666
|
-
if (output.statusCode >= 300) {
|
|
667
|
-
return de_CreateExportTaskCommandError(output, context);
|
|
668
|
-
}
|
|
669
|
-
const data = await parseBody(output.body, context);
|
|
670
|
-
let contents = {};
|
|
671
|
-
contents = (0, smithy_client_1._json)(data);
|
|
672
|
-
const response = {
|
|
673
|
-
$metadata: deserializeMetadata(output),
|
|
674
|
-
...contents,
|
|
675
|
-
};
|
|
676
|
-
return response;
|
|
677
|
-
};
|
|
678
|
-
exports.de_CreateExportTaskCommand = de_CreateExportTaskCommand;
|
|
679
|
-
const de_CreateExportTaskCommandError = async (output, context) => {
|
|
680
|
-
const parsedOutput = {
|
|
681
|
-
...output,
|
|
682
|
-
body: await parseErrorBody(output.body, context),
|
|
683
|
-
};
|
|
684
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
685
|
-
switch (errorCode) {
|
|
686
|
-
case "InvalidParameterException":
|
|
687
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
688
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
689
|
-
case "LimitExceededException":
|
|
690
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
691
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
692
|
-
case "OperationAbortedException":
|
|
693
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
694
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
695
|
-
case "ResourceAlreadyExistsException":
|
|
696
|
-
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
697
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
698
|
-
case "ResourceNotFoundException":
|
|
699
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
700
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
701
|
-
case "ServiceUnavailableException":
|
|
702
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
703
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
704
|
-
default:
|
|
705
|
-
const parsedBody = parsedOutput.body;
|
|
706
|
-
return throwDefaultError({
|
|
707
|
-
output,
|
|
708
|
-
parsedBody,
|
|
709
|
-
errorCode,
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
const de_CreateLogAnomalyDetectorCommand = async (output, context) => {
|
|
714
|
-
if (output.statusCode >= 300) {
|
|
715
|
-
return de_CreateLogAnomalyDetectorCommandError(output, context);
|
|
716
|
-
}
|
|
717
|
-
const data = await parseBody(output.body, context);
|
|
718
|
-
let contents = {};
|
|
719
|
-
contents = (0, smithy_client_1._json)(data);
|
|
720
|
-
const response = {
|
|
721
|
-
$metadata: deserializeMetadata(output),
|
|
722
|
-
...contents,
|
|
723
|
-
};
|
|
724
|
-
return response;
|
|
725
|
-
};
|
|
726
|
-
exports.de_CreateLogAnomalyDetectorCommand = de_CreateLogAnomalyDetectorCommand;
|
|
727
|
-
const de_CreateLogAnomalyDetectorCommandError = async (output, context) => {
|
|
728
|
-
const parsedOutput = {
|
|
729
|
-
...output,
|
|
730
|
-
body: await parseErrorBody(output.body, context),
|
|
731
|
-
};
|
|
732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
|
-
switch (errorCode) {
|
|
734
|
-
case "InvalidParameterException":
|
|
735
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
736
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
737
|
-
case "LimitExceededException":
|
|
738
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
739
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
740
|
-
case "OperationAbortedException":
|
|
741
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
742
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
743
|
-
case "ResourceNotFoundException":
|
|
744
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
745
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
746
|
-
case "ServiceUnavailableException":
|
|
747
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
748
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
749
|
-
default:
|
|
750
|
-
const parsedBody = parsedOutput.body;
|
|
751
|
-
return throwDefaultError({
|
|
752
|
-
output,
|
|
753
|
-
parsedBody,
|
|
754
|
-
errorCode,
|
|
755
|
-
});
|
|
756
|
-
}
|
|
757
|
-
};
|
|
758
|
-
const de_CreateLogGroupCommand = async (output, context) => {
|
|
759
|
-
if (output.statusCode >= 300) {
|
|
760
|
-
return de_CreateLogGroupCommandError(output, context);
|
|
761
|
-
}
|
|
762
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
763
|
-
const response = {
|
|
764
|
-
$metadata: deserializeMetadata(output),
|
|
765
|
-
};
|
|
766
|
-
return response;
|
|
767
|
-
};
|
|
768
|
-
exports.de_CreateLogGroupCommand = de_CreateLogGroupCommand;
|
|
769
|
-
const de_CreateLogGroupCommandError = async (output, context) => {
|
|
770
|
-
const parsedOutput = {
|
|
771
|
-
...output,
|
|
772
|
-
body: await parseErrorBody(output.body, context),
|
|
773
|
-
};
|
|
774
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
775
|
-
switch (errorCode) {
|
|
776
|
-
case "InvalidParameterException":
|
|
777
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
778
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
779
|
-
case "LimitExceededException":
|
|
780
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
781
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
782
|
-
case "OperationAbortedException":
|
|
783
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
784
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ResourceAlreadyExistsException":
|
|
786
|
-
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
787
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
788
|
-
case "ServiceUnavailableException":
|
|
789
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
790
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
791
|
-
default:
|
|
792
|
-
const parsedBody = parsedOutput.body;
|
|
793
|
-
return throwDefaultError({
|
|
794
|
-
output,
|
|
795
|
-
parsedBody,
|
|
796
|
-
errorCode,
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
|
-
const de_CreateLogStreamCommand = async (output, context) => {
|
|
801
|
-
if (output.statusCode >= 300) {
|
|
802
|
-
return de_CreateLogStreamCommandError(output, context);
|
|
803
|
-
}
|
|
804
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
805
|
-
const response = {
|
|
806
|
-
$metadata: deserializeMetadata(output),
|
|
807
|
-
};
|
|
808
|
-
return response;
|
|
809
|
-
};
|
|
810
|
-
exports.de_CreateLogStreamCommand = de_CreateLogStreamCommand;
|
|
811
|
-
const de_CreateLogStreamCommandError = async (output, context) => {
|
|
812
|
-
const parsedOutput = {
|
|
813
|
-
...output,
|
|
814
|
-
body: await parseErrorBody(output.body, context),
|
|
815
|
-
};
|
|
816
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
817
|
-
switch (errorCode) {
|
|
818
|
-
case "InvalidParameterException":
|
|
819
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
820
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
821
|
-
case "ResourceAlreadyExistsException":
|
|
822
|
-
case "com.amazonaws.cloudwatchlogs#ResourceAlreadyExistsException":
|
|
823
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ResourceNotFoundException":
|
|
825
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
826
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
827
|
-
case "ServiceUnavailableException":
|
|
828
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
829
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
830
|
-
default:
|
|
831
|
-
const parsedBody = parsedOutput.body;
|
|
832
|
-
return throwDefaultError({
|
|
833
|
-
output,
|
|
834
|
-
parsedBody,
|
|
835
|
-
errorCode,
|
|
836
|
-
});
|
|
837
|
-
}
|
|
838
|
-
};
|
|
839
|
-
const de_DeleteAccountPolicyCommand = async (output, context) => {
|
|
840
|
-
if (output.statusCode >= 300) {
|
|
841
|
-
return de_DeleteAccountPolicyCommandError(output, context);
|
|
842
|
-
}
|
|
843
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
844
|
-
const response = {
|
|
845
|
-
$metadata: deserializeMetadata(output),
|
|
846
|
-
};
|
|
847
|
-
return response;
|
|
848
|
-
};
|
|
849
|
-
exports.de_DeleteAccountPolicyCommand = de_DeleteAccountPolicyCommand;
|
|
850
|
-
const de_DeleteAccountPolicyCommandError = async (output, context) => {
|
|
851
|
-
const parsedOutput = {
|
|
852
|
-
...output,
|
|
853
|
-
body: await parseErrorBody(output.body, context),
|
|
854
|
-
};
|
|
855
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
856
|
-
switch (errorCode) {
|
|
857
|
-
case "InvalidParameterException":
|
|
858
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
859
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
860
|
-
case "OperationAbortedException":
|
|
861
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
862
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
863
|
-
case "ResourceNotFoundException":
|
|
864
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
865
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
866
|
-
case "ServiceUnavailableException":
|
|
867
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
868
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
869
|
-
default:
|
|
870
|
-
const parsedBody = parsedOutput.body;
|
|
871
|
-
return throwDefaultError({
|
|
872
|
-
output,
|
|
873
|
-
parsedBody,
|
|
874
|
-
errorCode,
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
};
|
|
878
|
-
const de_DeleteDataProtectionPolicyCommand = async (output, context) => {
|
|
879
|
-
if (output.statusCode >= 300) {
|
|
880
|
-
return de_DeleteDataProtectionPolicyCommandError(output, context);
|
|
881
|
-
}
|
|
882
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
883
|
-
const response = {
|
|
884
|
-
$metadata: deserializeMetadata(output),
|
|
885
|
-
};
|
|
886
|
-
return response;
|
|
887
|
-
};
|
|
888
|
-
exports.de_DeleteDataProtectionPolicyCommand = de_DeleteDataProtectionPolicyCommand;
|
|
889
|
-
const de_DeleteDataProtectionPolicyCommandError = async (output, context) => {
|
|
890
|
-
const parsedOutput = {
|
|
891
|
-
...output,
|
|
892
|
-
body: await parseErrorBody(output.body, context),
|
|
893
|
-
};
|
|
894
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
895
|
-
switch (errorCode) {
|
|
896
|
-
case "InvalidParameterException":
|
|
897
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
898
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
899
|
-
case "OperationAbortedException":
|
|
900
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
901
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
902
|
-
case "ResourceNotFoundException":
|
|
903
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
904
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
905
|
-
case "ServiceUnavailableException":
|
|
906
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
907
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
908
|
-
default:
|
|
909
|
-
const parsedBody = parsedOutput.body;
|
|
910
|
-
return throwDefaultError({
|
|
911
|
-
output,
|
|
912
|
-
parsedBody,
|
|
913
|
-
errorCode,
|
|
914
|
-
});
|
|
915
|
-
}
|
|
916
|
-
};
|
|
917
|
-
const de_DeleteDeliveryCommand = async (output, context) => {
|
|
918
|
-
if (output.statusCode >= 300) {
|
|
919
|
-
return de_DeleteDeliveryCommandError(output, context);
|
|
920
|
-
}
|
|
921
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
922
|
-
const response = {
|
|
923
|
-
$metadata: deserializeMetadata(output),
|
|
924
|
-
};
|
|
925
|
-
return response;
|
|
926
|
-
};
|
|
927
|
-
exports.de_DeleteDeliveryCommand = de_DeleteDeliveryCommand;
|
|
928
|
-
const de_DeleteDeliveryCommandError = async (output, context) => {
|
|
929
|
-
const parsedOutput = {
|
|
930
|
-
...output,
|
|
931
|
-
body: await parseErrorBody(output.body, context),
|
|
932
|
-
};
|
|
933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
934
|
-
switch (errorCode) {
|
|
935
|
-
case "ConflictException":
|
|
936
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
937
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
938
|
-
case "ResourceNotFoundException":
|
|
939
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
940
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
941
|
-
case "ServiceQuotaExceededException":
|
|
942
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
943
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
944
|
-
case "ServiceUnavailableException":
|
|
945
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
946
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
947
|
-
case "ThrottlingException":
|
|
948
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
949
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
950
|
-
case "ValidationException":
|
|
951
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
952
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
953
|
-
default:
|
|
954
|
-
const parsedBody = parsedOutput.body;
|
|
955
|
-
return throwDefaultError({
|
|
956
|
-
output,
|
|
957
|
-
parsedBody,
|
|
958
|
-
errorCode,
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
};
|
|
962
|
-
const de_DeleteDeliveryDestinationCommand = async (output, context) => {
|
|
963
|
-
if (output.statusCode >= 300) {
|
|
964
|
-
return de_DeleteDeliveryDestinationCommandError(output, context);
|
|
965
|
-
}
|
|
966
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
967
|
-
const response = {
|
|
968
|
-
$metadata: deserializeMetadata(output),
|
|
969
|
-
};
|
|
970
|
-
return response;
|
|
971
|
-
};
|
|
972
|
-
exports.de_DeleteDeliveryDestinationCommand = de_DeleteDeliveryDestinationCommand;
|
|
973
|
-
const de_DeleteDeliveryDestinationCommandError = async (output, context) => {
|
|
974
|
-
const parsedOutput = {
|
|
975
|
-
...output,
|
|
976
|
-
body: await parseErrorBody(output.body, context),
|
|
977
|
-
};
|
|
978
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
979
|
-
switch (errorCode) {
|
|
980
|
-
case "ConflictException":
|
|
981
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
982
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
983
|
-
case "ResourceNotFoundException":
|
|
984
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
985
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
986
|
-
case "ServiceQuotaExceededException":
|
|
987
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
988
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
989
|
-
case "ServiceUnavailableException":
|
|
990
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
991
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
992
|
-
case "ThrottlingException":
|
|
993
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
994
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
995
|
-
case "ValidationException":
|
|
996
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
997
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
998
|
-
default:
|
|
999
|
-
const parsedBody = parsedOutput.body;
|
|
1000
|
-
return throwDefaultError({
|
|
1001
|
-
output,
|
|
1002
|
-
parsedBody,
|
|
1003
|
-
errorCode,
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
};
|
|
1007
|
-
const de_DeleteDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
1008
|
-
if (output.statusCode >= 300) {
|
|
1009
|
-
return de_DeleteDeliveryDestinationPolicyCommandError(output, context);
|
|
1010
|
-
}
|
|
1011
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1012
|
-
const response = {
|
|
1013
|
-
$metadata: deserializeMetadata(output),
|
|
1014
|
-
};
|
|
1015
|
-
return response;
|
|
1016
|
-
};
|
|
1017
|
-
exports.de_DeleteDeliveryDestinationPolicyCommand = de_DeleteDeliveryDestinationPolicyCommand;
|
|
1018
|
-
const de_DeleteDeliveryDestinationPolicyCommandError = async (output, context) => {
|
|
1019
|
-
const parsedOutput = {
|
|
1020
|
-
...output,
|
|
1021
|
-
body: await parseErrorBody(output.body, context),
|
|
1022
|
-
};
|
|
1023
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1024
|
-
switch (errorCode) {
|
|
1025
|
-
case "ConflictException":
|
|
1026
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
1027
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1028
|
-
case "ResourceNotFoundException":
|
|
1029
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1030
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1031
|
-
case "ServiceUnavailableException":
|
|
1032
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1033
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1034
|
-
case "ValidationException":
|
|
1035
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1036
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1037
|
-
default:
|
|
1038
|
-
const parsedBody = parsedOutput.body;
|
|
1039
|
-
return throwDefaultError({
|
|
1040
|
-
output,
|
|
1041
|
-
parsedBody,
|
|
1042
|
-
errorCode,
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
};
|
|
1046
|
-
const de_DeleteDeliverySourceCommand = async (output, context) => {
|
|
1047
|
-
if (output.statusCode >= 300) {
|
|
1048
|
-
return de_DeleteDeliverySourceCommandError(output, context);
|
|
1049
|
-
}
|
|
1050
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1051
|
-
const response = {
|
|
1052
|
-
$metadata: deserializeMetadata(output),
|
|
1053
|
-
};
|
|
1054
|
-
return response;
|
|
1055
|
-
};
|
|
1056
|
-
exports.de_DeleteDeliverySourceCommand = de_DeleteDeliverySourceCommand;
|
|
1057
|
-
const de_DeleteDeliverySourceCommandError = async (output, context) => {
|
|
1058
|
-
const parsedOutput = {
|
|
1059
|
-
...output,
|
|
1060
|
-
body: await parseErrorBody(output.body, context),
|
|
1061
|
-
};
|
|
1062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
-
switch (errorCode) {
|
|
1064
|
-
case "ConflictException":
|
|
1065
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
1066
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "ResourceNotFoundException":
|
|
1068
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1069
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "ServiceQuotaExceededException":
|
|
1071
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1072
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "ServiceUnavailableException":
|
|
1074
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1075
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ThrottlingException":
|
|
1077
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1078
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1079
|
-
case "ValidationException":
|
|
1080
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1081
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1082
|
-
default:
|
|
1083
|
-
const parsedBody = parsedOutput.body;
|
|
1084
|
-
return throwDefaultError({
|
|
1085
|
-
output,
|
|
1086
|
-
parsedBody,
|
|
1087
|
-
errorCode,
|
|
1088
|
-
});
|
|
1089
|
-
}
|
|
1090
|
-
};
|
|
1091
|
-
const de_DeleteDestinationCommand = async (output, context) => {
|
|
1092
|
-
if (output.statusCode >= 300) {
|
|
1093
|
-
return de_DeleteDestinationCommandError(output, context);
|
|
1094
|
-
}
|
|
1095
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1096
|
-
const response = {
|
|
1097
|
-
$metadata: deserializeMetadata(output),
|
|
1098
|
-
};
|
|
1099
|
-
return response;
|
|
1100
|
-
};
|
|
1101
|
-
exports.de_DeleteDestinationCommand = de_DeleteDestinationCommand;
|
|
1102
|
-
const de_DeleteDestinationCommandError = async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "InvalidParameterException":
|
|
1110
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1111
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "OperationAbortedException":
|
|
1113
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1114
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ResourceNotFoundException":
|
|
1116
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1117
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "ServiceUnavailableException":
|
|
1119
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1120
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1121
|
-
default:
|
|
1122
|
-
const parsedBody = parsedOutput.body;
|
|
1123
|
-
return throwDefaultError({
|
|
1124
|
-
output,
|
|
1125
|
-
parsedBody,
|
|
1126
|
-
errorCode,
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
};
|
|
1130
|
-
const de_DeleteLogAnomalyDetectorCommand = async (output, context) => {
|
|
1131
|
-
if (output.statusCode >= 300) {
|
|
1132
|
-
return de_DeleteLogAnomalyDetectorCommandError(output, context);
|
|
1133
|
-
}
|
|
1134
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1135
|
-
const response = {
|
|
1136
|
-
$metadata: deserializeMetadata(output),
|
|
1137
|
-
};
|
|
1138
|
-
return response;
|
|
1139
|
-
};
|
|
1140
|
-
exports.de_DeleteLogAnomalyDetectorCommand = de_DeleteLogAnomalyDetectorCommand;
|
|
1141
|
-
const de_DeleteLogAnomalyDetectorCommandError = async (output, context) => {
|
|
1142
|
-
const parsedOutput = {
|
|
1143
|
-
...output,
|
|
1144
|
-
body: await parseErrorBody(output.body, context),
|
|
1145
|
-
};
|
|
1146
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1147
|
-
switch (errorCode) {
|
|
1148
|
-
case "InvalidParameterException":
|
|
1149
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1150
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1151
|
-
case "OperationAbortedException":
|
|
1152
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1153
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1154
|
-
case "ResourceNotFoundException":
|
|
1155
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1156
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1157
|
-
case "ServiceUnavailableException":
|
|
1158
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1159
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1160
|
-
default:
|
|
1161
|
-
const parsedBody = parsedOutput.body;
|
|
1162
|
-
return throwDefaultError({
|
|
1163
|
-
output,
|
|
1164
|
-
parsedBody,
|
|
1165
|
-
errorCode,
|
|
1166
|
-
});
|
|
1167
|
-
}
|
|
1168
|
-
};
|
|
1169
|
-
const de_DeleteLogGroupCommand = async (output, context) => {
|
|
1170
|
-
if (output.statusCode >= 300) {
|
|
1171
|
-
return de_DeleteLogGroupCommandError(output, context);
|
|
1172
|
-
}
|
|
1173
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1174
|
-
const response = {
|
|
1175
|
-
$metadata: deserializeMetadata(output),
|
|
1176
|
-
};
|
|
1177
|
-
return response;
|
|
1178
|
-
};
|
|
1179
|
-
exports.de_DeleteLogGroupCommand = de_DeleteLogGroupCommand;
|
|
1180
|
-
const de_DeleteLogGroupCommandError = async (output, context) => {
|
|
1181
|
-
const parsedOutput = {
|
|
1182
|
-
...output,
|
|
1183
|
-
body: await parseErrorBody(output.body, context),
|
|
1184
|
-
};
|
|
1185
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1186
|
-
switch (errorCode) {
|
|
1187
|
-
case "InvalidParameterException":
|
|
1188
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1189
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "OperationAbortedException":
|
|
1191
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1192
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1193
|
-
case "ResourceNotFoundException":
|
|
1194
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1195
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1196
|
-
case "ServiceUnavailableException":
|
|
1197
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1198
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1199
|
-
default:
|
|
1200
|
-
const parsedBody = parsedOutput.body;
|
|
1201
|
-
return throwDefaultError({
|
|
1202
|
-
output,
|
|
1203
|
-
parsedBody,
|
|
1204
|
-
errorCode,
|
|
1205
|
-
});
|
|
1206
|
-
}
|
|
1207
|
-
};
|
|
1208
|
-
const de_DeleteLogStreamCommand = async (output, context) => {
|
|
1209
|
-
if (output.statusCode >= 300) {
|
|
1210
|
-
return de_DeleteLogStreamCommandError(output, context);
|
|
1211
|
-
}
|
|
1212
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1213
|
-
const response = {
|
|
1214
|
-
$metadata: deserializeMetadata(output),
|
|
1215
|
-
};
|
|
1216
|
-
return response;
|
|
1217
|
-
};
|
|
1218
|
-
exports.de_DeleteLogStreamCommand = de_DeleteLogStreamCommand;
|
|
1219
|
-
const de_DeleteLogStreamCommandError = async (output, context) => {
|
|
1220
|
-
const parsedOutput = {
|
|
1221
|
-
...output,
|
|
1222
|
-
body: await parseErrorBody(output.body, context),
|
|
1223
|
-
};
|
|
1224
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1225
|
-
switch (errorCode) {
|
|
1226
|
-
case "InvalidParameterException":
|
|
1227
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1228
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1229
|
-
case "OperationAbortedException":
|
|
1230
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1231
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1232
|
-
case "ResourceNotFoundException":
|
|
1233
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1234
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1235
|
-
case "ServiceUnavailableException":
|
|
1236
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1237
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1238
|
-
default:
|
|
1239
|
-
const parsedBody = parsedOutput.body;
|
|
1240
|
-
return throwDefaultError({
|
|
1241
|
-
output,
|
|
1242
|
-
parsedBody,
|
|
1243
|
-
errorCode,
|
|
1244
|
-
});
|
|
1245
|
-
}
|
|
1246
|
-
};
|
|
1247
|
-
const de_DeleteMetricFilterCommand = async (output, context) => {
|
|
1248
|
-
if (output.statusCode >= 300) {
|
|
1249
|
-
return de_DeleteMetricFilterCommandError(output, context);
|
|
1250
|
-
}
|
|
1251
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1252
|
-
const response = {
|
|
1253
|
-
$metadata: deserializeMetadata(output),
|
|
1254
|
-
};
|
|
1255
|
-
return response;
|
|
1256
|
-
};
|
|
1257
|
-
exports.de_DeleteMetricFilterCommand = de_DeleteMetricFilterCommand;
|
|
1258
|
-
const de_DeleteMetricFilterCommandError = async (output, context) => {
|
|
1259
|
-
const parsedOutput = {
|
|
1260
|
-
...output,
|
|
1261
|
-
body: await parseErrorBody(output.body, context),
|
|
1262
|
-
};
|
|
1263
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1264
|
-
switch (errorCode) {
|
|
1265
|
-
case "InvalidParameterException":
|
|
1266
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1267
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "OperationAbortedException":
|
|
1269
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1270
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1271
|
-
case "ResourceNotFoundException":
|
|
1272
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1273
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1274
|
-
case "ServiceUnavailableException":
|
|
1275
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1276
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1277
|
-
default:
|
|
1278
|
-
const parsedBody = parsedOutput.body;
|
|
1279
|
-
return throwDefaultError({
|
|
1280
|
-
output,
|
|
1281
|
-
parsedBody,
|
|
1282
|
-
errorCode,
|
|
1283
|
-
});
|
|
1284
|
-
}
|
|
1285
|
-
};
|
|
1286
|
-
const de_DeleteQueryDefinitionCommand = async (output, context) => {
|
|
1287
|
-
if (output.statusCode >= 300) {
|
|
1288
|
-
return de_DeleteQueryDefinitionCommandError(output, context);
|
|
1289
|
-
}
|
|
1290
|
-
const data = await parseBody(output.body, context);
|
|
1291
|
-
let contents = {};
|
|
1292
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1293
|
-
const response = {
|
|
1294
|
-
$metadata: deserializeMetadata(output),
|
|
1295
|
-
...contents,
|
|
1296
|
-
};
|
|
1297
|
-
return response;
|
|
1298
|
-
};
|
|
1299
|
-
exports.de_DeleteQueryDefinitionCommand = de_DeleteQueryDefinitionCommand;
|
|
1300
|
-
const de_DeleteQueryDefinitionCommandError = async (output, context) => {
|
|
1301
|
-
const parsedOutput = {
|
|
1302
|
-
...output,
|
|
1303
|
-
body: await parseErrorBody(output.body, context),
|
|
1304
|
-
};
|
|
1305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1306
|
-
switch (errorCode) {
|
|
1307
|
-
case "InvalidParameterException":
|
|
1308
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1309
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "ResourceNotFoundException":
|
|
1311
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1312
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1313
|
-
case "ServiceUnavailableException":
|
|
1314
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1315
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1316
|
-
default:
|
|
1317
|
-
const parsedBody = parsedOutput.body;
|
|
1318
|
-
return throwDefaultError({
|
|
1319
|
-
output,
|
|
1320
|
-
parsedBody,
|
|
1321
|
-
errorCode,
|
|
1322
|
-
});
|
|
1323
|
-
}
|
|
1324
|
-
};
|
|
1325
|
-
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
1326
|
-
if (output.statusCode >= 300) {
|
|
1327
|
-
return de_DeleteResourcePolicyCommandError(output, context);
|
|
1328
|
-
}
|
|
1329
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1330
|
-
const response = {
|
|
1331
|
-
$metadata: deserializeMetadata(output),
|
|
1332
|
-
};
|
|
1333
|
-
return response;
|
|
1334
|
-
};
|
|
1335
|
-
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
1336
|
-
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
1337
|
-
const parsedOutput = {
|
|
1338
|
-
...output,
|
|
1339
|
-
body: await parseErrorBody(output.body, context),
|
|
1340
|
-
};
|
|
1341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1342
|
-
switch (errorCode) {
|
|
1343
|
-
case "InvalidParameterException":
|
|
1344
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1345
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1346
|
-
case "ResourceNotFoundException":
|
|
1347
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1348
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1349
|
-
case "ServiceUnavailableException":
|
|
1350
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1351
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1352
|
-
default:
|
|
1353
|
-
const parsedBody = parsedOutput.body;
|
|
1354
|
-
return throwDefaultError({
|
|
1355
|
-
output,
|
|
1356
|
-
parsedBody,
|
|
1357
|
-
errorCode,
|
|
1358
|
-
});
|
|
1359
|
-
}
|
|
1360
|
-
};
|
|
1361
|
-
const de_DeleteRetentionPolicyCommand = async (output, context) => {
|
|
1362
|
-
if (output.statusCode >= 300) {
|
|
1363
|
-
return de_DeleteRetentionPolicyCommandError(output, context);
|
|
1364
|
-
}
|
|
1365
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1366
|
-
const response = {
|
|
1367
|
-
$metadata: deserializeMetadata(output),
|
|
1368
|
-
};
|
|
1369
|
-
return response;
|
|
1370
|
-
};
|
|
1371
|
-
exports.de_DeleteRetentionPolicyCommand = de_DeleteRetentionPolicyCommand;
|
|
1372
|
-
const de_DeleteRetentionPolicyCommandError = async (output, context) => {
|
|
1373
|
-
const parsedOutput = {
|
|
1374
|
-
...output,
|
|
1375
|
-
body: await parseErrorBody(output.body, context),
|
|
1376
|
-
};
|
|
1377
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1378
|
-
switch (errorCode) {
|
|
1379
|
-
case "InvalidParameterException":
|
|
1380
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1381
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1382
|
-
case "OperationAbortedException":
|
|
1383
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1384
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1385
|
-
case "ResourceNotFoundException":
|
|
1386
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1387
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1388
|
-
case "ServiceUnavailableException":
|
|
1389
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1390
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1391
|
-
default:
|
|
1392
|
-
const parsedBody = parsedOutput.body;
|
|
1393
|
-
return throwDefaultError({
|
|
1394
|
-
output,
|
|
1395
|
-
parsedBody,
|
|
1396
|
-
errorCode,
|
|
1397
|
-
});
|
|
1398
|
-
}
|
|
1399
|
-
};
|
|
1400
|
-
const de_DeleteSubscriptionFilterCommand = async (output, context) => {
|
|
1401
|
-
if (output.statusCode >= 300) {
|
|
1402
|
-
return de_DeleteSubscriptionFilterCommandError(output, context);
|
|
1403
|
-
}
|
|
1404
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1405
|
-
const response = {
|
|
1406
|
-
$metadata: deserializeMetadata(output),
|
|
1407
|
-
};
|
|
1408
|
-
return response;
|
|
1409
|
-
};
|
|
1410
|
-
exports.de_DeleteSubscriptionFilterCommand = de_DeleteSubscriptionFilterCommand;
|
|
1411
|
-
const de_DeleteSubscriptionFilterCommandError = async (output, context) => {
|
|
1412
|
-
const parsedOutput = {
|
|
1413
|
-
...output,
|
|
1414
|
-
body: await parseErrorBody(output.body, context),
|
|
1415
|
-
};
|
|
1416
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1417
|
-
switch (errorCode) {
|
|
1418
|
-
case "InvalidParameterException":
|
|
1419
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1420
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1421
|
-
case "OperationAbortedException":
|
|
1422
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1423
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1424
|
-
case "ResourceNotFoundException":
|
|
1425
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1426
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "ServiceUnavailableException":
|
|
1428
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1429
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1430
|
-
default:
|
|
1431
|
-
const parsedBody = parsedOutput.body;
|
|
1432
|
-
return throwDefaultError({
|
|
1433
|
-
output,
|
|
1434
|
-
parsedBody,
|
|
1435
|
-
errorCode,
|
|
1436
|
-
});
|
|
1437
|
-
}
|
|
1438
|
-
};
|
|
1439
|
-
const de_DescribeAccountPoliciesCommand = async (output, context) => {
|
|
1440
|
-
if (output.statusCode >= 300) {
|
|
1441
|
-
return de_DescribeAccountPoliciesCommandError(output, context);
|
|
1442
|
-
}
|
|
1443
|
-
const data = await parseBody(output.body, context);
|
|
1444
|
-
let contents = {};
|
|
1445
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1446
|
-
const response = {
|
|
1447
|
-
$metadata: deserializeMetadata(output),
|
|
1448
|
-
...contents,
|
|
1449
|
-
};
|
|
1450
|
-
return response;
|
|
1451
|
-
};
|
|
1452
|
-
exports.de_DescribeAccountPoliciesCommand = de_DescribeAccountPoliciesCommand;
|
|
1453
|
-
const de_DescribeAccountPoliciesCommandError = async (output, context) => {
|
|
1454
|
-
const parsedOutput = {
|
|
1455
|
-
...output,
|
|
1456
|
-
body: await parseErrorBody(output.body, context),
|
|
1457
|
-
};
|
|
1458
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1459
|
-
switch (errorCode) {
|
|
1460
|
-
case "InvalidParameterException":
|
|
1461
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1462
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1463
|
-
case "OperationAbortedException":
|
|
1464
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1465
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1466
|
-
case "ResourceNotFoundException":
|
|
1467
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1468
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1469
|
-
case "ServiceUnavailableException":
|
|
1470
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1471
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1472
|
-
default:
|
|
1473
|
-
const parsedBody = parsedOutput.body;
|
|
1474
|
-
return throwDefaultError({
|
|
1475
|
-
output,
|
|
1476
|
-
parsedBody,
|
|
1477
|
-
errorCode,
|
|
1478
|
-
});
|
|
1479
|
-
}
|
|
1480
|
-
};
|
|
1481
|
-
const de_DescribeDeliveriesCommand = async (output, context) => {
|
|
1482
|
-
if (output.statusCode >= 300) {
|
|
1483
|
-
return de_DescribeDeliveriesCommandError(output, context);
|
|
1484
|
-
}
|
|
1485
|
-
const data = await parseBody(output.body, context);
|
|
1486
|
-
let contents = {};
|
|
1487
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1488
|
-
const response = {
|
|
1489
|
-
$metadata: deserializeMetadata(output),
|
|
1490
|
-
...contents,
|
|
1491
|
-
};
|
|
1492
|
-
return response;
|
|
1493
|
-
};
|
|
1494
|
-
exports.de_DescribeDeliveriesCommand = de_DescribeDeliveriesCommand;
|
|
1495
|
-
const de_DescribeDeliveriesCommandError = async (output, context) => {
|
|
1496
|
-
const parsedOutput = {
|
|
1497
|
-
...output,
|
|
1498
|
-
body: await parseErrorBody(output.body, context),
|
|
1499
|
-
};
|
|
1500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1501
|
-
switch (errorCode) {
|
|
1502
|
-
case "ServiceQuotaExceededException":
|
|
1503
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1504
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1505
|
-
case "ServiceUnavailableException":
|
|
1506
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1507
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1508
|
-
case "ThrottlingException":
|
|
1509
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1510
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1511
|
-
case "ValidationException":
|
|
1512
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1513
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1514
|
-
default:
|
|
1515
|
-
const parsedBody = parsedOutput.body;
|
|
1516
|
-
return throwDefaultError({
|
|
1517
|
-
output,
|
|
1518
|
-
parsedBody,
|
|
1519
|
-
errorCode,
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
|
-
const de_DescribeDeliveryDestinationsCommand = async (output, context) => {
|
|
1524
|
-
if (output.statusCode >= 300) {
|
|
1525
|
-
return de_DescribeDeliveryDestinationsCommandError(output, context);
|
|
1526
|
-
}
|
|
1527
|
-
const data = await parseBody(output.body, context);
|
|
1528
|
-
let contents = {};
|
|
1529
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1530
|
-
const response = {
|
|
1531
|
-
$metadata: deserializeMetadata(output),
|
|
1532
|
-
...contents,
|
|
1533
|
-
};
|
|
1534
|
-
return response;
|
|
1535
|
-
};
|
|
1536
|
-
exports.de_DescribeDeliveryDestinationsCommand = de_DescribeDeliveryDestinationsCommand;
|
|
1537
|
-
const de_DescribeDeliveryDestinationsCommandError = async (output, context) => {
|
|
1538
|
-
const parsedOutput = {
|
|
1539
|
-
...output,
|
|
1540
|
-
body: await parseErrorBody(output.body, context),
|
|
1541
|
-
};
|
|
1542
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1543
|
-
switch (errorCode) {
|
|
1544
|
-
case "ServiceQuotaExceededException":
|
|
1545
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1546
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1547
|
-
case "ServiceUnavailableException":
|
|
1548
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1549
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "ThrottlingException":
|
|
1551
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1552
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "ValidationException":
|
|
1554
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1555
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1556
|
-
default:
|
|
1557
|
-
const parsedBody = parsedOutput.body;
|
|
1558
|
-
return throwDefaultError({
|
|
1559
|
-
output,
|
|
1560
|
-
parsedBody,
|
|
1561
|
-
errorCode,
|
|
1562
|
-
});
|
|
1563
|
-
}
|
|
1564
|
-
};
|
|
1565
|
-
const de_DescribeDeliverySourcesCommand = async (output, context) => {
|
|
1566
|
-
if (output.statusCode >= 300) {
|
|
1567
|
-
return de_DescribeDeliverySourcesCommandError(output, context);
|
|
1568
|
-
}
|
|
1569
|
-
const data = await parseBody(output.body, context);
|
|
1570
|
-
let contents = {};
|
|
1571
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1572
|
-
const response = {
|
|
1573
|
-
$metadata: deserializeMetadata(output),
|
|
1574
|
-
...contents,
|
|
1575
|
-
};
|
|
1576
|
-
return response;
|
|
1577
|
-
};
|
|
1578
|
-
exports.de_DescribeDeliverySourcesCommand = de_DescribeDeliverySourcesCommand;
|
|
1579
|
-
const de_DescribeDeliverySourcesCommandError = async (output, context) => {
|
|
1580
|
-
const parsedOutput = {
|
|
1581
|
-
...output,
|
|
1582
|
-
body: await parseErrorBody(output.body, context),
|
|
1583
|
-
};
|
|
1584
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1585
|
-
switch (errorCode) {
|
|
1586
|
-
case "ServiceQuotaExceededException":
|
|
1587
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
1588
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1589
|
-
case "ServiceUnavailableException":
|
|
1590
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1591
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1592
|
-
case "ThrottlingException":
|
|
1593
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
1594
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1595
|
-
case "ValidationException":
|
|
1596
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
1597
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1598
|
-
default:
|
|
1599
|
-
const parsedBody = parsedOutput.body;
|
|
1600
|
-
return throwDefaultError({
|
|
1601
|
-
output,
|
|
1602
|
-
parsedBody,
|
|
1603
|
-
errorCode,
|
|
1604
|
-
});
|
|
1605
|
-
}
|
|
1606
|
-
};
|
|
1607
|
-
const de_DescribeDestinationsCommand = async (output, context) => {
|
|
1608
|
-
if (output.statusCode >= 300) {
|
|
1609
|
-
return de_DescribeDestinationsCommandError(output, context);
|
|
1610
|
-
}
|
|
1611
|
-
const data = await parseBody(output.body, context);
|
|
1612
|
-
let contents = {};
|
|
1613
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1614
|
-
const response = {
|
|
1615
|
-
$metadata: deserializeMetadata(output),
|
|
1616
|
-
...contents,
|
|
1617
|
-
};
|
|
1618
|
-
return response;
|
|
1619
|
-
};
|
|
1620
|
-
exports.de_DescribeDestinationsCommand = de_DescribeDestinationsCommand;
|
|
1621
|
-
const de_DescribeDestinationsCommandError = async (output, context) => {
|
|
1622
|
-
const parsedOutput = {
|
|
1623
|
-
...output,
|
|
1624
|
-
body: await parseErrorBody(output.body, context),
|
|
1625
|
-
};
|
|
1626
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1627
|
-
switch (errorCode) {
|
|
1628
|
-
case "InvalidParameterException":
|
|
1629
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1630
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1631
|
-
case "ServiceUnavailableException":
|
|
1632
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1633
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1634
|
-
default:
|
|
1635
|
-
const parsedBody = parsedOutput.body;
|
|
1636
|
-
return throwDefaultError({
|
|
1637
|
-
output,
|
|
1638
|
-
parsedBody,
|
|
1639
|
-
errorCode,
|
|
1640
|
-
});
|
|
1641
|
-
}
|
|
1642
|
-
};
|
|
1643
|
-
const de_DescribeExportTasksCommand = async (output, context) => {
|
|
1644
|
-
if (output.statusCode >= 300) {
|
|
1645
|
-
return de_DescribeExportTasksCommandError(output, context);
|
|
1646
|
-
}
|
|
1647
|
-
const data = await parseBody(output.body, context);
|
|
1648
|
-
let contents = {};
|
|
1649
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1650
|
-
const response = {
|
|
1651
|
-
$metadata: deserializeMetadata(output),
|
|
1652
|
-
...contents,
|
|
1653
|
-
};
|
|
1654
|
-
return response;
|
|
1655
|
-
};
|
|
1656
|
-
exports.de_DescribeExportTasksCommand = de_DescribeExportTasksCommand;
|
|
1657
|
-
const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
1658
|
-
const parsedOutput = {
|
|
1659
|
-
...output,
|
|
1660
|
-
body: await parseErrorBody(output.body, context),
|
|
1661
|
-
};
|
|
1662
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1663
|
-
switch (errorCode) {
|
|
1664
|
-
case "InvalidParameterException":
|
|
1665
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1666
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1667
|
-
case "ServiceUnavailableException":
|
|
1668
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1669
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1670
|
-
default:
|
|
1671
|
-
const parsedBody = parsedOutput.body;
|
|
1672
|
-
return throwDefaultError({
|
|
1673
|
-
output,
|
|
1674
|
-
parsedBody,
|
|
1675
|
-
errorCode,
|
|
1676
|
-
});
|
|
1677
|
-
}
|
|
1678
|
-
};
|
|
1679
|
-
const de_DescribeLogGroupsCommand = async (output, context) => {
|
|
1680
|
-
if (output.statusCode >= 300) {
|
|
1681
|
-
return de_DescribeLogGroupsCommandError(output, context);
|
|
1682
|
-
}
|
|
1683
|
-
const data = await parseBody(output.body, context);
|
|
1684
|
-
let contents = {};
|
|
1685
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1686
|
-
const response = {
|
|
1687
|
-
$metadata: deserializeMetadata(output),
|
|
1688
|
-
...contents,
|
|
1689
|
-
};
|
|
1690
|
-
return response;
|
|
1691
|
-
};
|
|
1692
|
-
exports.de_DescribeLogGroupsCommand = de_DescribeLogGroupsCommand;
|
|
1693
|
-
const de_DescribeLogGroupsCommandError = async (output, context) => {
|
|
1694
|
-
const parsedOutput = {
|
|
1695
|
-
...output,
|
|
1696
|
-
body: await parseErrorBody(output.body, context),
|
|
1697
|
-
};
|
|
1698
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1699
|
-
switch (errorCode) {
|
|
1700
|
-
case "InvalidParameterException":
|
|
1701
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1702
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1703
|
-
case "ServiceUnavailableException":
|
|
1704
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1705
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1706
|
-
default:
|
|
1707
|
-
const parsedBody = parsedOutput.body;
|
|
1708
|
-
return throwDefaultError({
|
|
1709
|
-
output,
|
|
1710
|
-
parsedBody,
|
|
1711
|
-
errorCode,
|
|
1712
|
-
});
|
|
1713
|
-
}
|
|
1714
|
-
};
|
|
1715
|
-
const de_DescribeLogStreamsCommand = async (output, context) => {
|
|
1716
|
-
if (output.statusCode >= 300) {
|
|
1717
|
-
return de_DescribeLogStreamsCommandError(output, context);
|
|
1718
|
-
}
|
|
1719
|
-
const data = await parseBody(output.body, context);
|
|
1720
|
-
let contents = {};
|
|
1721
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1722
|
-
const response = {
|
|
1723
|
-
$metadata: deserializeMetadata(output),
|
|
1724
|
-
...contents,
|
|
1725
|
-
};
|
|
1726
|
-
return response;
|
|
1727
|
-
};
|
|
1728
|
-
exports.de_DescribeLogStreamsCommand = de_DescribeLogStreamsCommand;
|
|
1729
|
-
const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
1730
|
-
const parsedOutput = {
|
|
1731
|
-
...output,
|
|
1732
|
-
body: await parseErrorBody(output.body, context),
|
|
1733
|
-
};
|
|
1734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1735
|
-
switch (errorCode) {
|
|
1736
|
-
case "InvalidParameterException":
|
|
1737
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1738
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1739
|
-
case "ResourceNotFoundException":
|
|
1740
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1741
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1742
|
-
case "ServiceUnavailableException":
|
|
1743
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1744
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1745
|
-
default:
|
|
1746
|
-
const parsedBody = parsedOutput.body;
|
|
1747
|
-
return throwDefaultError({
|
|
1748
|
-
output,
|
|
1749
|
-
parsedBody,
|
|
1750
|
-
errorCode,
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
|
-
};
|
|
1754
|
-
const de_DescribeMetricFiltersCommand = async (output, context) => {
|
|
1755
|
-
if (output.statusCode >= 300) {
|
|
1756
|
-
return de_DescribeMetricFiltersCommandError(output, context);
|
|
1757
|
-
}
|
|
1758
|
-
const data = await parseBody(output.body, context);
|
|
1759
|
-
let contents = {};
|
|
1760
|
-
contents = de_DescribeMetricFiltersResponse(data, context);
|
|
1761
|
-
const response = {
|
|
1762
|
-
$metadata: deserializeMetadata(output),
|
|
1763
|
-
...contents,
|
|
1764
|
-
};
|
|
1765
|
-
return response;
|
|
1766
|
-
};
|
|
1767
|
-
exports.de_DescribeMetricFiltersCommand = de_DescribeMetricFiltersCommand;
|
|
1768
|
-
const de_DescribeMetricFiltersCommandError = async (output, context) => {
|
|
1769
|
-
const parsedOutput = {
|
|
1770
|
-
...output,
|
|
1771
|
-
body: await parseErrorBody(output.body, context),
|
|
1772
|
-
};
|
|
1773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1774
|
-
switch (errorCode) {
|
|
1775
|
-
case "InvalidParameterException":
|
|
1776
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1777
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1778
|
-
case "ResourceNotFoundException":
|
|
1779
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1780
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1781
|
-
case "ServiceUnavailableException":
|
|
1782
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1783
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1784
|
-
default:
|
|
1785
|
-
const parsedBody = parsedOutput.body;
|
|
1786
|
-
return throwDefaultError({
|
|
1787
|
-
output,
|
|
1788
|
-
parsedBody,
|
|
1789
|
-
errorCode,
|
|
1790
|
-
});
|
|
1791
|
-
}
|
|
1792
|
-
};
|
|
1793
|
-
const de_DescribeQueriesCommand = async (output, context) => {
|
|
1794
|
-
if (output.statusCode >= 300) {
|
|
1795
|
-
return de_DescribeQueriesCommandError(output, context);
|
|
1796
|
-
}
|
|
1797
|
-
const data = await parseBody(output.body, context);
|
|
1798
|
-
let contents = {};
|
|
1799
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1800
|
-
const response = {
|
|
1801
|
-
$metadata: deserializeMetadata(output),
|
|
1802
|
-
...contents,
|
|
1803
|
-
};
|
|
1804
|
-
return response;
|
|
1805
|
-
};
|
|
1806
|
-
exports.de_DescribeQueriesCommand = de_DescribeQueriesCommand;
|
|
1807
|
-
const de_DescribeQueriesCommandError = async (output, context) => {
|
|
1808
|
-
const parsedOutput = {
|
|
1809
|
-
...output,
|
|
1810
|
-
body: await parseErrorBody(output.body, context),
|
|
1811
|
-
};
|
|
1812
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1813
|
-
switch (errorCode) {
|
|
1814
|
-
case "InvalidParameterException":
|
|
1815
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1816
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1817
|
-
case "ResourceNotFoundException":
|
|
1818
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1819
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1820
|
-
case "ServiceUnavailableException":
|
|
1821
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1822
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1823
|
-
default:
|
|
1824
|
-
const parsedBody = parsedOutput.body;
|
|
1825
|
-
return throwDefaultError({
|
|
1826
|
-
output,
|
|
1827
|
-
parsedBody,
|
|
1828
|
-
errorCode,
|
|
1829
|
-
});
|
|
1830
|
-
}
|
|
1831
|
-
};
|
|
1832
|
-
const de_DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
1833
|
-
if (output.statusCode >= 300) {
|
|
1834
|
-
return de_DescribeQueryDefinitionsCommandError(output, context);
|
|
1835
|
-
}
|
|
1836
|
-
const data = await parseBody(output.body, context);
|
|
1837
|
-
let contents = {};
|
|
1838
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1839
|
-
const response = {
|
|
1840
|
-
$metadata: deserializeMetadata(output),
|
|
1841
|
-
...contents,
|
|
1842
|
-
};
|
|
1843
|
-
return response;
|
|
1844
|
-
};
|
|
1845
|
-
exports.de_DescribeQueryDefinitionsCommand = de_DescribeQueryDefinitionsCommand;
|
|
1846
|
-
const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
1847
|
-
const parsedOutput = {
|
|
1848
|
-
...output,
|
|
1849
|
-
body: await parseErrorBody(output.body, context),
|
|
1850
|
-
};
|
|
1851
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1852
|
-
switch (errorCode) {
|
|
1853
|
-
case "InvalidParameterException":
|
|
1854
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1855
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1856
|
-
case "ServiceUnavailableException":
|
|
1857
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1858
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1859
|
-
default:
|
|
1860
|
-
const parsedBody = parsedOutput.body;
|
|
1861
|
-
return throwDefaultError({
|
|
1862
|
-
output,
|
|
1863
|
-
parsedBody,
|
|
1864
|
-
errorCode,
|
|
1865
|
-
});
|
|
1866
|
-
}
|
|
1867
|
-
};
|
|
1868
|
-
const de_DescribeResourcePoliciesCommand = async (output, context) => {
|
|
1869
|
-
if (output.statusCode >= 300) {
|
|
1870
|
-
return de_DescribeResourcePoliciesCommandError(output, context);
|
|
1871
|
-
}
|
|
1872
|
-
const data = await parseBody(output.body, context);
|
|
1873
|
-
let contents = {};
|
|
1874
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1875
|
-
const response = {
|
|
1876
|
-
$metadata: deserializeMetadata(output),
|
|
1877
|
-
...contents,
|
|
1878
|
-
};
|
|
1879
|
-
return response;
|
|
1880
|
-
};
|
|
1881
|
-
exports.de_DescribeResourcePoliciesCommand = de_DescribeResourcePoliciesCommand;
|
|
1882
|
-
const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
1883
|
-
const parsedOutput = {
|
|
1884
|
-
...output,
|
|
1885
|
-
body: await parseErrorBody(output.body, context),
|
|
1886
|
-
};
|
|
1887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
|
-
switch (errorCode) {
|
|
1889
|
-
case "InvalidParameterException":
|
|
1890
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1891
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1892
|
-
case "ServiceUnavailableException":
|
|
1893
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1894
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1895
|
-
default:
|
|
1896
|
-
const parsedBody = parsedOutput.body;
|
|
1897
|
-
return throwDefaultError({
|
|
1898
|
-
output,
|
|
1899
|
-
parsedBody,
|
|
1900
|
-
errorCode,
|
|
1901
|
-
});
|
|
1902
|
-
}
|
|
1903
|
-
};
|
|
1904
|
-
const de_DescribeSubscriptionFiltersCommand = async (output, context) => {
|
|
1905
|
-
if (output.statusCode >= 300) {
|
|
1906
|
-
return de_DescribeSubscriptionFiltersCommandError(output, context);
|
|
1907
|
-
}
|
|
1908
|
-
const data = await parseBody(output.body, context);
|
|
1909
|
-
let contents = {};
|
|
1910
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1911
|
-
const response = {
|
|
1912
|
-
$metadata: deserializeMetadata(output),
|
|
1913
|
-
...contents,
|
|
1914
|
-
};
|
|
1915
|
-
return response;
|
|
1916
|
-
};
|
|
1917
|
-
exports.de_DescribeSubscriptionFiltersCommand = de_DescribeSubscriptionFiltersCommand;
|
|
1918
|
-
const de_DescribeSubscriptionFiltersCommandError = async (output, context) => {
|
|
1919
|
-
const parsedOutput = {
|
|
1920
|
-
...output,
|
|
1921
|
-
body: await parseErrorBody(output.body, context),
|
|
1922
|
-
};
|
|
1923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1924
|
-
switch (errorCode) {
|
|
1925
|
-
case "InvalidParameterException":
|
|
1926
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1927
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1928
|
-
case "ResourceNotFoundException":
|
|
1929
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1930
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1931
|
-
case "ServiceUnavailableException":
|
|
1932
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1933
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1934
|
-
default:
|
|
1935
|
-
const parsedBody = parsedOutput.body;
|
|
1936
|
-
return throwDefaultError({
|
|
1937
|
-
output,
|
|
1938
|
-
parsedBody,
|
|
1939
|
-
errorCode,
|
|
1940
|
-
});
|
|
1941
|
-
}
|
|
1942
|
-
};
|
|
1943
|
-
const de_DisassociateKmsKeyCommand = async (output, context) => {
|
|
1944
|
-
if (output.statusCode >= 300) {
|
|
1945
|
-
return de_DisassociateKmsKeyCommandError(output, context);
|
|
1946
|
-
}
|
|
1947
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1948
|
-
const response = {
|
|
1949
|
-
$metadata: deserializeMetadata(output),
|
|
1950
|
-
};
|
|
1951
|
-
return response;
|
|
1952
|
-
};
|
|
1953
|
-
exports.de_DisassociateKmsKeyCommand = de_DisassociateKmsKeyCommand;
|
|
1954
|
-
const de_DisassociateKmsKeyCommandError = async (output, context) => {
|
|
1955
|
-
const parsedOutput = {
|
|
1956
|
-
...output,
|
|
1957
|
-
body: await parseErrorBody(output.body, context),
|
|
1958
|
-
};
|
|
1959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
-
switch (errorCode) {
|
|
1961
|
-
case "InvalidParameterException":
|
|
1962
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
1963
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "OperationAbortedException":
|
|
1965
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
1966
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "ResourceNotFoundException":
|
|
1968
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
1969
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "ServiceUnavailableException":
|
|
1971
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
1972
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1973
|
-
default:
|
|
1974
|
-
const parsedBody = parsedOutput.body;
|
|
1975
|
-
return throwDefaultError({
|
|
1976
|
-
output,
|
|
1977
|
-
parsedBody,
|
|
1978
|
-
errorCode,
|
|
1979
|
-
});
|
|
1980
|
-
}
|
|
1981
|
-
};
|
|
1982
|
-
const de_FilterLogEventsCommand = async (output, context) => {
|
|
1983
|
-
if (output.statusCode >= 300) {
|
|
1984
|
-
return de_FilterLogEventsCommandError(output, context);
|
|
1985
|
-
}
|
|
1986
|
-
const data = await parseBody(output.body, context);
|
|
1987
|
-
let contents = {};
|
|
1988
|
-
contents = (0, smithy_client_1._json)(data);
|
|
1989
|
-
const response = {
|
|
1990
|
-
$metadata: deserializeMetadata(output),
|
|
1991
|
-
...contents,
|
|
1992
|
-
};
|
|
1993
|
-
return response;
|
|
1994
|
-
};
|
|
1995
|
-
exports.de_FilterLogEventsCommand = de_FilterLogEventsCommand;
|
|
1996
|
-
const de_FilterLogEventsCommandError = async (output, context) => {
|
|
1997
|
-
const parsedOutput = {
|
|
1998
|
-
...output,
|
|
1999
|
-
body: await parseErrorBody(output.body, context),
|
|
2000
|
-
};
|
|
2001
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2002
|
-
switch (errorCode) {
|
|
2003
|
-
case "InvalidParameterException":
|
|
2004
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2005
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2006
|
-
case "ResourceNotFoundException":
|
|
2007
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2008
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2009
|
-
case "ServiceUnavailableException":
|
|
2010
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2011
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2012
|
-
default:
|
|
2013
|
-
const parsedBody = parsedOutput.body;
|
|
2014
|
-
return throwDefaultError({
|
|
2015
|
-
output,
|
|
2016
|
-
parsedBody,
|
|
2017
|
-
errorCode,
|
|
2018
|
-
});
|
|
2019
|
-
}
|
|
2020
|
-
};
|
|
2021
|
-
const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
2022
|
-
if (output.statusCode >= 300) {
|
|
2023
|
-
return de_GetDataProtectionPolicyCommandError(output, context);
|
|
2024
|
-
}
|
|
2025
|
-
const data = await parseBody(output.body, context);
|
|
2026
|
-
let contents = {};
|
|
2027
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2028
|
-
const response = {
|
|
2029
|
-
$metadata: deserializeMetadata(output),
|
|
2030
|
-
...contents,
|
|
2031
|
-
};
|
|
2032
|
-
return response;
|
|
2033
|
-
};
|
|
2034
|
-
exports.de_GetDataProtectionPolicyCommand = de_GetDataProtectionPolicyCommand;
|
|
2035
|
-
const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
2036
|
-
const parsedOutput = {
|
|
2037
|
-
...output,
|
|
2038
|
-
body: await parseErrorBody(output.body, context),
|
|
2039
|
-
};
|
|
2040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2041
|
-
switch (errorCode) {
|
|
2042
|
-
case "InvalidParameterException":
|
|
2043
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2044
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2045
|
-
case "OperationAbortedException":
|
|
2046
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2047
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2048
|
-
case "ResourceNotFoundException":
|
|
2049
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2050
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2051
|
-
case "ServiceUnavailableException":
|
|
2052
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2053
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2054
|
-
default:
|
|
2055
|
-
const parsedBody = parsedOutput.body;
|
|
2056
|
-
return throwDefaultError({
|
|
2057
|
-
output,
|
|
2058
|
-
parsedBody,
|
|
2059
|
-
errorCode,
|
|
2060
|
-
});
|
|
2061
|
-
}
|
|
2062
|
-
};
|
|
2063
|
-
const de_GetDeliveryCommand = async (output, context) => {
|
|
2064
|
-
if (output.statusCode >= 300) {
|
|
2065
|
-
return de_GetDeliveryCommandError(output, context);
|
|
2066
|
-
}
|
|
2067
|
-
const data = await parseBody(output.body, context);
|
|
2068
|
-
let contents = {};
|
|
2069
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2070
|
-
const response = {
|
|
2071
|
-
$metadata: deserializeMetadata(output),
|
|
2072
|
-
...contents,
|
|
2073
|
-
};
|
|
2074
|
-
return response;
|
|
2075
|
-
};
|
|
2076
|
-
exports.de_GetDeliveryCommand = de_GetDeliveryCommand;
|
|
2077
|
-
const de_GetDeliveryCommandError = async (output, context) => {
|
|
2078
|
-
const parsedOutput = {
|
|
2079
|
-
...output,
|
|
2080
|
-
body: await parseErrorBody(output.body, context),
|
|
2081
|
-
};
|
|
2082
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
|
-
switch (errorCode) {
|
|
2084
|
-
case "ResourceNotFoundException":
|
|
2085
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2086
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2087
|
-
case "ServiceQuotaExceededException":
|
|
2088
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2089
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2090
|
-
case "ServiceUnavailableException":
|
|
2091
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2092
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "ThrottlingException":
|
|
2094
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2095
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "ValidationException":
|
|
2097
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2098
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2099
|
-
default:
|
|
2100
|
-
const parsedBody = parsedOutput.body;
|
|
2101
|
-
return throwDefaultError({
|
|
2102
|
-
output,
|
|
2103
|
-
parsedBody,
|
|
2104
|
-
errorCode,
|
|
2105
|
-
});
|
|
2106
|
-
}
|
|
2107
|
-
};
|
|
2108
|
-
const de_GetDeliveryDestinationCommand = async (output, context) => {
|
|
2109
|
-
if (output.statusCode >= 300) {
|
|
2110
|
-
return de_GetDeliveryDestinationCommandError(output, context);
|
|
2111
|
-
}
|
|
2112
|
-
const data = await parseBody(output.body, context);
|
|
2113
|
-
let contents = {};
|
|
2114
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2115
|
-
const response = {
|
|
2116
|
-
$metadata: deserializeMetadata(output),
|
|
2117
|
-
...contents,
|
|
2118
|
-
};
|
|
2119
|
-
return response;
|
|
2120
|
-
};
|
|
2121
|
-
exports.de_GetDeliveryDestinationCommand = de_GetDeliveryDestinationCommand;
|
|
2122
|
-
const de_GetDeliveryDestinationCommandError = async (output, context) => {
|
|
2123
|
-
const parsedOutput = {
|
|
2124
|
-
...output,
|
|
2125
|
-
body: await parseErrorBody(output.body, context),
|
|
2126
|
-
};
|
|
2127
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2128
|
-
switch (errorCode) {
|
|
2129
|
-
case "ResourceNotFoundException":
|
|
2130
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2131
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2132
|
-
case "ServiceQuotaExceededException":
|
|
2133
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2134
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2135
|
-
case "ServiceUnavailableException":
|
|
2136
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2137
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2138
|
-
case "ThrottlingException":
|
|
2139
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2140
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2141
|
-
case "ValidationException":
|
|
2142
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2143
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2144
|
-
default:
|
|
2145
|
-
const parsedBody = parsedOutput.body;
|
|
2146
|
-
return throwDefaultError({
|
|
2147
|
-
output,
|
|
2148
|
-
parsedBody,
|
|
2149
|
-
errorCode,
|
|
2150
|
-
});
|
|
2151
|
-
}
|
|
2152
|
-
};
|
|
2153
|
-
const de_GetDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
2154
|
-
if (output.statusCode >= 300) {
|
|
2155
|
-
return de_GetDeliveryDestinationPolicyCommandError(output, context);
|
|
2156
|
-
}
|
|
2157
|
-
const data = await parseBody(output.body, context);
|
|
2158
|
-
let contents = {};
|
|
2159
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2160
|
-
const response = {
|
|
2161
|
-
$metadata: deserializeMetadata(output),
|
|
2162
|
-
...contents,
|
|
2163
|
-
};
|
|
2164
|
-
return response;
|
|
2165
|
-
};
|
|
2166
|
-
exports.de_GetDeliveryDestinationPolicyCommand = de_GetDeliveryDestinationPolicyCommand;
|
|
2167
|
-
const de_GetDeliveryDestinationPolicyCommandError = async (output, context) => {
|
|
2168
|
-
const parsedOutput = {
|
|
2169
|
-
...output,
|
|
2170
|
-
body: await parseErrorBody(output.body, context),
|
|
2171
|
-
};
|
|
2172
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2173
|
-
switch (errorCode) {
|
|
2174
|
-
case "ResourceNotFoundException":
|
|
2175
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2176
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "ServiceUnavailableException":
|
|
2178
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2179
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2180
|
-
case "ValidationException":
|
|
2181
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2182
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2183
|
-
default:
|
|
2184
|
-
const parsedBody = parsedOutput.body;
|
|
2185
|
-
return throwDefaultError({
|
|
2186
|
-
output,
|
|
2187
|
-
parsedBody,
|
|
2188
|
-
errorCode,
|
|
2189
|
-
});
|
|
2190
|
-
}
|
|
2191
|
-
};
|
|
2192
|
-
const de_GetDeliverySourceCommand = async (output, context) => {
|
|
2193
|
-
if (output.statusCode >= 300) {
|
|
2194
|
-
return de_GetDeliverySourceCommandError(output, context);
|
|
2195
|
-
}
|
|
2196
|
-
const data = await parseBody(output.body, context);
|
|
2197
|
-
let contents = {};
|
|
2198
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2199
|
-
const response = {
|
|
2200
|
-
$metadata: deserializeMetadata(output),
|
|
2201
|
-
...contents,
|
|
2202
|
-
};
|
|
2203
|
-
return response;
|
|
2204
|
-
};
|
|
2205
|
-
exports.de_GetDeliverySourceCommand = de_GetDeliverySourceCommand;
|
|
2206
|
-
const de_GetDeliverySourceCommandError = async (output, context) => {
|
|
2207
|
-
const parsedOutput = {
|
|
2208
|
-
...output,
|
|
2209
|
-
body: await parseErrorBody(output.body, context),
|
|
2210
|
-
};
|
|
2211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
|
-
switch (errorCode) {
|
|
2213
|
-
case "ResourceNotFoundException":
|
|
2214
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2215
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "ServiceQuotaExceededException":
|
|
2217
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2218
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2219
|
-
case "ServiceUnavailableException":
|
|
2220
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2221
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2222
|
-
case "ThrottlingException":
|
|
2223
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2224
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "ValidationException":
|
|
2226
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2227
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2228
|
-
default:
|
|
2229
|
-
const parsedBody = parsedOutput.body;
|
|
2230
|
-
return throwDefaultError({
|
|
2231
|
-
output,
|
|
2232
|
-
parsedBody,
|
|
2233
|
-
errorCode,
|
|
2234
|
-
});
|
|
2235
|
-
}
|
|
2236
|
-
};
|
|
2237
|
-
const de_GetLogAnomalyDetectorCommand = async (output, context) => {
|
|
2238
|
-
if (output.statusCode >= 300) {
|
|
2239
|
-
return de_GetLogAnomalyDetectorCommandError(output, context);
|
|
2240
|
-
}
|
|
2241
|
-
const data = await parseBody(output.body, context);
|
|
2242
|
-
let contents = {};
|
|
2243
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2244
|
-
const response = {
|
|
2245
|
-
$metadata: deserializeMetadata(output),
|
|
2246
|
-
...contents,
|
|
2247
|
-
};
|
|
2248
|
-
return response;
|
|
2249
|
-
};
|
|
2250
|
-
exports.de_GetLogAnomalyDetectorCommand = de_GetLogAnomalyDetectorCommand;
|
|
2251
|
-
const de_GetLogAnomalyDetectorCommandError = async (output, context) => {
|
|
2252
|
-
const parsedOutput = {
|
|
2253
|
-
...output,
|
|
2254
|
-
body: await parseErrorBody(output.body, context),
|
|
2255
|
-
};
|
|
2256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2257
|
-
switch (errorCode) {
|
|
2258
|
-
case "InvalidParameterException":
|
|
2259
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2260
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2261
|
-
case "OperationAbortedException":
|
|
2262
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2263
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "ResourceNotFoundException":
|
|
2265
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2266
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "ServiceUnavailableException":
|
|
2268
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2269
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2270
|
-
default:
|
|
2271
|
-
const parsedBody = parsedOutput.body;
|
|
2272
|
-
return throwDefaultError({
|
|
2273
|
-
output,
|
|
2274
|
-
parsedBody,
|
|
2275
|
-
errorCode,
|
|
2276
|
-
});
|
|
2277
|
-
}
|
|
2278
|
-
};
|
|
2279
|
-
const de_GetLogEventsCommand = async (output, context) => {
|
|
2280
|
-
if (output.statusCode >= 300) {
|
|
2281
|
-
return de_GetLogEventsCommandError(output, context);
|
|
2282
|
-
}
|
|
2283
|
-
const data = await parseBody(output.body, context);
|
|
2284
|
-
let contents = {};
|
|
2285
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2286
|
-
const response = {
|
|
2287
|
-
$metadata: deserializeMetadata(output),
|
|
2288
|
-
...contents,
|
|
2289
|
-
};
|
|
2290
|
-
return response;
|
|
2291
|
-
};
|
|
2292
|
-
exports.de_GetLogEventsCommand = de_GetLogEventsCommand;
|
|
2293
|
-
const de_GetLogEventsCommandError = async (output, context) => {
|
|
2294
|
-
const parsedOutput = {
|
|
2295
|
-
...output,
|
|
2296
|
-
body: await parseErrorBody(output.body, context),
|
|
2297
|
-
};
|
|
2298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2299
|
-
switch (errorCode) {
|
|
2300
|
-
case "InvalidParameterException":
|
|
2301
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2302
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "ResourceNotFoundException":
|
|
2304
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2305
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "ServiceUnavailableException":
|
|
2307
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2308
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2309
|
-
default:
|
|
2310
|
-
const parsedBody = parsedOutput.body;
|
|
2311
|
-
return throwDefaultError({
|
|
2312
|
-
output,
|
|
2313
|
-
parsedBody,
|
|
2314
|
-
errorCode,
|
|
2315
|
-
});
|
|
2316
|
-
}
|
|
2317
|
-
};
|
|
2318
|
-
const de_GetLogGroupFieldsCommand = async (output, context) => {
|
|
2319
|
-
if (output.statusCode >= 300) {
|
|
2320
|
-
return de_GetLogGroupFieldsCommandError(output, context);
|
|
2321
|
-
}
|
|
2322
|
-
const data = await parseBody(output.body, context);
|
|
2323
|
-
let contents = {};
|
|
2324
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2325
|
-
const response = {
|
|
2326
|
-
$metadata: deserializeMetadata(output),
|
|
2327
|
-
...contents,
|
|
2328
|
-
};
|
|
2329
|
-
return response;
|
|
2330
|
-
};
|
|
2331
|
-
exports.de_GetLogGroupFieldsCommand = de_GetLogGroupFieldsCommand;
|
|
2332
|
-
const de_GetLogGroupFieldsCommandError = async (output, context) => {
|
|
2333
|
-
const parsedOutput = {
|
|
2334
|
-
...output,
|
|
2335
|
-
body: await parseErrorBody(output.body, context),
|
|
2336
|
-
};
|
|
2337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2338
|
-
switch (errorCode) {
|
|
2339
|
-
case "InvalidParameterException":
|
|
2340
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2341
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2342
|
-
case "LimitExceededException":
|
|
2343
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2344
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2345
|
-
case "ResourceNotFoundException":
|
|
2346
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2347
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2348
|
-
case "ServiceUnavailableException":
|
|
2349
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2350
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2351
|
-
default:
|
|
2352
|
-
const parsedBody = parsedOutput.body;
|
|
2353
|
-
return throwDefaultError({
|
|
2354
|
-
output,
|
|
2355
|
-
parsedBody,
|
|
2356
|
-
errorCode,
|
|
2357
|
-
});
|
|
2358
|
-
}
|
|
2359
|
-
};
|
|
2360
|
-
const de_GetLogRecordCommand = async (output, context) => {
|
|
2361
|
-
if (output.statusCode >= 300) {
|
|
2362
|
-
return de_GetLogRecordCommandError(output, context);
|
|
2363
|
-
}
|
|
2364
|
-
const data = await parseBody(output.body, context);
|
|
2365
|
-
let contents = {};
|
|
2366
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2367
|
-
const response = {
|
|
2368
|
-
$metadata: deserializeMetadata(output),
|
|
2369
|
-
...contents,
|
|
2370
|
-
};
|
|
2371
|
-
return response;
|
|
2372
|
-
};
|
|
2373
|
-
exports.de_GetLogRecordCommand = de_GetLogRecordCommand;
|
|
2374
|
-
const de_GetLogRecordCommandError = async (output, context) => {
|
|
2375
|
-
const parsedOutput = {
|
|
2376
|
-
...output,
|
|
2377
|
-
body: await parseErrorBody(output.body, context),
|
|
2378
|
-
};
|
|
2379
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2380
|
-
switch (errorCode) {
|
|
2381
|
-
case "InvalidParameterException":
|
|
2382
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2383
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2384
|
-
case "LimitExceededException":
|
|
2385
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2386
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2387
|
-
case "ResourceNotFoundException":
|
|
2388
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2389
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2390
|
-
case "ServiceUnavailableException":
|
|
2391
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2392
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2393
|
-
default:
|
|
2394
|
-
const parsedBody = parsedOutput.body;
|
|
2395
|
-
return throwDefaultError({
|
|
2396
|
-
output,
|
|
2397
|
-
parsedBody,
|
|
2398
|
-
errorCode,
|
|
2399
|
-
});
|
|
2400
|
-
}
|
|
2401
|
-
};
|
|
2402
|
-
const de_GetQueryResultsCommand = async (output, context) => {
|
|
2403
|
-
if (output.statusCode >= 300) {
|
|
2404
|
-
return de_GetQueryResultsCommandError(output, context);
|
|
2405
|
-
}
|
|
2406
|
-
const data = await parseBody(output.body, context);
|
|
2407
|
-
let contents = {};
|
|
2408
|
-
contents = de_GetQueryResultsResponse(data, context);
|
|
2409
|
-
const response = {
|
|
2410
|
-
$metadata: deserializeMetadata(output),
|
|
2411
|
-
...contents,
|
|
2412
|
-
};
|
|
2413
|
-
return response;
|
|
2414
|
-
};
|
|
2415
|
-
exports.de_GetQueryResultsCommand = de_GetQueryResultsCommand;
|
|
2416
|
-
const de_GetQueryResultsCommandError = async (output, context) => {
|
|
2417
|
-
const parsedOutput = {
|
|
2418
|
-
...output,
|
|
2419
|
-
body: await parseErrorBody(output.body, context),
|
|
2420
|
-
};
|
|
2421
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2422
|
-
switch (errorCode) {
|
|
2423
|
-
case "InvalidParameterException":
|
|
2424
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2425
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "ResourceNotFoundException":
|
|
2427
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2428
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2429
|
-
case "ServiceUnavailableException":
|
|
2430
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2431
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2432
|
-
default:
|
|
2433
|
-
const parsedBody = parsedOutput.body;
|
|
2434
|
-
return throwDefaultError({
|
|
2435
|
-
output,
|
|
2436
|
-
parsedBody,
|
|
2437
|
-
errorCode,
|
|
2438
|
-
});
|
|
2439
|
-
}
|
|
2440
|
-
};
|
|
2441
|
-
const de_ListAnomaliesCommand = async (output, context) => {
|
|
2442
|
-
if (output.statusCode >= 300) {
|
|
2443
|
-
return de_ListAnomaliesCommandError(output, context);
|
|
2444
|
-
}
|
|
2445
|
-
const data = await parseBody(output.body, context);
|
|
2446
|
-
let contents = {};
|
|
2447
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2448
|
-
const response = {
|
|
2449
|
-
$metadata: deserializeMetadata(output),
|
|
2450
|
-
...contents,
|
|
2451
|
-
};
|
|
2452
|
-
return response;
|
|
2453
|
-
};
|
|
2454
|
-
exports.de_ListAnomaliesCommand = de_ListAnomaliesCommand;
|
|
2455
|
-
const de_ListAnomaliesCommandError = async (output, context) => {
|
|
2456
|
-
const parsedOutput = {
|
|
2457
|
-
...output,
|
|
2458
|
-
body: await parseErrorBody(output.body, context),
|
|
2459
|
-
};
|
|
2460
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2461
|
-
switch (errorCode) {
|
|
2462
|
-
case "InvalidParameterException":
|
|
2463
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2464
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2465
|
-
case "OperationAbortedException":
|
|
2466
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2467
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2468
|
-
case "ResourceNotFoundException":
|
|
2469
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2470
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "ServiceUnavailableException":
|
|
2472
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2473
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2474
|
-
default:
|
|
2475
|
-
const parsedBody = parsedOutput.body;
|
|
2476
|
-
return throwDefaultError({
|
|
2477
|
-
output,
|
|
2478
|
-
parsedBody,
|
|
2479
|
-
errorCode,
|
|
2480
|
-
});
|
|
2481
|
-
}
|
|
2482
|
-
};
|
|
2483
|
-
const de_ListLogAnomalyDetectorsCommand = async (output, context) => {
|
|
2484
|
-
if (output.statusCode >= 300) {
|
|
2485
|
-
return de_ListLogAnomalyDetectorsCommandError(output, context);
|
|
2486
|
-
}
|
|
2487
|
-
const data = await parseBody(output.body, context);
|
|
2488
|
-
let contents = {};
|
|
2489
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2490
|
-
const response = {
|
|
2491
|
-
$metadata: deserializeMetadata(output),
|
|
2492
|
-
...contents,
|
|
2493
|
-
};
|
|
2494
|
-
return response;
|
|
2495
|
-
};
|
|
2496
|
-
exports.de_ListLogAnomalyDetectorsCommand = de_ListLogAnomalyDetectorsCommand;
|
|
2497
|
-
const de_ListLogAnomalyDetectorsCommandError = async (output, context) => {
|
|
2498
|
-
const parsedOutput = {
|
|
2499
|
-
...output,
|
|
2500
|
-
body: await parseErrorBody(output.body, context),
|
|
2501
|
-
};
|
|
2502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2503
|
-
switch (errorCode) {
|
|
2504
|
-
case "InvalidParameterException":
|
|
2505
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2506
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2507
|
-
case "OperationAbortedException":
|
|
2508
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2509
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2510
|
-
case "ResourceNotFoundException":
|
|
2511
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2512
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "ServiceUnavailableException":
|
|
2514
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2515
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2516
|
-
default:
|
|
2517
|
-
const parsedBody = parsedOutput.body;
|
|
2518
|
-
return throwDefaultError({
|
|
2519
|
-
output,
|
|
2520
|
-
parsedBody,
|
|
2521
|
-
errorCode,
|
|
2522
|
-
});
|
|
2523
|
-
}
|
|
2524
|
-
};
|
|
2525
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2526
|
-
if (output.statusCode >= 300) {
|
|
2527
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2528
|
-
}
|
|
2529
|
-
const data = await parseBody(output.body, context);
|
|
2530
|
-
let contents = {};
|
|
2531
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2532
|
-
const response = {
|
|
2533
|
-
$metadata: deserializeMetadata(output),
|
|
2534
|
-
...contents,
|
|
2535
|
-
};
|
|
2536
|
-
return response;
|
|
2537
|
-
};
|
|
2538
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2539
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2540
|
-
const parsedOutput = {
|
|
2541
|
-
...output,
|
|
2542
|
-
body: await parseErrorBody(output.body, context),
|
|
2543
|
-
};
|
|
2544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2545
|
-
switch (errorCode) {
|
|
2546
|
-
case "InvalidParameterException":
|
|
2547
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2548
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "ResourceNotFoundException":
|
|
2550
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2552
|
-
case "ServiceUnavailableException":
|
|
2553
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2554
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2555
|
-
default:
|
|
2556
|
-
const parsedBody = parsedOutput.body;
|
|
2557
|
-
return throwDefaultError({
|
|
2558
|
-
output,
|
|
2559
|
-
parsedBody,
|
|
2560
|
-
errorCode,
|
|
2561
|
-
});
|
|
2562
|
-
}
|
|
2563
|
-
};
|
|
2564
|
-
const de_ListTagsLogGroupCommand = async (output, context) => {
|
|
2565
|
-
if (output.statusCode >= 300) {
|
|
2566
|
-
return de_ListTagsLogGroupCommandError(output, context);
|
|
2567
|
-
}
|
|
2568
|
-
const data = await parseBody(output.body, context);
|
|
2569
|
-
let contents = {};
|
|
2570
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2571
|
-
const response = {
|
|
2572
|
-
$metadata: deserializeMetadata(output),
|
|
2573
|
-
...contents,
|
|
2574
|
-
};
|
|
2575
|
-
return response;
|
|
2576
|
-
};
|
|
2577
|
-
exports.de_ListTagsLogGroupCommand = de_ListTagsLogGroupCommand;
|
|
2578
|
-
const de_ListTagsLogGroupCommandError = async (output, context) => {
|
|
2579
|
-
const parsedOutput = {
|
|
2580
|
-
...output,
|
|
2581
|
-
body: await parseErrorBody(output.body, context),
|
|
2582
|
-
};
|
|
2583
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2584
|
-
switch (errorCode) {
|
|
2585
|
-
case "ResourceNotFoundException":
|
|
2586
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2587
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2588
|
-
case "ServiceUnavailableException":
|
|
2589
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2590
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2591
|
-
default:
|
|
2592
|
-
const parsedBody = parsedOutput.body;
|
|
2593
|
-
return throwDefaultError({
|
|
2594
|
-
output,
|
|
2595
|
-
parsedBody,
|
|
2596
|
-
errorCode,
|
|
2597
|
-
});
|
|
2598
|
-
}
|
|
2599
|
-
};
|
|
2600
|
-
const de_PutAccountPolicyCommand = async (output, context) => {
|
|
2601
|
-
if (output.statusCode >= 300) {
|
|
2602
|
-
return de_PutAccountPolicyCommandError(output, context);
|
|
2603
|
-
}
|
|
2604
|
-
const data = await parseBody(output.body, context);
|
|
2605
|
-
let contents = {};
|
|
2606
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2607
|
-
const response = {
|
|
2608
|
-
$metadata: deserializeMetadata(output),
|
|
2609
|
-
...contents,
|
|
2610
|
-
};
|
|
2611
|
-
return response;
|
|
2612
|
-
};
|
|
2613
|
-
exports.de_PutAccountPolicyCommand = de_PutAccountPolicyCommand;
|
|
2614
|
-
const de_PutAccountPolicyCommandError = async (output, context) => {
|
|
2615
|
-
const parsedOutput = {
|
|
2616
|
-
...output,
|
|
2617
|
-
body: await parseErrorBody(output.body, context),
|
|
2618
|
-
};
|
|
2619
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2620
|
-
switch (errorCode) {
|
|
2621
|
-
case "InvalidParameterException":
|
|
2622
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2623
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2624
|
-
case "LimitExceededException":
|
|
2625
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2626
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2627
|
-
case "OperationAbortedException":
|
|
2628
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2629
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2630
|
-
case "ServiceUnavailableException":
|
|
2631
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2632
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2633
|
-
default:
|
|
2634
|
-
const parsedBody = parsedOutput.body;
|
|
2635
|
-
return throwDefaultError({
|
|
2636
|
-
output,
|
|
2637
|
-
parsedBody,
|
|
2638
|
-
errorCode,
|
|
2639
|
-
});
|
|
2640
|
-
}
|
|
2641
|
-
};
|
|
2642
|
-
const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
2643
|
-
if (output.statusCode >= 300) {
|
|
2644
|
-
return de_PutDataProtectionPolicyCommandError(output, context);
|
|
2645
|
-
}
|
|
2646
|
-
const data = await parseBody(output.body, context);
|
|
2647
|
-
let contents = {};
|
|
2648
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2649
|
-
const response = {
|
|
2650
|
-
$metadata: deserializeMetadata(output),
|
|
2651
|
-
...contents,
|
|
2652
|
-
};
|
|
2653
|
-
return response;
|
|
2654
|
-
};
|
|
2655
|
-
exports.de_PutDataProtectionPolicyCommand = de_PutDataProtectionPolicyCommand;
|
|
2656
|
-
const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
2657
|
-
const parsedOutput = {
|
|
2658
|
-
...output,
|
|
2659
|
-
body: await parseErrorBody(output.body, context),
|
|
2660
|
-
};
|
|
2661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2662
|
-
switch (errorCode) {
|
|
2663
|
-
case "InvalidParameterException":
|
|
2664
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2665
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "LimitExceededException":
|
|
2667
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2668
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "OperationAbortedException":
|
|
2670
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2671
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "ResourceNotFoundException":
|
|
2673
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2674
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "ServiceUnavailableException":
|
|
2676
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2677
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2678
|
-
default:
|
|
2679
|
-
const parsedBody = parsedOutput.body;
|
|
2680
|
-
return throwDefaultError({
|
|
2681
|
-
output,
|
|
2682
|
-
parsedBody,
|
|
2683
|
-
errorCode,
|
|
2684
|
-
});
|
|
2685
|
-
}
|
|
2686
|
-
};
|
|
2687
|
-
const de_PutDeliveryDestinationCommand = async (output, context) => {
|
|
2688
|
-
if (output.statusCode >= 300) {
|
|
2689
|
-
return de_PutDeliveryDestinationCommandError(output, context);
|
|
2690
|
-
}
|
|
2691
|
-
const data = await parseBody(output.body, context);
|
|
2692
|
-
let contents = {};
|
|
2693
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2694
|
-
const response = {
|
|
2695
|
-
$metadata: deserializeMetadata(output),
|
|
2696
|
-
...contents,
|
|
2697
|
-
};
|
|
2698
|
-
return response;
|
|
2699
|
-
};
|
|
2700
|
-
exports.de_PutDeliveryDestinationCommand = de_PutDeliveryDestinationCommand;
|
|
2701
|
-
const de_PutDeliveryDestinationCommandError = async (output, context) => {
|
|
2702
|
-
const parsedOutput = {
|
|
2703
|
-
...output,
|
|
2704
|
-
body: await parseErrorBody(output.body, context),
|
|
2705
|
-
};
|
|
2706
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2707
|
-
switch (errorCode) {
|
|
2708
|
-
case "ConflictException":
|
|
2709
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2710
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2711
|
-
case "ResourceNotFoundException":
|
|
2712
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2713
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2714
|
-
case "ServiceQuotaExceededException":
|
|
2715
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2716
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2717
|
-
case "ServiceUnavailableException":
|
|
2718
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2719
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2720
|
-
case "ThrottlingException":
|
|
2721
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2722
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2723
|
-
case "ValidationException":
|
|
2724
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2725
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2726
|
-
default:
|
|
2727
|
-
const parsedBody = parsedOutput.body;
|
|
2728
|
-
return throwDefaultError({
|
|
2729
|
-
output,
|
|
2730
|
-
parsedBody,
|
|
2731
|
-
errorCode,
|
|
2732
|
-
});
|
|
2733
|
-
}
|
|
2734
|
-
};
|
|
2735
|
-
const de_PutDeliveryDestinationPolicyCommand = async (output, context) => {
|
|
2736
|
-
if (output.statusCode >= 300) {
|
|
2737
|
-
return de_PutDeliveryDestinationPolicyCommandError(output, context);
|
|
2738
|
-
}
|
|
2739
|
-
const data = await parseBody(output.body, context);
|
|
2740
|
-
let contents = {};
|
|
2741
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2742
|
-
const response = {
|
|
2743
|
-
$metadata: deserializeMetadata(output),
|
|
2744
|
-
...contents,
|
|
2745
|
-
};
|
|
2746
|
-
return response;
|
|
2747
|
-
};
|
|
2748
|
-
exports.de_PutDeliveryDestinationPolicyCommand = de_PutDeliveryDestinationPolicyCommand;
|
|
2749
|
-
const de_PutDeliveryDestinationPolicyCommandError = async (output, context) => {
|
|
2750
|
-
const parsedOutput = {
|
|
2751
|
-
...output,
|
|
2752
|
-
body: await parseErrorBody(output.body, context),
|
|
2753
|
-
};
|
|
2754
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2755
|
-
switch (errorCode) {
|
|
2756
|
-
case "ConflictException":
|
|
2757
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2758
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "ResourceNotFoundException":
|
|
2760
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2761
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "ServiceUnavailableException":
|
|
2763
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2764
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "ValidationException":
|
|
2766
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2767
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2768
|
-
default:
|
|
2769
|
-
const parsedBody = parsedOutput.body;
|
|
2770
|
-
return throwDefaultError({
|
|
2771
|
-
output,
|
|
2772
|
-
parsedBody,
|
|
2773
|
-
errorCode,
|
|
2774
|
-
});
|
|
2775
|
-
}
|
|
2776
|
-
};
|
|
2777
|
-
const de_PutDeliverySourceCommand = async (output, context) => {
|
|
2778
|
-
if (output.statusCode >= 300) {
|
|
2779
|
-
return de_PutDeliverySourceCommandError(output, context);
|
|
2780
|
-
}
|
|
2781
|
-
const data = await parseBody(output.body, context);
|
|
2782
|
-
let contents = {};
|
|
2783
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2784
|
-
const response = {
|
|
2785
|
-
$metadata: deserializeMetadata(output),
|
|
2786
|
-
...contents,
|
|
2787
|
-
};
|
|
2788
|
-
return response;
|
|
2789
|
-
};
|
|
2790
|
-
exports.de_PutDeliverySourceCommand = de_PutDeliverySourceCommand;
|
|
2791
|
-
const de_PutDeliverySourceCommandError = async (output, context) => {
|
|
2792
|
-
const parsedOutput = {
|
|
2793
|
-
...output,
|
|
2794
|
-
body: await parseErrorBody(output.body, context),
|
|
2795
|
-
};
|
|
2796
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2797
|
-
switch (errorCode) {
|
|
2798
|
-
case "ConflictException":
|
|
2799
|
-
case "com.amazonaws.cloudwatchlogs#ConflictException":
|
|
2800
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2801
|
-
case "ResourceNotFoundException":
|
|
2802
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2803
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ServiceQuotaExceededException":
|
|
2805
|
-
case "com.amazonaws.cloudwatchlogs#ServiceQuotaExceededException":
|
|
2806
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "ServiceUnavailableException":
|
|
2808
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2809
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "ThrottlingException":
|
|
2811
|
-
case "com.amazonaws.cloudwatchlogs#ThrottlingException":
|
|
2812
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "ValidationException":
|
|
2814
|
-
case "com.amazonaws.cloudwatchlogs#ValidationException":
|
|
2815
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2816
|
-
default:
|
|
2817
|
-
const parsedBody = parsedOutput.body;
|
|
2818
|
-
return throwDefaultError({
|
|
2819
|
-
output,
|
|
2820
|
-
parsedBody,
|
|
2821
|
-
errorCode,
|
|
2822
|
-
});
|
|
2823
|
-
}
|
|
2824
|
-
};
|
|
2825
|
-
const de_PutDestinationCommand = async (output, context) => {
|
|
2826
|
-
if (output.statusCode >= 300) {
|
|
2827
|
-
return de_PutDestinationCommandError(output, context);
|
|
2828
|
-
}
|
|
2829
|
-
const data = await parseBody(output.body, context);
|
|
2830
|
-
let contents = {};
|
|
2831
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2832
|
-
const response = {
|
|
2833
|
-
$metadata: deserializeMetadata(output),
|
|
2834
|
-
...contents,
|
|
2835
|
-
};
|
|
2836
|
-
return response;
|
|
2837
|
-
};
|
|
2838
|
-
exports.de_PutDestinationCommand = de_PutDestinationCommand;
|
|
2839
|
-
const de_PutDestinationCommandError = async (output, context) => {
|
|
2840
|
-
const parsedOutput = {
|
|
2841
|
-
...output,
|
|
2842
|
-
body: await parseErrorBody(output.body, context),
|
|
2843
|
-
};
|
|
2844
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2845
|
-
switch (errorCode) {
|
|
2846
|
-
case "InvalidParameterException":
|
|
2847
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2848
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "OperationAbortedException":
|
|
2850
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2851
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "ServiceUnavailableException":
|
|
2853
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2854
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2855
|
-
default:
|
|
2856
|
-
const parsedBody = parsedOutput.body;
|
|
2857
|
-
return throwDefaultError({
|
|
2858
|
-
output,
|
|
2859
|
-
parsedBody,
|
|
2860
|
-
errorCode,
|
|
2861
|
-
});
|
|
2862
|
-
}
|
|
2863
|
-
};
|
|
2864
|
-
const de_PutDestinationPolicyCommand = async (output, context) => {
|
|
2865
|
-
if (output.statusCode >= 300) {
|
|
2866
|
-
return de_PutDestinationPolicyCommandError(output, context);
|
|
2867
|
-
}
|
|
2868
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2869
|
-
const response = {
|
|
2870
|
-
$metadata: deserializeMetadata(output),
|
|
2871
|
-
};
|
|
2872
|
-
return response;
|
|
2873
|
-
};
|
|
2874
|
-
exports.de_PutDestinationPolicyCommand = de_PutDestinationPolicyCommand;
|
|
2875
|
-
const de_PutDestinationPolicyCommandError = async (output, context) => {
|
|
2876
|
-
const parsedOutput = {
|
|
2877
|
-
...output,
|
|
2878
|
-
body: await parseErrorBody(output.body, context),
|
|
2879
|
-
};
|
|
2880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2881
|
-
switch (errorCode) {
|
|
2882
|
-
case "InvalidParameterException":
|
|
2883
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2884
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2885
|
-
case "OperationAbortedException":
|
|
2886
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2887
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "ServiceUnavailableException":
|
|
2889
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2890
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2891
|
-
default:
|
|
2892
|
-
const parsedBody = parsedOutput.body;
|
|
2893
|
-
return throwDefaultError({
|
|
2894
|
-
output,
|
|
2895
|
-
parsedBody,
|
|
2896
|
-
errorCode,
|
|
2897
|
-
});
|
|
2898
|
-
}
|
|
2899
|
-
};
|
|
2900
|
-
const de_PutLogEventsCommand = async (output, context) => {
|
|
2901
|
-
if (output.statusCode >= 300) {
|
|
2902
|
-
return de_PutLogEventsCommandError(output, context);
|
|
2903
|
-
}
|
|
2904
|
-
const data = await parseBody(output.body, context);
|
|
2905
|
-
let contents = {};
|
|
2906
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2907
|
-
const response = {
|
|
2908
|
-
$metadata: deserializeMetadata(output),
|
|
2909
|
-
...contents,
|
|
2910
|
-
};
|
|
2911
|
-
return response;
|
|
2912
|
-
};
|
|
2913
|
-
exports.de_PutLogEventsCommand = de_PutLogEventsCommand;
|
|
2914
|
-
const de_PutLogEventsCommandError = async (output, context) => {
|
|
2915
|
-
const parsedOutput = {
|
|
2916
|
-
...output,
|
|
2917
|
-
body: await parseErrorBody(output.body, context),
|
|
2918
|
-
};
|
|
2919
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2920
|
-
switch (errorCode) {
|
|
2921
|
-
case "DataAlreadyAcceptedException":
|
|
2922
|
-
case "com.amazonaws.cloudwatchlogs#DataAlreadyAcceptedException":
|
|
2923
|
-
throw await de_DataAlreadyAcceptedExceptionRes(parsedOutput, context);
|
|
2924
|
-
case "InvalidParameterException":
|
|
2925
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2926
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2927
|
-
case "InvalidSequenceTokenException":
|
|
2928
|
-
case "com.amazonaws.cloudwatchlogs#InvalidSequenceTokenException":
|
|
2929
|
-
throw await de_InvalidSequenceTokenExceptionRes(parsedOutput, context);
|
|
2930
|
-
case "ResourceNotFoundException":
|
|
2931
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2932
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2933
|
-
case "ServiceUnavailableException":
|
|
2934
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2935
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2936
|
-
case "UnrecognizedClientException":
|
|
2937
|
-
case "com.amazonaws.cloudwatchlogs#UnrecognizedClientException":
|
|
2938
|
-
throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
|
|
2939
|
-
default:
|
|
2940
|
-
const parsedBody = parsedOutput.body;
|
|
2941
|
-
return throwDefaultError({
|
|
2942
|
-
output,
|
|
2943
|
-
parsedBody,
|
|
2944
|
-
errorCode,
|
|
2945
|
-
});
|
|
2946
|
-
}
|
|
2947
|
-
};
|
|
2948
|
-
const de_PutMetricFilterCommand = async (output, context) => {
|
|
2949
|
-
if (output.statusCode >= 300) {
|
|
2950
|
-
return de_PutMetricFilterCommandError(output, context);
|
|
2951
|
-
}
|
|
2952
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2953
|
-
const response = {
|
|
2954
|
-
$metadata: deserializeMetadata(output),
|
|
2955
|
-
};
|
|
2956
|
-
return response;
|
|
2957
|
-
};
|
|
2958
|
-
exports.de_PutMetricFilterCommand = de_PutMetricFilterCommand;
|
|
2959
|
-
const de_PutMetricFilterCommandError = async (output, context) => {
|
|
2960
|
-
const parsedOutput = {
|
|
2961
|
-
...output,
|
|
2962
|
-
body: await parseErrorBody(output.body, context),
|
|
2963
|
-
};
|
|
2964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2965
|
-
switch (errorCode) {
|
|
2966
|
-
case "InvalidParameterException":
|
|
2967
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
2968
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
2969
|
-
case "LimitExceededException":
|
|
2970
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
2971
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2972
|
-
case "OperationAbortedException":
|
|
2973
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
2974
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
2975
|
-
case "ResourceNotFoundException":
|
|
2976
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
2977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "ServiceUnavailableException":
|
|
2979
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
2980
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2981
|
-
default:
|
|
2982
|
-
const parsedBody = parsedOutput.body;
|
|
2983
|
-
return throwDefaultError({
|
|
2984
|
-
output,
|
|
2985
|
-
parsedBody,
|
|
2986
|
-
errorCode,
|
|
2987
|
-
});
|
|
2988
|
-
}
|
|
2989
|
-
};
|
|
2990
|
-
const de_PutQueryDefinitionCommand = async (output, context) => {
|
|
2991
|
-
if (output.statusCode >= 300) {
|
|
2992
|
-
return de_PutQueryDefinitionCommandError(output, context);
|
|
2993
|
-
}
|
|
2994
|
-
const data = await parseBody(output.body, context);
|
|
2995
|
-
let contents = {};
|
|
2996
|
-
contents = (0, smithy_client_1._json)(data);
|
|
2997
|
-
const response = {
|
|
2998
|
-
$metadata: deserializeMetadata(output),
|
|
2999
|
-
...contents,
|
|
3000
|
-
};
|
|
3001
|
-
return response;
|
|
3002
|
-
};
|
|
3003
|
-
exports.de_PutQueryDefinitionCommand = de_PutQueryDefinitionCommand;
|
|
3004
|
-
const de_PutQueryDefinitionCommandError = async (output, context) => {
|
|
3005
|
-
const parsedOutput = {
|
|
3006
|
-
...output,
|
|
3007
|
-
body: await parseErrorBody(output.body, context),
|
|
3008
|
-
};
|
|
3009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3010
|
-
switch (errorCode) {
|
|
3011
|
-
case "InvalidParameterException":
|
|
3012
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3013
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3014
|
-
case "LimitExceededException":
|
|
3015
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3016
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3017
|
-
case "ResourceNotFoundException":
|
|
3018
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3019
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3020
|
-
case "ServiceUnavailableException":
|
|
3021
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3022
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3023
|
-
default:
|
|
3024
|
-
const parsedBody = parsedOutput.body;
|
|
3025
|
-
return throwDefaultError({
|
|
3026
|
-
output,
|
|
3027
|
-
parsedBody,
|
|
3028
|
-
errorCode,
|
|
3029
|
-
});
|
|
3030
|
-
}
|
|
3031
|
-
};
|
|
3032
|
-
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
3033
|
-
if (output.statusCode >= 300) {
|
|
3034
|
-
return de_PutResourcePolicyCommandError(output, context);
|
|
3035
|
-
}
|
|
3036
|
-
const data = await parseBody(output.body, context);
|
|
3037
|
-
let contents = {};
|
|
3038
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3039
|
-
const response = {
|
|
3040
|
-
$metadata: deserializeMetadata(output),
|
|
3041
|
-
...contents,
|
|
3042
|
-
};
|
|
3043
|
-
return response;
|
|
3044
|
-
};
|
|
3045
|
-
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
3046
|
-
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
3047
|
-
const parsedOutput = {
|
|
3048
|
-
...output,
|
|
3049
|
-
body: await parseErrorBody(output.body, context),
|
|
3050
|
-
};
|
|
3051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3052
|
-
switch (errorCode) {
|
|
3053
|
-
case "InvalidParameterException":
|
|
3054
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3055
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "LimitExceededException":
|
|
3057
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3058
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3059
|
-
case "ServiceUnavailableException":
|
|
3060
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3061
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3062
|
-
default:
|
|
3063
|
-
const parsedBody = parsedOutput.body;
|
|
3064
|
-
return throwDefaultError({
|
|
3065
|
-
output,
|
|
3066
|
-
parsedBody,
|
|
3067
|
-
errorCode,
|
|
3068
|
-
});
|
|
3069
|
-
}
|
|
3070
|
-
};
|
|
3071
|
-
const de_PutRetentionPolicyCommand = async (output, context) => {
|
|
3072
|
-
if (output.statusCode >= 300) {
|
|
3073
|
-
return de_PutRetentionPolicyCommandError(output, context);
|
|
3074
|
-
}
|
|
3075
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3076
|
-
const response = {
|
|
3077
|
-
$metadata: deserializeMetadata(output),
|
|
3078
|
-
};
|
|
3079
|
-
return response;
|
|
3080
|
-
};
|
|
3081
|
-
exports.de_PutRetentionPolicyCommand = de_PutRetentionPolicyCommand;
|
|
3082
|
-
const de_PutRetentionPolicyCommandError = async (output, context) => {
|
|
3083
|
-
const parsedOutput = {
|
|
3084
|
-
...output,
|
|
3085
|
-
body: await parseErrorBody(output.body, context),
|
|
3086
|
-
};
|
|
3087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3088
|
-
switch (errorCode) {
|
|
3089
|
-
case "InvalidParameterException":
|
|
3090
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3091
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3092
|
-
case "OperationAbortedException":
|
|
3093
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3094
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3095
|
-
case "ResourceNotFoundException":
|
|
3096
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3097
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3098
|
-
case "ServiceUnavailableException":
|
|
3099
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3100
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3101
|
-
default:
|
|
3102
|
-
const parsedBody = parsedOutput.body;
|
|
3103
|
-
return throwDefaultError({
|
|
3104
|
-
output,
|
|
3105
|
-
parsedBody,
|
|
3106
|
-
errorCode,
|
|
3107
|
-
});
|
|
3108
|
-
}
|
|
3109
|
-
};
|
|
3110
|
-
const de_PutSubscriptionFilterCommand = async (output, context) => {
|
|
3111
|
-
if (output.statusCode >= 300) {
|
|
3112
|
-
return de_PutSubscriptionFilterCommandError(output, context);
|
|
3113
|
-
}
|
|
3114
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3115
|
-
const response = {
|
|
3116
|
-
$metadata: deserializeMetadata(output),
|
|
3117
|
-
};
|
|
3118
|
-
return response;
|
|
3119
|
-
};
|
|
3120
|
-
exports.de_PutSubscriptionFilterCommand = de_PutSubscriptionFilterCommand;
|
|
3121
|
-
const de_PutSubscriptionFilterCommandError = async (output, context) => {
|
|
3122
|
-
const parsedOutput = {
|
|
3123
|
-
...output,
|
|
3124
|
-
body: await parseErrorBody(output.body, context),
|
|
3125
|
-
};
|
|
3126
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3127
|
-
switch (errorCode) {
|
|
3128
|
-
case "InvalidParameterException":
|
|
3129
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3130
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3131
|
-
case "LimitExceededException":
|
|
3132
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3133
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3134
|
-
case "OperationAbortedException":
|
|
3135
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3136
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3137
|
-
case "ResourceNotFoundException":
|
|
3138
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3139
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3140
|
-
case "ServiceUnavailableException":
|
|
3141
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3142
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3143
|
-
default:
|
|
3144
|
-
const parsedBody = parsedOutput.body;
|
|
3145
|
-
return throwDefaultError({
|
|
3146
|
-
output,
|
|
3147
|
-
parsedBody,
|
|
3148
|
-
errorCode,
|
|
3149
|
-
});
|
|
3150
|
-
}
|
|
3151
|
-
};
|
|
3152
|
-
const de_StartLiveTailCommand = async (output, context) => {
|
|
3153
|
-
if (output.statusCode >= 300) {
|
|
3154
|
-
return de_StartLiveTailCommandError(output, context);
|
|
3155
|
-
}
|
|
3156
|
-
const contents = { responseStream: de_StartLiveTailResponseStream(output.body, context) };
|
|
3157
|
-
const response = {
|
|
3158
|
-
$metadata: deserializeMetadata(output),
|
|
3159
|
-
...contents,
|
|
3160
|
-
};
|
|
3161
|
-
return response;
|
|
3162
|
-
};
|
|
3163
|
-
exports.de_StartLiveTailCommand = de_StartLiveTailCommand;
|
|
3164
|
-
const de_StartLiveTailCommandError = async (output, context) => {
|
|
3165
|
-
const parsedOutput = {
|
|
3166
|
-
...output,
|
|
3167
|
-
body: await parseErrorBody(output.body, context),
|
|
3168
|
-
};
|
|
3169
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3170
|
-
switch (errorCode) {
|
|
3171
|
-
case "AccessDeniedException":
|
|
3172
|
-
case "com.amazonaws.cloudwatchlogs#AccessDeniedException":
|
|
3173
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3174
|
-
case "InvalidOperationException":
|
|
3175
|
-
case "com.amazonaws.cloudwatchlogs#InvalidOperationException":
|
|
3176
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
3177
|
-
case "InvalidParameterException":
|
|
3178
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3179
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3180
|
-
case "LimitExceededException":
|
|
3181
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3182
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3183
|
-
case "ResourceNotFoundException":
|
|
3184
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3185
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3186
|
-
default:
|
|
3187
|
-
const parsedBody = parsedOutput.body;
|
|
3188
|
-
return throwDefaultError({
|
|
3189
|
-
output,
|
|
3190
|
-
parsedBody,
|
|
3191
|
-
errorCode,
|
|
3192
|
-
});
|
|
3193
|
-
}
|
|
3194
|
-
};
|
|
3195
|
-
const de_StartQueryCommand = async (output, context) => {
|
|
3196
|
-
if (output.statusCode >= 300) {
|
|
3197
|
-
return de_StartQueryCommandError(output, context);
|
|
3198
|
-
}
|
|
3199
|
-
const data = await parseBody(output.body, context);
|
|
3200
|
-
let contents = {};
|
|
3201
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3202
|
-
const response = {
|
|
3203
|
-
$metadata: deserializeMetadata(output),
|
|
3204
|
-
...contents,
|
|
3205
|
-
};
|
|
3206
|
-
return response;
|
|
3207
|
-
};
|
|
3208
|
-
exports.de_StartQueryCommand = de_StartQueryCommand;
|
|
3209
|
-
const de_StartQueryCommandError = async (output, context) => {
|
|
3210
|
-
const parsedOutput = {
|
|
3211
|
-
...output,
|
|
3212
|
-
body: await parseErrorBody(output.body, context),
|
|
3213
|
-
};
|
|
3214
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3215
|
-
switch (errorCode) {
|
|
3216
|
-
case "InvalidParameterException":
|
|
3217
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3218
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "LimitExceededException":
|
|
3220
|
-
case "com.amazonaws.cloudwatchlogs#LimitExceededException":
|
|
3221
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3222
|
-
case "MalformedQueryException":
|
|
3223
|
-
case "com.amazonaws.cloudwatchlogs#MalformedQueryException":
|
|
3224
|
-
throw await de_MalformedQueryExceptionRes(parsedOutput, context);
|
|
3225
|
-
case "ResourceNotFoundException":
|
|
3226
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3227
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3228
|
-
case "ServiceUnavailableException":
|
|
3229
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3230
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3231
|
-
default:
|
|
3232
|
-
const parsedBody = parsedOutput.body;
|
|
3233
|
-
return throwDefaultError({
|
|
3234
|
-
output,
|
|
3235
|
-
parsedBody,
|
|
3236
|
-
errorCode,
|
|
3237
|
-
});
|
|
3238
|
-
}
|
|
3239
|
-
};
|
|
3240
|
-
const de_StopQueryCommand = async (output, context) => {
|
|
3241
|
-
if (output.statusCode >= 300) {
|
|
3242
|
-
return de_StopQueryCommandError(output, context);
|
|
3243
|
-
}
|
|
3244
|
-
const data = await parseBody(output.body, context);
|
|
3245
|
-
let contents = {};
|
|
3246
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3247
|
-
const response = {
|
|
3248
|
-
$metadata: deserializeMetadata(output),
|
|
3249
|
-
...contents,
|
|
3250
|
-
};
|
|
3251
|
-
return response;
|
|
3252
|
-
};
|
|
3253
|
-
exports.de_StopQueryCommand = de_StopQueryCommand;
|
|
3254
|
-
const de_StopQueryCommandError = async (output, context) => {
|
|
3255
|
-
const parsedOutput = {
|
|
3256
|
-
...output,
|
|
3257
|
-
body: await parseErrorBody(output.body, context),
|
|
3258
|
-
};
|
|
3259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3260
|
-
switch (errorCode) {
|
|
3261
|
-
case "InvalidParameterException":
|
|
3262
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3263
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3264
|
-
case "ResourceNotFoundException":
|
|
3265
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3266
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3267
|
-
case "ServiceUnavailableException":
|
|
3268
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3269
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3270
|
-
default:
|
|
3271
|
-
const parsedBody = parsedOutput.body;
|
|
3272
|
-
return throwDefaultError({
|
|
3273
|
-
output,
|
|
3274
|
-
parsedBody,
|
|
3275
|
-
errorCode,
|
|
3276
|
-
});
|
|
3277
|
-
}
|
|
3278
|
-
};
|
|
3279
|
-
const de_TagLogGroupCommand = async (output, context) => {
|
|
3280
|
-
if (output.statusCode >= 300) {
|
|
3281
|
-
return de_TagLogGroupCommandError(output, context);
|
|
3282
|
-
}
|
|
3283
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3284
|
-
const response = {
|
|
3285
|
-
$metadata: deserializeMetadata(output),
|
|
3286
|
-
};
|
|
3287
|
-
return response;
|
|
3288
|
-
};
|
|
3289
|
-
exports.de_TagLogGroupCommand = de_TagLogGroupCommand;
|
|
3290
|
-
const de_TagLogGroupCommandError = async (output, context) => {
|
|
3291
|
-
const parsedOutput = {
|
|
3292
|
-
...output,
|
|
3293
|
-
body: await parseErrorBody(output.body, context),
|
|
3294
|
-
};
|
|
3295
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3296
|
-
switch (errorCode) {
|
|
3297
|
-
case "InvalidParameterException":
|
|
3298
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3299
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3300
|
-
case "ResourceNotFoundException":
|
|
3301
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3302
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3303
|
-
default:
|
|
3304
|
-
const parsedBody = parsedOutput.body;
|
|
3305
|
-
return throwDefaultError({
|
|
3306
|
-
output,
|
|
3307
|
-
parsedBody,
|
|
3308
|
-
errorCode,
|
|
3309
|
-
});
|
|
3310
|
-
}
|
|
3311
|
-
};
|
|
3312
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3313
|
-
if (output.statusCode >= 300) {
|
|
3314
|
-
return de_TagResourceCommandError(output, context);
|
|
3315
|
-
}
|
|
3316
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3317
|
-
const response = {
|
|
3318
|
-
$metadata: deserializeMetadata(output),
|
|
3319
|
-
};
|
|
3320
|
-
return response;
|
|
3321
|
-
};
|
|
3322
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3323
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3324
|
-
const parsedOutput = {
|
|
3325
|
-
...output,
|
|
3326
|
-
body: await parseErrorBody(output.body, context),
|
|
3327
|
-
};
|
|
3328
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3329
|
-
switch (errorCode) {
|
|
3330
|
-
case "InvalidParameterException":
|
|
3331
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3332
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3333
|
-
case "ResourceNotFoundException":
|
|
3334
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3335
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3336
|
-
case "ServiceUnavailableException":
|
|
3337
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3338
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3339
|
-
case "TooManyTagsException":
|
|
3340
|
-
case "com.amazonaws.cloudwatchlogs#TooManyTagsException":
|
|
3341
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3342
|
-
default:
|
|
3343
|
-
const parsedBody = parsedOutput.body;
|
|
3344
|
-
return throwDefaultError({
|
|
3345
|
-
output,
|
|
3346
|
-
parsedBody,
|
|
3347
|
-
errorCode,
|
|
3348
|
-
});
|
|
3349
|
-
}
|
|
3350
|
-
};
|
|
3351
|
-
const de_TestMetricFilterCommand = async (output, context) => {
|
|
3352
|
-
if (output.statusCode >= 300) {
|
|
3353
|
-
return de_TestMetricFilterCommandError(output, context);
|
|
3354
|
-
}
|
|
3355
|
-
const data = await parseBody(output.body, context);
|
|
3356
|
-
let contents = {};
|
|
3357
|
-
contents = (0, smithy_client_1._json)(data);
|
|
3358
|
-
const response = {
|
|
3359
|
-
$metadata: deserializeMetadata(output),
|
|
3360
|
-
...contents,
|
|
3361
|
-
};
|
|
3362
|
-
return response;
|
|
3363
|
-
};
|
|
3364
|
-
exports.de_TestMetricFilterCommand = de_TestMetricFilterCommand;
|
|
3365
|
-
const de_TestMetricFilterCommandError = async (output, context) => {
|
|
3366
|
-
const parsedOutput = {
|
|
3367
|
-
...output,
|
|
3368
|
-
body: await parseErrorBody(output.body, context),
|
|
3369
|
-
};
|
|
3370
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3371
|
-
switch (errorCode) {
|
|
3372
|
-
case "InvalidParameterException":
|
|
3373
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3374
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3375
|
-
case "ServiceUnavailableException":
|
|
3376
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3377
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3378
|
-
default:
|
|
3379
|
-
const parsedBody = parsedOutput.body;
|
|
3380
|
-
return throwDefaultError({
|
|
3381
|
-
output,
|
|
3382
|
-
parsedBody,
|
|
3383
|
-
errorCode,
|
|
3384
|
-
});
|
|
3385
|
-
}
|
|
3386
|
-
};
|
|
3387
|
-
const de_UntagLogGroupCommand = async (output, context) => {
|
|
3388
|
-
if (output.statusCode >= 300) {
|
|
3389
|
-
return de_UntagLogGroupCommandError(output, context);
|
|
3390
|
-
}
|
|
3391
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3392
|
-
const response = {
|
|
3393
|
-
$metadata: deserializeMetadata(output),
|
|
3394
|
-
};
|
|
3395
|
-
return response;
|
|
3396
|
-
};
|
|
3397
|
-
exports.de_UntagLogGroupCommand = de_UntagLogGroupCommand;
|
|
3398
|
-
const de_UntagLogGroupCommandError = async (output, context) => {
|
|
3399
|
-
const parsedOutput = {
|
|
3400
|
-
...output,
|
|
3401
|
-
body: await parseErrorBody(output.body, context),
|
|
3402
|
-
};
|
|
3403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3404
|
-
switch (errorCode) {
|
|
3405
|
-
case "ResourceNotFoundException":
|
|
3406
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3407
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3408
|
-
default:
|
|
3409
|
-
const parsedBody = parsedOutput.body;
|
|
3410
|
-
return throwDefaultError({
|
|
3411
|
-
output,
|
|
3412
|
-
parsedBody,
|
|
3413
|
-
errorCode,
|
|
3414
|
-
});
|
|
3415
|
-
}
|
|
3416
|
-
};
|
|
3417
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3418
|
-
if (output.statusCode >= 300) {
|
|
3419
|
-
return de_UntagResourceCommandError(output, context);
|
|
3420
|
-
}
|
|
3421
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3422
|
-
const response = {
|
|
3423
|
-
$metadata: deserializeMetadata(output),
|
|
3424
|
-
};
|
|
3425
|
-
return response;
|
|
3426
|
-
};
|
|
3427
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3428
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3429
|
-
const parsedOutput = {
|
|
3430
|
-
...output,
|
|
3431
|
-
body: await parseErrorBody(output.body, context),
|
|
3432
|
-
};
|
|
3433
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3434
|
-
switch (errorCode) {
|
|
3435
|
-
case "InvalidParameterException":
|
|
3436
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3437
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3438
|
-
case "ResourceNotFoundException":
|
|
3439
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3440
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3441
|
-
case "ServiceUnavailableException":
|
|
3442
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3443
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3444
|
-
default:
|
|
3445
|
-
const parsedBody = parsedOutput.body;
|
|
3446
|
-
return throwDefaultError({
|
|
3447
|
-
output,
|
|
3448
|
-
parsedBody,
|
|
3449
|
-
errorCode,
|
|
3450
|
-
});
|
|
3451
|
-
}
|
|
3452
|
-
};
|
|
3453
|
-
const de_UpdateAnomalyCommand = async (output, context) => {
|
|
3454
|
-
if (output.statusCode >= 300) {
|
|
3455
|
-
return de_UpdateAnomalyCommandError(output, context);
|
|
3456
|
-
}
|
|
3457
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3458
|
-
const response = {
|
|
3459
|
-
$metadata: deserializeMetadata(output),
|
|
3460
|
-
};
|
|
3461
|
-
return response;
|
|
3462
|
-
};
|
|
3463
|
-
exports.de_UpdateAnomalyCommand = de_UpdateAnomalyCommand;
|
|
3464
|
-
const de_UpdateAnomalyCommandError = async (output, context) => {
|
|
3465
|
-
const parsedOutput = {
|
|
3466
|
-
...output,
|
|
3467
|
-
body: await parseErrorBody(output.body, context),
|
|
3468
|
-
};
|
|
3469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3470
|
-
switch (errorCode) {
|
|
3471
|
-
case "InvalidParameterException":
|
|
3472
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3473
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3474
|
-
case "OperationAbortedException":
|
|
3475
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3476
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3477
|
-
case "ResourceNotFoundException":
|
|
3478
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3479
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3480
|
-
case "ServiceUnavailableException":
|
|
3481
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3482
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3483
|
-
default:
|
|
3484
|
-
const parsedBody = parsedOutput.body;
|
|
3485
|
-
return throwDefaultError({
|
|
3486
|
-
output,
|
|
3487
|
-
parsedBody,
|
|
3488
|
-
errorCode,
|
|
3489
|
-
});
|
|
3490
|
-
}
|
|
3491
|
-
};
|
|
3492
|
-
const de_UpdateLogAnomalyDetectorCommand = async (output, context) => {
|
|
3493
|
-
if (output.statusCode >= 300) {
|
|
3494
|
-
return de_UpdateLogAnomalyDetectorCommandError(output, context);
|
|
3495
|
-
}
|
|
3496
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3497
|
-
const response = {
|
|
3498
|
-
$metadata: deserializeMetadata(output),
|
|
3499
|
-
};
|
|
3500
|
-
return response;
|
|
3501
|
-
};
|
|
3502
|
-
exports.de_UpdateLogAnomalyDetectorCommand = de_UpdateLogAnomalyDetectorCommand;
|
|
3503
|
-
const de_UpdateLogAnomalyDetectorCommandError = async (output, context) => {
|
|
3504
|
-
const parsedOutput = {
|
|
3505
|
-
...output,
|
|
3506
|
-
body: await parseErrorBody(output.body, context),
|
|
3507
|
-
};
|
|
3508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3509
|
-
switch (errorCode) {
|
|
3510
|
-
case "InvalidParameterException":
|
|
3511
|
-
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
3512
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3513
|
-
case "OperationAbortedException":
|
|
3514
|
-
case "com.amazonaws.cloudwatchlogs#OperationAbortedException":
|
|
3515
|
-
throw await de_OperationAbortedExceptionRes(parsedOutput, context);
|
|
3516
|
-
case "ResourceNotFoundException":
|
|
3517
|
-
case "com.amazonaws.cloudwatchlogs#ResourceNotFoundException":
|
|
3518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3519
|
-
case "ServiceUnavailableException":
|
|
3520
|
-
case "com.amazonaws.cloudwatchlogs#ServiceUnavailableException":
|
|
3521
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3522
|
-
default:
|
|
3523
|
-
const parsedBody = parsedOutput.body;
|
|
3524
|
-
return throwDefaultError({
|
|
3525
|
-
output,
|
|
3526
|
-
parsedBody,
|
|
3527
|
-
errorCode,
|
|
3528
|
-
});
|
|
3529
|
-
}
|
|
3530
|
-
};
|
|
3531
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
3532
|
-
const body = parsedOutput.body;
|
|
3533
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3534
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
3535
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3536
|
-
...deserialized,
|
|
3537
|
-
});
|
|
3538
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3539
|
-
};
|
|
3540
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
3541
|
-
const body = parsedOutput.body;
|
|
3542
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3543
|
-
const exception = new models_0_1.ConflictException({
|
|
3544
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3545
|
-
...deserialized,
|
|
3546
|
-
});
|
|
3547
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3548
|
-
};
|
|
3549
|
-
const de_DataAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
|
|
3550
|
-
const body = parsedOutput.body;
|
|
3551
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3552
|
-
const exception = new models_0_1.DataAlreadyAcceptedException({
|
|
3553
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3554
|
-
...deserialized,
|
|
3555
|
-
});
|
|
3556
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3557
|
-
};
|
|
3558
|
-
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
3559
|
-
const body = parsedOutput.body;
|
|
3560
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3561
|
-
const exception = new models_0_1.InvalidOperationException({
|
|
3562
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3563
|
-
...deserialized,
|
|
3564
|
-
});
|
|
3565
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3566
|
-
};
|
|
3567
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
3568
|
-
const body = parsedOutput.body;
|
|
3569
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3570
|
-
const exception = new models_0_1.InvalidParameterException({
|
|
3571
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3572
|
-
...deserialized,
|
|
3573
|
-
});
|
|
3574
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3575
|
-
};
|
|
3576
|
-
const de_InvalidSequenceTokenExceptionRes = async (parsedOutput, context) => {
|
|
3577
|
-
const body = parsedOutput.body;
|
|
3578
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3579
|
-
const exception = new models_0_1.InvalidSequenceTokenException({
|
|
3580
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3581
|
-
...deserialized,
|
|
3582
|
-
});
|
|
3583
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3584
|
-
};
|
|
3585
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
3586
|
-
const body = parsedOutput.body;
|
|
3587
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3588
|
-
const exception = new models_0_1.LimitExceededException({
|
|
3589
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3590
|
-
...deserialized,
|
|
3591
|
-
});
|
|
3592
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3593
|
-
};
|
|
3594
|
-
const de_MalformedQueryExceptionRes = async (parsedOutput, context) => {
|
|
3595
|
-
const body = parsedOutput.body;
|
|
3596
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3597
|
-
const exception = new models_0_1.MalformedQueryException({
|
|
3598
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3599
|
-
...deserialized,
|
|
3600
|
-
});
|
|
3601
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3602
|
-
};
|
|
3603
|
-
const de_OperationAbortedExceptionRes = async (parsedOutput, context) => {
|
|
3604
|
-
const body = parsedOutput.body;
|
|
3605
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3606
|
-
const exception = new models_0_1.OperationAbortedException({
|
|
3607
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3608
|
-
...deserialized,
|
|
3609
|
-
});
|
|
3610
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3611
|
-
};
|
|
3612
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
3613
|
-
const body = parsedOutput.body;
|
|
3614
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3615
|
-
const exception = new models_0_1.ResourceAlreadyExistsException({
|
|
3616
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3617
|
-
...deserialized,
|
|
3618
|
-
});
|
|
3619
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3620
|
-
};
|
|
3621
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3622
|
-
const body = parsedOutput.body;
|
|
3623
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3624
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
3625
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3626
|
-
...deserialized,
|
|
3627
|
-
});
|
|
3628
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3629
|
-
};
|
|
3630
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
3631
|
-
const body = parsedOutput.body;
|
|
3632
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3633
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
3634
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3635
|
-
...deserialized,
|
|
3636
|
-
});
|
|
3637
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3638
|
-
};
|
|
3639
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
3640
|
-
const body = parsedOutput.body;
|
|
3641
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3642
|
-
const exception = new models_0_1.ServiceUnavailableException({
|
|
3643
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3644
|
-
...deserialized,
|
|
3645
|
-
});
|
|
3646
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3647
|
-
};
|
|
3648
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3649
|
-
const body = parsedOutput.body;
|
|
3650
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3651
|
-
const exception = new models_0_1.ThrottlingException({
|
|
3652
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3653
|
-
...deserialized,
|
|
3654
|
-
});
|
|
3655
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3656
|
-
};
|
|
3657
|
-
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
3658
|
-
const body = parsedOutput.body;
|
|
3659
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3660
|
-
const exception = new models_0_1.TooManyTagsException({
|
|
3661
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3662
|
-
...deserialized,
|
|
3663
|
-
});
|
|
3664
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3665
|
-
};
|
|
3666
|
-
const de_UnrecognizedClientExceptionRes = async (parsedOutput, context) => {
|
|
3667
|
-
const body = parsedOutput.body;
|
|
3668
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3669
|
-
const exception = new models_0_1.UnrecognizedClientException({
|
|
3670
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3671
|
-
...deserialized,
|
|
3672
|
-
});
|
|
3673
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3674
|
-
};
|
|
3675
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
3676
|
-
const body = parsedOutput.body;
|
|
3677
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3678
|
-
const exception = new models_0_1.ValidationException({
|
|
3679
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3680
|
-
...deserialized,
|
|
3681
|
-
});
|
|
3682
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3683
|
-
};
|
|
3684
|
-
const de_StartLiveTailResponseStream = (output, context) => {
|
|
3685
|
-
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
3686
|
-
if (event["sessionStart"] != null) {
|
|
3687
|
-
return {
|
|
3688
|
-
sessionStart: await de_LiveTailSessionStart_event(event["sessionStart"], context),
|
|
3689
|
-
};
|
|
3690
|
-
}
|
|
3691
|
-
if (event["sessionUpdate"] != null) {
|
|
3692
|
-
return {
|
|
3693
|
-
sessionUpdate: await de_LiveTailSessionUpdate_event(event["sessionUpdate"], context),
|
|
3694
|
-
};
|
|
3695
|
-
}
|
|
3696
|
-
if (event["SessionTimeoutException"] != null) {
|
|
3697
|
-
return {
|
|
3698
|
-
SessionTimeoutException: await de_SessionTimeoutException_event(event["SessionTimeoutException"], context),
|
|
3699
|
-
};
|
|
3700
|
-
}
|
|
3701
|
-
if (event["SessionStreamingException"] != null) {
|
|
3702
|
-
return {
|
|
3703
|
-
SessionStreamingException: await de_SessionStreamingException_event(event["SessionStreamingException"], context),
|
|
3704
|
-
};
|
|
3705
|
-
}
|
|
3706
|
-
return { $unknown: output };
|
|
3707
|
-
});
|
|
3708
|
-
};
|
|
3709
|
-
const de_LiveTailSessionStart_event = async (output, context) => {
|
|
3710
|
-
const contents = {};
|
|
3711
|
-
const data = await parseBody(output.body, context);
|
|
3712
|
-
Object.assign(contents, (0, smithy_client_1._json)(data));
|
|
3713
|
-
return contents;
|
|
3714
|
-
};
|
|
3715
|
-
const de_LiveTailSessionUpdate_event = async (output, context) => {
|
|
3716
|
-
const contents = {};
|
|
3717
|
-
const data = await parseBody(output.body, context);
|
|
3718
|
-
Object.assign(contents, (0, smithy_client_1._json)(data));
|
|
3719
|
-
return contents;
|
|
3720
|
-
};
|
|
3721
|
-
const de_SessionStreamingException_event = async (output, context) => {
|
|
3722
|
-
const parsedOutput = {
|
|
3723
|
-
...output,
|
|
3724
|
-
body: await parseBody(output.body, context),
|
|
3725
|
-
};
|
|
3726
|
-
return de_SessionStreamingExceptionRes(parsedOutput, context);
|
|
3727
|
-
};
|
|
3728
|
-
const de_SessionTimeoutException_event = async (output, context) => {
|
|
3729
|
-
const parsedOutput = {
|
|
3730
|
-
...output,
|
|
3731
|
-
body: await parseBody(output.body, context),
|
|
3732
|
-
};
|
|
3733
|
-
return de_SessionTimeoutExceptionRes(parsedOutput, context);
|
|
3734
|
-
};
|
|
3735
|
-
const de_SessionStreamingExceptionRes = async (parsedOutput, context) => {
|
|
3736
|
-
const body = parsedOutput.body;
|
|
3737
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3738
|
-
const exception = new models_0_1.SessionStreamingException({
|
|
3739
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3740
|
-
...deserialized,
|
|
3741
|
-
});
|
|
3742
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3743
|
-
};
|
|
3744
|
-
const de_SessionTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
3745
|
-
const body = parsedOutput.body;
|
|
3746
|
-
const deserialized = (0, smithy_client_1._json)(body);
|
|
3747
|
-
const exception = new models_0_1.SessionTimeoutException({
|
|
3748
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
3749
|
-
...deserialized,
|
|
3750
|
-
});
|
|
3751
|
-
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
3752
|
-
};
|
|
3753
|
-
const se_MetricTransformation = (input, context) => {
|
|
3754
|
-
return (0, smithy_client_1.take)(input, {
|
|
3755
|
-
defaultValue: smithy_client_1.serializeFloat,
|
|
3756
|
-
dimensions: smithy_client_1._json,
|
|
3757
|
-
metricName: [],
|
|
3758
|
-
metricNamespace: [],
|
|
3759
|
-
metricValue: [],
|
|
3760
|
-
unit: [],
|
|
3761
|
-
});
|
|
3762
|
-
};
|
|
3763
|
-
const se_MetricTransformations = (input, context) => {
|
|
3764
|
-
return input
|
|
3765
|
-
.filter((e) => e != null)
|
|
3766
|
-
.map((entry) => {
|
|
3767
|
-
return se_MetricTransformation(entry, context);
|
|
3768
|
-
});
|
|
3769
|
-
};
|
|
3770
|
-
const se_PutMetricFilterRequest = (input, context) => {
|
|
3771
|
-
return (0, smithy_client_1.take)(input, {
|
|
3772
|
-
filterName: [],
|
|
3773
|
-
filterPattern: [],
|
|
3774
|
-
logGroupName: [],
|
|
3775
|
-
metricTransformations: (_) => se_MetricTransformations(_, context),
|
|
3776
|
-
});
|
|
3777
|
-
};
|
|
3778
|
-
const se_PutQueryDefinitionRequest = (input, context) => {
|
|
3779
|
-
return (0, smithy_client_1.take)(input, {
|
|
3780
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
3781
|
-
logGroupNames: smithy_client_1._json,
|
|
3782
|
-
name: [],
|
|
3783
|
-
queryDefinitionId: [],
|
|
3784
|
-
queryString: [],
|
|
3785
|
-
});
|
|
3786
|
-
};
|
|
3787
|
-
const de_DescribeMetricFiltersResponse = (output, context) => {
|
|
3788
|
-
return (0, smithy_client_1.take)(output, {
|
|
3789
|
-
metricFilters: (_) => de_MetricFilters(_, context),
|
|
3790
|
-
nextToken: smithy_client_1.expectString,
|
|
3791
|
-
});
|
|
3792
|
-
};
|
|
3793
|
-
const de_GetQueryResultsResponse = (output, context) => {
|
|
3794
|
-
return (0, smithy_client_1.take)(output, {
|
|
3795
|
-
encryptionKey: smithy_client_1.expectString,
|
|
3796
|
-
results: smithy_client_1._json,
|
|
3797
|
-
statistics: (_) => de_QueryStatistics(_, context),
|
|
3798
|
-
status: smithy_client_1.expectString,
|
|
3799
|
-
});
|
|
3800
|
-
};
|
|
3801
|
-
const de_MetricFilter = (output, context) => {
|
|
3802
|
-
return (0, smithy_client_1.take)(output, {
|
|
3803
|
-
creationTime: smithy_client_1.expectLong,
|
|
3804
|
-
filterName: smithy_client_1.expectString,
|
|
3805
|
-
filterPattern: smithy_client_1.expectString,
|
|
3806
|
-
logGroupName: smithy_client_1.expectString,
|
|
3807
|
-
metricTransformations: (_) => de_MetricTransformations(_, context),
|
|
3808
|
-
});
|
|
3809
|
-
};
|
|
3810
|
-
const de_MetricFilters = (output, context) => {
|
|
3811
|
-
const retVal = (output || [])
|
|
3812
|
-
.filter((e) => e != null)
|
|
3813
|
-
.map((entry) => {
|
|
3814
|
-
return de_MetricFilter(entry, context);
|
|
3815
|
-
});
|
|
3816
|
-
return retVal;
|
|
3817
|
-
};
|
|
3818
|
-
const de_MetricTransformation = (output, context) => {
|
|
3819
|
-
return (0, smithy_client_1.take)(output, {
|
|
3820
|
-
defaultValue: smithy_client_1.limitedParseDouble,
|
|
3821
|
-
dimensions: smithy_client_1._json,
|
|
3822
|
-
metricName: smithy_client_1.expectString,
|
|
3823
|
-
metricNamespace: smithy_client_1.expectString,
|
|
3824
|
-
metricValue: smithy_client_1.expectString,
|
|
3825
|
-
unit: smithy_client_1.expectString,
|
|
3826
|
-
});
|
|
3827
|
-
};
|
|
3828
|
-
const de_MetricTransformations = (output, context) => {
|
|
3829
|
-
const retVal = (output || [])
|
|
3830
|
-
.filter((e) => e != null)
|
|
3831
|
-
.map((entry) => {
|
|
3832
|
-
return de_MetricTransformation(entry, context);
|
|
3833
|
-
});
|
|
3834
|
-
return retVal;
|
|
3835
|
-
};
|
|
3836
|
-
const de_QueryStatistics = (output, context) => {
|
|
3837
|
-
return (0, smithy_client_1.take)(output, {
|
|
3838
|
-
bytesScanned: smithy_client_1.limitedParseDouble,
|
|
3839
|
-
recordsMatched: smithy_client_1.limitedParseDouble,
|
|
3840
|
-
recordsScanned: smithy_client_1.limitedParseDouble,
|
|
3841
|
-
});
|
|
3842
|
-
};
|
|
3843
|
-
const deserializeMetadata = (output) => ({
|
|
3844
|
-
httpStatusCode: output.statusCode,
|
|
3845
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
3846
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3847
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
3848
|
-
});
|
|
3849
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
3850
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudWatchLogsServiceException_1.CloudWatchLogsServiceException);
|
|
3851
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3852
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3853
|
-
const contents = {
|
|
3854
|
-
protocol,
|
|
3855
|
-
hostname,
|
|
3856
|
-
port,
|
|
3857
|
-
method: "POST",
|
|
3858
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
3859
|
-
headers,
|
|
3860
|
-
};
|
|
3861
|
-
if (resolvedHostname !== undefined) {
|
|
3862
|
-
contents.hostname = resolvedHostname;
|
|
3863
|
-
}
|
|
3864
|
-
if (body !== undefined) {
|
|
3865
|
-
contents.body = body;
|
|
3866
|
-
}
|
|
3867
|
-
return new protocol_http_1.HttpRequest(contents);
|
|
3868
|
-
};
|
|
3869
|
-
function sharedHeaders(operation) {
|
|
3870
|
-
return {
|
|
3871
|
-
"content-type": "application/x-amz-json-1.1",
|
|
3872
|
-
"x-amz-target": `Logs_20140328.${operation}`,
|
|
3873
|
-
};
|
|
3874
|
-
}
|
|
3875
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3876
|
-
if (encoded.length) {
|
|
3877
|
-
return JSON.parse(encoded);
|
|
3878
|
-
}
|
|
3879
|
-
return {};
|
|
3880
|
-
});
|
|
3881
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3882
|
-
const value = await parseBody(errorBody, context);
|
|
3883
|
-
value.message = value.message ?? value.Message;
|
|
3884
|
-
return value;
|
|
3885
|
-
};
|
|
3886
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3887
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3888
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3889
|
-
let cleanValue = rawValue;
|
|
3890
|
-
if (typeof cleanValue === "number") {
|
|
3891
|
-
cleanValue = cleanValue.toString();
|
|
3892
|
-
}
|
|
3893
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3894
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3895
|
-
}
|
|
3896
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3897
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3898
|
-
}
|
|
3899
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3900
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3901
|
-
}
|
|
3902
|
-
return cleanValue;
|
|
3903
|
-
};
|
|
3904
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3905
|
-
if (headerKey !== undefined) {
|
|
3906
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3907
|
-
}
|
|
3908
|
-
if (data.code !== undefined) {
|
|
3909
|
-
return sanitizeErrorCode(data.code);
|
|
3910
|
-
}
|
|
3911
|
-
if (data["__type"] !== undefined) {
|
|
3912
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3913
|
-
}
|
|
3914
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|