@aws-sdk/client-cloudwatch-logs 3.312.0 → 3.316.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.
@@ -9,252 +9,252 @@ const models_0_1 = require("../models/models_0");
9
9
  const se_AssociateKmsKeyCommand = async (input, context) => {
10
10
  const headers = sharedHeaders("AssociateKmsKey");
11
11
  let body;
12
- body = JSON.stringify(se_AssociateKmsKeyRequest(input, context));
12
+ body = JSON.stringify((0, smithy_client_1._json)(input));
13
13
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
14
14
  };
15
15
  exports.se_AssociateKmsKeyCommand = se_AssociateKmsKeyCommand;
16
16
  const se_CancelExportTaskCommand = async (input, context) => {
17
17
  const headers = sharedHeaders("CancelExportTask");
18
18
  let body;
19
- body = JSON.stringify(se_CancelExportTaskRequest(input, context));
19
+ body = JSON.stringify((0, smithy_client_1._json)(input));
20
20
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
21
21
  };
22
22
  exports.se_CancelExportTaskCommand = se_CancelExportTaskCommand;
23
23
  const se_CreateExportTaskCommand = async (input, context) => {
24
24
  const headers = sharedHeaders("CreateExportTask");
25
25
  let body;
26
- body = JSON.stringify(se_CreateExportTaskRequest(input, context));
26
+ body = JSON.stringify((0, smithy_client_1._json)(input));
27
27
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
28
28
  };
29
29
  exports.se_CreateExportTaskCommand = se_CreateExportTaskCommand;
30
30
  const se_CreateLogGroupCommand = async (input, context) => {
31
31
  const headers = sharedHeaders("CreateLogGroup");
32
32
  let body;
33
- body = JSON.stringify(se_CreateLogGroupRequest(input, context));
33
+ body = JSON.stringify((0, smithy_client_1._json)(input));
34
34
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
35
35
  };
36
36
  exports.se_CreateLogGroupCommand = se_CreateLogGroupCommand;
37
37
  const se_CreateLogStreamCommand = async (input, context) => {
38
38
  const headers = sharedHeaders("CreateLogStream");
39
39
  let body;
40
- body = JSON.stringify(se_CreateLogStreamRequest(input, context));
40
+ body = JSON.stringify((0, smithy_client_1._json)(input));
41
41
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
42
42
  };
43
43
  exports.se_CreateLogStreamCommand = se_CreateLogStreamCommand;
44
44
  const se_DeleteDataProtectionPolicyCommand = async (input, context) => {
45
45
  const headers = sharedHeaders("DeleteDataProtectionPolicy");
46
46
  let body;
47
- body = JSON.stringify(se_DeleteDataProtectionPolicyRequest(input, context));
47
+ body = JSON.stringify((0, smithy_client_1._json)(input));
48
48
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
49
49
  };
50
50
  exports.se_DeleteDataProtectionPolicyCommand = se_DeleteDataProtectionPolicyCommand;
51
51
  const se_DeleteDestinationCommand = async (input, context) => {
52
52
  const headers = sharedHeaders("DeleteDestination");
53
53
  let body;
54
- body = JSON.stringify(se_DeleteDestinationRequest(input, context));
54
+ body = JSON.stringify((0, smithy_client_1._json)(input));
55
55
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
56
56
  };
57
57
  exports.se_DeleteDestinationCommand = se_DeleteDestinationCommand;
58
58
  const se_DeleteLogGroupCommand = async (input, context) => {
59
59
  const headers = sharedHeaders("DeleteLogGroup");
60
60
  let body;
61
- body = JSON.stringify(se_DeleteLogGroupRequest(input, context));
61
+ body = JSON.stringify((0, smithy_client_1._json)(input));
62
62
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
63
63
  };
64
64
  exports.se_DeleteLogGroupCommand = se_DeleteLogGroupCommand;
65
65
  const se_DeleteLogStreamCommand = async (input, context) => {
66
66
  const headers = sharedHeaders("DeleteLogStream");
67
67
  let body;
68
- body = JSON.stringify(se_DeleteLogStreamRequest(input, context));
68
+ body = JSON.stringify((0, smithy_client_1._json)(input));
69
69
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
70
70
  };
71
71
  exports.se_DeleteLogStreamCommand = se_DeleteLogStreamCommand;
72
72
  const se_DeleteMetricFilterCommand = async (input, context) => {
73
73
  const headers = sharedHeaders("DeleteMetricFilter");
74
74
  let body;
75
- body = JSON.stringify(se_DeleteMetricFilterRequest(input, context));
75
+ body = JSON.stringify((0, smithy_client_1._json)(input));
76
76
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
77
77
  };
78
78
  exports.se_DeleteMetricFilterCommand = se_DeleteMetricFilterCommand;
79
79
  const se_DeleteQueryDefinitionCommand = async (input, context) => {
80
80
  const headers = sharedHeaders("DeleteQueryDefinition");
81
81
  let body;
82
- body = JSON.stringify(se_DeleteQueryDefinitionRequest(input, context));
82
+ body = JSON.stringify((0, smithy_client_1._json)(input));
83
83
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
84
84
  };
85
85
  exports.se_DeleteQueryDefinitionCommand = se_DeleteQueryDefinitionCommand;
86
86
  const se_DeleteResourcePolicyCommand = async (input, context) => {
87
87
  const headers = sharedHeaders("DeleteResourcePolicy");
88
88
  let body;
89
- body = JSON.stringify(se_DeleteResourcePolicyRequest(input, context));
89
+ body = JSON.stringify((0, smithy_client_1._json)(input));
90
90
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
91
91
  };
92
92
  exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
93
93
  const se_DeleteRetentionPolicyCommand = async (input, context) => {
94
94
  const headers = sharedHeaders("DeleteRetentionPolicy");
95
95
  let body;
96
- body = JSON.stringify(se_DeleteRetentionPolicyRequest(input, context));
96
+ body = JSON.stringify((0, smithy_client_1._json)(input));
97
97
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
98
98
  };
99
99
  exports.se_DeleteRetentionPolicyCommand = se_DeleteRetentionPolicyCommand;
100
100
  const se_DeleteSubscriptionFilterCommand = async (input, context) => {
101
101
  const headers = sharedHeaders("DeleteSubscriptionFilter");
102
102
  let body;
103
- body = JSON.stringify(se_DeleteSubscriptionFilterRequest(input, context));
103
+ body = JSON.stringify((0, smithy_client_1._json)(input));
104
104
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
105
105
  };
106
106
  exports.se_DeleteSubscriptionFilterCommand = se_DeleteSubscriptionFilterCommand;
107
107
  const se_DescribeDestinationsCommand = async (input, context) => {
108
108
  const headers = sharedHeaders("DescribeDestinations");
109
109
  let body;
110
- body = JSON.stringify(se_DescribeDestinationsRequest(input, context));
110
+ body = JSON.stringify((0, smithy_client_1._json)(input));
111
111
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
112
112
  };
113
113
  exports.se_DescribeDestinationsCommand = se_DescribeDestinationsCommand;
114
114
  const se_DescribeExportTasksCommand = async (input, context) => {
115
115
  const headers = sharedHeaders("DescribeExportTasks");
116
116
  let body;
117
- body = JSON.stringify(se_DescribeExportTasksRequest(input, context));
117
+ body = JSON.stringify((0, smithy_client_1._json)(input));
118
118
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
119
119
  };
120
120
  exports.se_DescribeExportTasksCommand = se_DescribeExportTasksCommand;
121
121
  const se_DescribeLogGroupsCommand = async (input, context) => {
122
122
  const headers = sharedHeaders("DescribeLogGroups");
123
123
  let body;
124
- body = JSON.stringify(se_DescribeLogGroupsRequest(input, context));
124
+ body = JSON.stringify((0, smithy_client_1._json)(input));
125
125
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
126
126
  };
127
127
  exports.se_DescribeLogGroupsCommand = se_DescribeLogGroupsCommand;
128
128
  const se_DescribeLogStreamsCommand = async (input, context) => {
129
129
  const headers = sharedHeaders("DescribeLogStreams");
130
130
  let body;
131
- body = JSON.stringify(se_DescribeLogStreamsRequest(input, context));
131
+ body = JSON.stringify((0, smithy_client_1._json)(input));
132
132
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
133
133
  };
134
134
  exports.se_DescribeLogStreamsCommand = se_DescribeLogStreamsCommand;
135
135
  const se_DescribeMetricFiltersCommand = async (input, context) => {
136
136
  const headers = sharedHeaders("DescribeMetricFilters");
137
137
  let body;
138
- body = JSON.stringify(se_DescribeMetricFiltersRequest(input, context));
138
+ body = JSON.stringify((0, smithy_client_1._json)(input));
139
139
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
140
140
  };
141
141
  exports.se_DescribeMetricFiltersCommand = se_DescribeMetricFiltersCommand;
142
142
  const se_DescribeQueriesCommand = async (input, context) => {
143
143
  const headers = sharedHeaders("DescribeQueries");
144
144
  let body;
145
- body = JSON.stringify(se_DescribeQueriesRequest(input, context));
145
+ body = JSON.stringify((0, smithy_client_1._json)(input));
146
146
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
147
147
  };
148
148
  exports.se_DescribeQueriesCommand = se_DescribeQueriesCommand;
149
149
  const se_DescribeQueryDefinitionsCommand = async (input, context) => {
150
150
  const headers = sharedHeaders("DescribeQueryDefinitions");
151
151
  let body;
152
- body = JSON.stringify(se_DescribeQueryDefinitionsRequest(input, context));
152
+ body = JSON.stringify((0, smithy_client_1._json)(input));
153
153
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
154
154
  };
155
155
  exports.se_DescribeQueryDefinitionsCommand = se_DescribeQueryDefinitionsCommand;
156
156
  const se_DescribeResourcePoliciesCommand = async (input, context) => {
157
157
  const headers = sharedHeaders("DescribeResourcePolicies");
158
158
  let body;
159
- body = JSON.stringify(se_DescribeResourcePoliciesRequest(input, context));
159
+ body = JSON.stringify((0, smithy_client_1._json)(input));
160
160
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
161
161
  };
162
162
  exports.se_DescribeResourcePoliciesCommand = se_DescribeResourcePoliciesCommand;
163
163
  const se_DescribeSubscriptionFiltersCommand = async (input, context) => {
164
164
  const headers = sharedHeaders("DescribeSubscriptionFilters");
165
165
  let body;
166
- body = JSON.stringify(se_DescribeSubscriptionFiltersRequest(input, context));
166
+ body = JSON.stringify((0, smithy_client_1._json)(input));
167
167
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
168
  };
169
169
  exports.se_DescribeSubscriptionFiltersCommand = se_DescribeSubscriptionFiltersCommand;
170
170
  const se_DisassociateKmsKeyCommand = async (input, context) => {
171
171
  const headers = sharedHeaders("DisassociateKmsKey");
172
172
  let body;
173
- body = JSON.stringify(se_DisassociateKmsKeyRequest(input, context));
173
+ body = JSON.stringify((0, smithy_client_1._json)(input));
174
174
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
175
175
  };
176
176
  exports.se_DisassociateKmsKeyCommand = se_DisassociateKmsKeyCommand;
177
177
  const se_FilterLogEventsCommand = async (input, context) => {
178
178
  const headers = sharedHeaders("FilterLogEvents");
179
179
  let body;
180
- body = JSON.stringify(se_FilterLogEventsRequest(input, context));
180
+ body = JSON.stringify((0, smithy_client_1._json)(input));
181
181
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
182
182
  };
183
183
  exports.se_FilterLogEventsCommand = se_FilterLogEventsCommand;
184
184
  const se_GetDataProtectionPolicyCommand = async (input, context) => {
185
185
  const headers = sharedHeaders("GetDataProtectionPolicy");
186
186
  let body;
187
- body = JSON.stringify(se_GetDataProtectionPolicyRequest(input, context));
187
+ body = JSON.stringify((0, smithy_client_1._json)(input));
188
188
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
189
189
  };
190
190
  exports.se_GetDataProtectionPolicyCommand = se_GetDataProtectionPolicyCommand;
191
191
  const se_GetLogEventsCommand = async (input, context) => {
192
192
  const headers = sharedHeaders("GetLogEvents");
193
193
  let body;
194
- body = JSON.stringify(se_GetLogEventsRequest(input, context));
194
+ body = JSON.stringify((0, smithy_client_1._json)(input));
195
195
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
196
196
  };
197
197
  exports.se_GetLogEventsCommand = se_GetLogEventsCommand;
198
198
  const se_GetLogGroupFieldsCommand = async (input, context) => {
199
199
  const headers = sharedHeaders("GetLogGroupFields");
200
200
  let body;
201
- body = JSON.stringify(se_GetLogGroupFieldsRequest(input, context));
201
+ body = JSON.stringify((0, smithy_client_1._json)(input));
202
202
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
203
203
  };
204
204
  exports.se_GetLogGroupFieldsCommand = se_GetLogGroupFieldsCommand;
205
205
  const se_GetLogRecordCommand = async (input, context) => {
206
206
  const headers = sharedHeaders("GetLogRecord");
207
207
  let body;
208
- body = JSON.stringify(se_GetLogRecordRequest(input, context));
208
+ body = JSON.stringify((0, smithy_client_1._json)(input));
209
209
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
210
210
  };
211
211
  exports.se_GetLogRecordCommand = se_GetLogRecordCommand;
212
212
  const se_GetQueryResultsCommand = async (input, context) => {
213
213
  const headers = sharedHeaders("GetQueryResults");
214
214
  let body;
215
- body = JSON.stringify(se_GetQueryResultsRequest(input, context));
215
+ body = JSON.stringify((0, smithy_client_1._json)(input));
216
216
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
217
217
  };
218
218
  exports.se_GetQueryResultsCommand = se_GetQueryResultsCommand;
219
219
  const se_ListTagsForResourceCommand = async (input, context) => {
220
220
  const headers = sharedHeaders("ListTagsForResource");
221
221
  let body;
222
- body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
222
+ body = JSON.stringify((0, smithy_client_1._json)(input));
223
223
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
224
224
  };
225
225
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
226
226
  const se_ListTagsLogGroupCommand = async (input, context) => {
227
227
  const headers = sharedHeaders("ListTagsLogGroup");
228
228
  let body;
229
- body = JSON.stringify(se_ListTagsLogGroupRequest(input, context));
229
+ body = JSON.stringify((0, smithy_client_1._json)(input));
230
230
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
231
231
  };
232
232
  exports.se_ListTagsLogGroupCommand = se_ListTagsLogGroupCommand;
233
233
  const se_PutDataProtectionPolicyCommand = async (input, context) => {
234
234
  const headers = sharedHeaders("PutDataProtectionPolicy");
235
235
  let body;
236
- body = JSON.stringify(se_PutDataProtectionPolicyRequest(input, context));
236
+ body = JSON.stringify((0, smithy_client_1._json)(input));
237
237
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
238
238
  };
239
239
  exports.se_PutDataProtectionPolicyCommand = se_PutDataProtectionPolicyCommand;
240
240
  const se_PutDestinationCommand = async (input, context) => {
241
241
  const headers = sharedHeaders("PutDestination");
242
242
  let body;
243
- body = JSON.stringify(se_PutDestinationRequest(input, context));
243
+ body = JSON.stringify((0, smithy_client_1._json)(input));
244
244
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
245
245
  };
246
246
  exports.se_PutDestinationCommand = se_PutDestinationCommand;
247
247
  const se_PutDestinationPolicyCommand = async (input, context) => {
248
248
  const headers = sharedHeaders("PutDestinationPolicy");
249
249
  let body;
250
- body = JSON.stringify(se_PutDestinationPolicyRequest(input, context));
250
+ body = JSON.stringify((0, smithy_client_1._json)(input));
251
251
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
252
252
  };
253
253
  exports.se_PutDestinationPolicyCommand = se_PutDestinationPolicyCommand;
254
254
  const se_PutLogEventsCommand = async (input, context) => {
255
255
  const headers = sharedHeaders("PutLogEvents");
256
256
  let body;
257
- body = JSON.stringify(se_PutLogEventsRequest(input, context));
257
+ body = JSON.stringify((0, smithy_client_1._json)(input));
258
258
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
259
259
  };
260
260
  exports.se_PutLogEventsCommand = se_PutLogEventsCommand;
@@ -268,77 +268,77 @@ exports.se_PutMetricFilterCommand = se_PutMetricFilterCommand;
268
268
  const se_PutQueryDefinitionCommand = async (input, context) => {
269
269
  const headers = sharedHeaders("PutQueryDefinition");
270
270
  let body;
271
- body = JSON.stringify(se_PutQueryDefinitionRequest(input, context));
271
+ body = JSON.stringify((0, smithy_client_1._json)(input));
272
272
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
273
273
  };
274
274
  exports.se_PutQueryDefinitionCommand = se_PutQueryDefinitionCommand;
275
275
  const se_PutResourcePolicyCommand = async (input, context) => {
276
276
  const headers = sharedHeaders("PutResourcePolicy");
277
277
  let body;
278
- body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
278
+ body = JSON.stringify((0, smithy_client_1._json)(input));
279
279
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
280
280
  };
281
281
  exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
282
282
  const se_PutRetentionPolicyCommand = async (input, context) => {
283
283
  const headers = sharedHeaders("PutRetentionPolicy");
284
284
  let body;
285
- body = JSON.stringify(se_PutRetentionPolicyRequest(input, context));
285
+ body = JSON.stringify((0, smithy_client_1._json)(input));
286
286
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
287
287
  };
288
288
  exports.se_PutRetentionPolicyCommand = se_PutRetentionPolicyCommand;
289
289
  const se_PutSubscriptionFilterCommand = async (input, context) => {
290
290
  const headers = sharedHeaders("PutSubscriptionFilter");
291
291
  let body;
292
- body = JSON.stringify(se_PutSubscriptionFilterRequest(input, context));
292
+ body = JSON.stringify((0, smithy_client_1._json)(input));
293
293
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
294
294
  };
295
295
  exports.se_PutSubscriptionFilterCommand = se_PutSubscriptionFilterCommand;
296
296
  const se_StartQueryCommand = async (input, context) => {
297
297
  const headers = sharedHeaders("StartQuery");
298
298
  let body;
299
- body = JSON.stringify(se_StartQueryRequest(input, context));
299
+ body = JSON.stringify((0, smithy_client_1._json)(input));
300
300
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
301
301
  };
302
302
  exports.se_StartQueryCommand = se_StartQueryCommand;
303
303
  const se_StopQueryCommand = async (input, context) => {
304
304
  const headers = sharedHeaders("StopQuery");
305
305
  let body;
306
- body = JSON.stringify(se_StopQueryRequest(input, context));
306
+ body = JSON.stringify((0, smithy_client_1._json)(input));
307
307
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
308
308
  };
309
309
  exports.se_StopQueryCommand = se_StopQueryCommand;
310
310
  const se_TagLogGroupCommand = async (input, context) => {
311
311
  const headers = sharedHeaders("TagLogGroup");
312
312
  let body;
313
- body = JSON.stringify(se_TagLogGroupRequest(input, context));
313
+ body = JSON.stringify((0, smithy_client_1._json)(input));
314
314
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
315
315
  };
316
316
  exports.se_TagLogGroupCommand = se_TagLogGroupCommand;
317
317
  const se_TagResourceCommand = async (input, context) => {
318
318
  const headers = sharedHeaders("TagResource");
319
319
  let body;
320
- body = JSON.stringify(se_TagResourceRequest(input, context));
320
+ body = JSON.stringify((0, smithy_client_1._json)(input));
321
321
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
322
322
  };
323
323
  exports.se_TagResourceCommand = se_TagResourceCommand;
324
324
  const se_TestMetricFilterCommand = async (input, context) => {
325
325
  const headers = sharedHeaders("TestMetricFilter");
326
326
  let body;
327
- body = JSON.stringify(se_TestMetricFilterRequest(input, context));
327
+ body = JSON.stringify((0, smithy_client_1._json)(input));
328
328
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
329
329
  };
330
330
  exports.se_TestMetricFilterCommand = se_TestMetricFilterCommand;
331
331
  const se_UntagLogGroupCommand = async (input, context) => {
332
332
  const headers = sharedHeaders("UntagLogGroup");
333
333
  let body;
334
- body = JSON.stringify(se_UntagLogGroupRequest(input, context));
334
+ body = JSON.stringify((0, smithy_client_1._json)(input));
335
335
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
336
336
  };
337
337
  exports.se_UntagLogGroupCommand = se_UntagLogGroupCommand;
338
338
  const se_UntagResourceCommand = async (input, context) => {
339
339
  const headers = sharedHeaders("UntagResource");
340
340
  let body;
341
- body = JSON.stringify(se_UntagResourceRequest(input, context));
341
+ body = JSON.stringify((0, smithy_client_1._json)(input));
342
342
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
343
343
  };
344
344
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
@@ -350,7 +350,7 @@ const de_AssociateKmsKeyCommand = async (output, context) => {
350
350
  const response = {
351
351
  $metadata: deserializeMetadata(output),
352
352
  };
353
- return Promise.resolve(response);
353
+ return response;
354
354
  };
355
355
  exports.de_AssociateKmsKeyCommand = de_AssociateKmsKeyCommand;
356
356
  const de_AssociateKmsKeyCommandError = async (output, context) => {
@@ -374,10 +374,9 @@ const de_AssociateKmsKeyCommandError = async (output, context) => {
374
374
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
375
375
  default:
376
376
  const parsedBody = parsedOutput.body;
377
- (0, smithy_client_1.throwDefaultError)({
377
+ return throwDefaultError({
378
378
  output,
379
379
  parsedBody,
380
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
381
380
  errorCode,
382
381
  });
383
382
  }
@@ -390,7 +389,7 @@ const de_CancelExportTaskCommand = async (output, context) => {
390
389
  const response = {
391
390
  $metadata: deserializeMetadata(output),
392
391
  };
393
- return Promise.resolve(response);
392
+ return response;
394
393
  };
395
394
  exports.de_CancelExportTaskCommand = de_CancelExportTaskCommand;
396
395
  const de_CancelExportTaskCommandError = async (output, context) => {
@@ -414,10 +413,9 @@ const de_CancelExportTaskCommandError = async (output, context) => {
414
413
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
415
414
  default:
416
415
  const parsedBody = parsedOutput.body;
417
- (0, smithy_client_1.throwDefaultError)({
416
+ return throwDefaultError({
418
417
  output,
419
418
  parsedBody,
420
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
421
419
  errorCode,
422
420
  });
423
421
  }
@@ -428,12 +426,12 @@ const de_CreateExportTaskCommand = async (output, context) => {
428
426
  }
429
427
  const data = await parseBody(output.body, context);
430
428
  let contents = {};
431
- contents = de_CreateExportTaskResponse(data, context);
429
+ contents = (0, smithy_client_1._json)(data);
432
430
  const response = {
433
431
  $metadata: deserializeMetadata(output),
434
432
  ...contents,
435
433
  };
436
- return Promise.resolve(response);
434
+ return response;
437
435
  };
438
436
  exports.de_CreateExportTaskCommand = de_CreateExportTaskCommand;
439
437
  const de_CreateExportTaskCommandError = async (output, context) => {
@@ -463,10 +461,9 @@ const de_CreateExportTaskCommandError = async (output, context) => {
463
461
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
464
462
  default:
465
463
  const parsedBody = parsedOutput.body;
466
- (0, smithy_client_1.throwDefaultError)({
464
+ return throwDefaultError({
467
465
  output,
468
466
  parsedBody,
469
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
470
467
  errorCode,
471
468
  });
472
469
  }
@@ -479,7 +476,7 @@ const de_CreateLogGroupCommand = async (output, context) => {
479
476
  const response = {
480
477
  $metadata: deserializeMetadata(output),
481
478
  };
482
- return Promise.resolve(response);
479
+ return response;
483
480
  };
484
481
  exports.de_CreateLogGroupCommand = de_CreateLogGroupCommand;
485
482
  const de_CreateLogGroupCommandError = async (output, context) => {
@@ -506,10 +503,9 @@ const de_CreateLogGroupCommandError = async (output, context) => {
506
503
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
507
504
  default:
508
505
  const parsedBody = parsedOutput.body;
509
- (0, smithy_client_1.throwDefaultError)({
506
+ return throwDefaultError({
510
507
  output,
511
508
  parsedBody,
512
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
513
509
  errorCode,
514
510
  });
515
511
  }
@@ -522,7 +518,7 @@ const de_CreateLogStreamCommand = async (output, context) => {
522
518
  const response = {
523
519
  $metadata: deserializeMetadata(output),
524
520
  };
525
- return Promise.resolve(response);
521
+ return response;
526
522
  };
527
523
  exports.de_CreateLogStreamCommand = de_CreateLogStreamCommand;
528
524
  const de_CreateLogStreamCommandError = async (output, context) => {
@@ -546,10 +542,9 @@ const de_CreateLogStreamCommandError = async (output, context) => {
546
542
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
547
543
  default:
548
544
  const parsedBody = parsedOutput.body;
549
- (0, smithy_client_1.throwDefaultError)({
545
+ return throwDefaultError({
550
546
  output,
551
547
  parsedBody,
552
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
553
548
  errorCode,
554
549
  });
555
550
  }
@@ -562,7 +557,7 @@ const de_DeleteDataProtectionPolicyCommand = async (output, context) => {
562
557
  const response = {
563
558
  $metadata: deserializeMetadata(output),
564
559
  };
565
- return Promise.resolve(response);
560
+ return response;
566
561
  };
567
562
  exports.de_DeleteDataProtectionPolicyCommand = de_DeleteDataProtectionPolicyCommand;
568
563
  const de_DeleteDataProtectionPolicyCommandError = async (output, context) => {
@@ -586,10 +581,9 @@ const de_DeleteDataProtectionPolicyCommandError = async (output, context) => {
586
581
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
587
582
  default:
588
583
  const parsedBody = parsedOutput.body;
589
- (0, smithy_client_1.throwDefaultError)({
584
+ return throwDefaultError({
590
585
  output,
591
586
  parsedBody,
592
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
593
587
  errorCode,
594
588
  });
595
589
  }
@@ -602,7 +596,7 @@ const de_DeleteDestinationCommand = async (output, context) => {
602
596
  const response = {
603
597
  $metadata: deserializeMetadata(output),
604
598
  };
605
- return Promise.resolve(response);
599
+ return response;
606
600
  };
607
601
  exports.de_DeleteDestinationCommand = de_DeleteDestinationCommand;
608
602
  const de_DeleteDestinationCommandError = async (output, context) => {
@@ -626,10 +620,9 @@ const de_DeleteDestinationCommandError = async (output, context) => {
626
620
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
627
621
  default:
628
622
  const parsedBody = parsedOutput.body;
629
- (0, smithy_client_1.throwDefaultError)({
623
+ return throwDefaultError({
630
624
  output,
631
625
  parsedBody,
632
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
633
626
  errorCode,
634
627
  });
635
628
  }
@@ -642,7 +635,7 @@ const de_DeleteLogGroupCommand = async (output, context) => {
642
635
  const response = {
643
636
  $metadata: deserializeMetadata(output),
644
637
  };
645
- return Promise.resolve(response);
638
+ return response;
646
639
  };
647
640
  exports.de_DeleteLogGroupCommand = de_DeleteLogGroupCommand;
648
641
  const de_DeleteLogGroupCommandError = async (output, context) => {
@@ -666,10 +659,9 @@ const de_DeleteLogGroupCommandError = async (output, context) => {
666
659
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
667
660
  default:
668
661
  const parsedBody = parsedOutput.body;
669
- (0, smithy_client_1.throwDefaultError)({
662
+ return throwDefaultError({
670
663
  output,
671
664
  parsedBody,
672
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
673
665
  errorCode,
674
666
  });
675
667
  }
@@ -682,7 +674,7 @@ const de_DeleteLogStreamCommand = async (output, context) => {
682
674
  const response = {
683
675
  $metadata: deserializeMetadata(output),
684
676
  };
685
- return Promise.resolve(response);
677
+ return response;
686
678
  };
687
679
  exports.de_DeleteLogStreamCommand = de_DeleteLogStreamCommand;
688
680
  const de_DeleteLogStreamCommandError = async (output, context) => {
@@ -706,10 +698,9 @@ const de_DeleteLogStreamCommandError = async (output, context) => {
706
698
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
707
699
  default:
708
700
  const parsedBody = parsedOutput.body;
709
- (0, smithy_client_1.throwDefaultError)({
701
+ return throwDefaultError({
710
702
  output,
711
703
  parsedBody,
712
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
713
704
  errorCode,
714
705
  });
715
706
  }
@@ -722,7 +713,7 @@ const de_DeleteMetricFilterCommand = async (output, context) => {
722
713
  const response = {
723
714
  $metadata: deserializeMetadata(output),
724
715
  };
725
- return Promise.resolve(response);
716
+ return response;
726
717
  };
727
718
  exports.de_DeleteMetricFilterCommand = de_DeleteMetricFilterCommand;
728
719
  const de_DeleteMetricFilterCommandError = async (output, context) => {
@@ -746,10 +737,9 @@ const de_DeleteMetricFilterCommandError = async (output, context) => {
746
737
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
747
738
  default:
748
739
  const parsedBody = parsedOutput.body;
749
- (0, smithy_client_1.throwDefaultError)({
740
+ return throwDefaultError({
750
741
  output,
751
742
  parsedBody,
752
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
753
743
  errorCode,
754
744
  });
755
745
  }
@@ -760,12 +750,12 @@ const de_DeleteQueryDefinitionCommand = async (output, context) => {
760
750
  }
761
751
  const data = await parseBody(output.body, context);
762
752
  let contents = {};
763
- contents = de_DeleteQueryDefinitionResponse(data, context);
753
+ contents = (0, smithy_client_1._json)(data);
764
754
  const response = {
765
755
  $metadata: deserializeMetadata(output),
766
756
  ...contents,
767
757
  };
768
- return Promise.resolve(response);
758
+ return response;
769
759
  };
770
760
  exports.de_DeleteQueryDefinitionCommand = de_DeleteQueryDefinitionCommand;
771
761
  const de_DeleteQueryDefinitionCommandError = async (output, context) => {
@@ -786,10 +776,9 @@ const de_DeleteQueryDefinitionCommandError = async (output, context) => {
786
776
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
787
777
  default:
788
778
  const parsedBody = parsedOutput.body;
789
- (0, smithy_client_1.throwDefaultError)({
779
+ return throwDefaultError({
790
780
  output,
791
781
  parsedBody,
792
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
793
782
  errorCode,
794
783
  });
795
784
  }
@@ -802,7 +791,7 @@ const de_DeleteResourcePolicyCommand = async (output, context) => {
802
791
  const response = {
803
792
  $metadata: deserializeMetadata(output),
804
793
  };
805
- return Promise.resolve(response);
794
+ return response;
806
795
  };
807
796
  exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
808
797
  const de_DeleteResourcePolicyCommandError = async (output, context) => {
@@ -823,10 +812,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
823
812
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
824
813
  default:
825
814
  const parsedBody = parsedOutput.body;
826
- (0, smithy_client_1.throwDefaultError)({
815
+ return throwDefaultError({
827
816
  output,
828
817
  parsedBody,
829
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
830
818
  errorCode,
831
819
  });
832
820
  }
@@ -839,7 +827,7 @@ const de_DeleteRetentionPolicyCommand = async (output, context) => {
839
827
  const response = {
840
828
  $metadata: deserializeMetadata(output),
841
829
  };
842
- return Promise.resolve(response);
830
+ return response;
843
831
  };
844
832
  exports.de_DeleteRetentionPolicyCommand = de_DeleteRetentionPolicyCommand;
845
833
  const de_DeleteRetentionPolicyCommandError = async (output, context) => {
@@ -863,10 +851,9 @@ const de_DeleteRetentionPolicyCommandError = async (output, context) => {
863
851
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
864
852
  default:
865
853
  const parsedBody = parsedOutput.body;
866
- (0, smithy_client_1.throwDefaultError)({
854
+ return throwDefaultError({
867
855
  output,
868
856
  parsedBody,
869
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
870
857
  errorCode,
871
858
  });
872
859
  }
@@ -879,7 +866,7 @@ const de_DeleteSubscriptionFilterCommand = async (output, context) => {
879
866
  const response = {
880
867
  $metadata: deserializeMetadata(output),
881
868
  };
882
- return Promise.resolve(response);
869
+ return response;
883
870
  };
884
871
  exports.de_DeleteSubscriptionFilterCommand = de_DeleteSubscriptionFilterCommand;
885
872
  const de_DeleteSubscriptionFilterCommandError = async (output, context) => {
@@ -903,10 +890,9 @@ const de_DeleteSubscriptionFilterCommandError = async (output, context) => {
903
890
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
904
891
  default:
905
892
  const parsedBody = parsedOutput.body;
906
- (0, smithy_client_1.throwDefaultError)({
893
+ return throwDefaultError({
907
894
  output,
908
895
  parsedBody,
909
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
910
896
  errorCode,
911
897
  });
912
898
  }
@@ -917,12 +903,12 @@ const de_DescribeDestinationsCommand = async (output, context) => {
917
903
  }
918
904
  const data = await parseBody(output.body, context);
919
905
  let contents = {};
920
- contents = de_DescribeDestinationsResponse(data, context);
906
+ contents = (0, smithy_client_1._json)(data);
921
907
  const response = {
922
908
  $metadata: deserializeMetadata(output),
923
909
  ...contents,
924
910
  };
925
- return Promise.resolve(response);
911
+ return response;
926
912
  };
927
913
  exports.de_DescribeDestinationsCommand = de_DescribeDestinationsCommand;
928
914
  const de_DescribeDestinationsCommandError = async (output, context) => {
@@ -940,10 +926,9 @@ const de_DescribeDestinationsCommandError = async (output, context) => {
940
926
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
941
927
  default:
942
928
  const parsedBody = parsedOutput.body;
943
- (0, smithy_client_1.throwDefaultError)({
929
+ return throwDefaultError({
944
930
  output,
945
931
  parsedBody,
946
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
947
932
  errorCode,
948
933
  });
949
934
  }
@@ -954,12 +939,12 @@ const de_DescribeExportTasksCommand = async (output, context) => {
954
939
  }
955
940
  const data = await parseBody(output.body, context);
956
941
  let contents = {};
957
- contents = de_DescribeExportTasksResponse(data, context);
942
+ contents = (0, smithy_client_1._json)(data);
958
943
  const response = {
959
944
  $metadata: deserializeMetadata(output),
960
945
  ...contents,
961
946
  };
962
- return Promise.resolve(response);
947
+ return response;
963
948
  };
964
949
  exports.de_DescribeExportTasksCommand = de_DescribeExportTasksCommand;
965
950
  const de_DescribeExportTasksCommandError = async (output, context) => {
@@ -977,10 +962,9 @@ const de_DescribeExportTasksCommandError = async (output, context) => {
977
962
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
978
963
  default:
979
964
  const parsedBody = parsedOutput.body;
980
- (0, smithy_client_1.throwDefaultError)({
965
+ return throwDefaultError({
981
966
  output,
982
967
  parsedBody,
983
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
984
968
  errorCode,
985
969
  });
986
970
  }
@@ -991,12 +975,12 @@ const de_DescribeLogGroupsCommand = async (output, context) => {
991
975
  }
992
976
  const data = await parseBody(output.body, context);
993
977
  let contents = {};
994
- contents = de_DescribeLogGroupsResponse(data, context);
978
+ contents = (0, smithy_client_1._json)(data);
995
979
  const response = {
996
980
  $metadata: deserializeMetadata(output),
997
981
  ...contents,
998
982
  };
999
- return Promise.resolve(response);
983
+ return response;
1000
984
  };
1001
985
  exports.de_DescribeLogGroupsCommand = de_DescribeLogGroupsCommand;
1002
986
  const de_DescribeLogGroupsCommandError = async (output, context) => {
@@ -1014,10 +998,9 @@ const de_DescribeLogGroupsCommandError = async (output, context) => {
1014
998
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1015
999
  default:
1016
1000
  const parsedBody = parsedOutput.body;
1017
- (0, smithy_client_1.throwDefaultError)({
1001
+ return throwDefaultError({
1018
1002
  output,
1019
1003
  parsedBody,
1020
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1021
1004
  errorCode,
1022
1005
  });
1023
1006
  }
@@ -1028,12 +1011,12 @@ const de_DescribeLogStreamsCommand = async (output, context) => {
1028
1011
  }
1029
1012
  const data = await parseBody(output.body, context);
1030
1013
  let contents = {};
1031
- contents = de_DescribeLogStreamsResponse(data, context);
1014
+ contents = (0, smithy_client_1._json)(data);
1032
1015
  const response = {
1033
1016
  $metadata: deserializeMetadata(output),
1034
1017
  ...contents,
1035
1018
  };
1036
- return Promise.resolve(response);
1019
+ return response;
1037
1020
  };
1038
1021
  exports.de_DescribeLogStreamsCommand = de_DescribeLogStreamsCommand;
1039
1022
  const de_DescribeLogStreamsCommandError = async (output, context) => {
@@ -1054,10 +1037,9 @@ const de_DescribeLogStreamsCommandError = async (output, context) => {
1054
1037
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1055
1038
  default:
1056
1039
  const parsedBody = parsedOutput.body;
1057
- (0, smithy_client_1.throwDefaultError)({
1040
+ return throwDefaultError({
1058
1041
  output,
1059
1042
  parsedBody,
1060
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1061
1043
  errorCode,
1062
1044
  });
1063
1045
  }
@@ -1073,7 +1055,7 @@ const de_DescribeMetricFiltersCommand = async (output, context) => {
1073
1055
  $metadata: deserializeMetadata(output),
1074
1056
  ...contents,
1075
1057
  };
1076
- return Promise.resolve(response);
1058
+ return response;
1077
1059
  };
1078
1060
  exports.de_DescribeMetricFiltersCommand = de_DescribeMetricFiltersCommand;
1079
1061
  const de_DescribeMetricFiltersCommandError = async (output, context) => {
@@ -1094,10 +1076,9 @@ const de_DescribeMetricFiltersCommandError = async (output, context) => {
1094
1076
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1095
1077
  default:
1096
1078
  const parsedBody = parsedOutput.body;
1097
- (0, smithy_client_1.throwDefaultError)({
1079
+ return throwDefaultError({
1098
1080
  output,
1099
1081
  parsedBody,
1100
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1101
1082
  errorCode,
1102
1083
  });
1103
1084
  }
@@ -1108,12 +1089,12 @@ const de_DescribeQueriesCommand = async (output, context) => {
1108
1089
  }
1109
1090
  const data = await parseBody(output.body, context);
1110
1091
  let contents = {};
1111
- contents = de_DescribeQueriesResponse(data, context);
1092
+ contents = (0, smithy_client_1._json)(data);
1112
1093
  const response = {
1113
1094
  $metadata: deserializeMetadata(output),
1114
1095
  ...contents,
1115
1096
  };
1116
- return Promise.resolve(response);
1097
+ return response;
1117
1098
  };
1118
1099
  exports.de_DescribeQueriesCommand = de_DescribeQueriesCommand;
1119
1100
  const de_DescribeQueriesCommandError = async (output, context) => {
@@ -1134,10 +1115,9 @@ const de_DescribeQueriesCommandError = async (output, context) => {
1134
1115
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1135
1116
  default:
1136
1117
  const parsedBody = parsedOutput.body;
1137
- (0, smithy_client_1.throwDefaultError)({
1118
+ return throwDefaultError({
1138
1119
  output,
1139
1120
  parsedBody,
1140
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1141
1121
  errorCode,
1142
1122
  });
1143
1123
  }
@@ -1148,12 +1128,12 @@ const de_DescribeQueryDefinitionsCommand = async (output, context) => {
1148
1128
  }
1149
1129
  const data = await parseBody(output.body, context);
1150
1130
  let contents = {};
1151
- contents = de_DescribeQueryDefinitionsResponse(data, context);
1131
+ contents = (0, smithy_client_1._json)(data);
1152
1132
  const response = {
1153
1133
  $metadata: deserializeMetadata(output),
1154
1134
  ...contents,
1155
1135
  };
1156
- return Promise.resolve(response);
1136
+ return response;
1157
1137
  };
1158
1138
  exports.de_DescribeQueryDefinitionsCommand = de_DescribeQueryDefinitionsCommand;
1159
1139
  const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
@@ -1171,10 +1151,9 @@ const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
1171
1151
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1172
1152
  default:
1173
1153
  const parsedBody = parsedOutput.body;
1174
- (0, smithy_client_1.throwDefaultError)({
1154
+ return throwDefaultError({
1175
1155
  output,
1176
1156
  parsedBody,
1177
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1178
1157
  errorCode,
1179
1158
  });
1180
1159
  }
@@ -1185,12 +1164,12 @@ const de_DescribeResourcePoliciesCommand = async (output, context) => {
1185
1164
  }
1186
1165
  const data = await parseBody(output.body, context);
1187
1166
  let contents = {};
1188
- contents = de_DescribeResourcePoliciesResponse(data, context);
1167
+ contents = (0, smithy_client_1._json)(data);
1189
1168
  const response = {
1190
1169
  $metadata: deserializeMetadata(output),
1191
1170
  ...contents,
1192
1171
  };
1193
- return Promise.resolve(response);
1172
+ return response;
1194
1173
  };
1195
1174
  exports.de_DescribeResourcePoliciesCommand = de_DescribeResourcePoliciesCommand;
1196
1175
  const de_DescribeResourcePoliciesCommandError = async (output, context) => {
@@ -1208,10 +1187,9 @@ const de_DescribeResourcePoliciesCommandError = async (output, context) => {
1208
1187
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1209
1188
  default:
1210
1189
  const parsedBody = parsedOutput.body;
1211
- (0, smithy_client_1.throwDefaultError)({
1190
+ return throwDefaultError({
1212
1191
  output,
1213
1192
  parsedBody,
1214
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1215
1193
  errorCode,
1216
1194
  });
1217
1195
  }
@@ -1222,12 +1200,12 @@ const de_DescribeSubscriptionFiltersCommand = async (output, context) => {
1222
1200
  }
1223
1201
  const data = await parseBody(output.body, context);
1224
1202
  let contents = {};
1225
- contents = de_DescribeSubscriptionFiltersResponse(data, context);
1203
+ contents = (0, smithy_client_1._json)(data);
1226
1204
  const response = {
1227
1205
  $metadata: deserializeMetadata(output),
1228
1206
  ...contents,
1229
1207
  };
1230
- return Promise.resolve(response);
1208
+ return response;
1231
1209
  };
1232
1210
  exports.de_DescribeSubscriptionFiltersCommand = de_DescribeSubscriptionFiltersCommand;
1233
1211
  const de_DescribeSubscriptionFiltersCommandError = async (output, context) => {
@@ -1248,10 +1226,9 @@ const de_DescribeSubscriptionFiltersCommandError = async (output, context) => {
1248
1226
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1249
1227
  default:
1250
1228
  const parsedBody = parsedOutput.body;
1251
- (0, smithy_client_1.throwDefaultError)({
1229
+ return throwDefaultError({
1252
1230
  output,
1253
1231
  parsedBody,
1254
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1255
1232
  errorCode,
1256
1233
  });
1257
1234
  }
@@ -1264,7 +1241,7 @@ const de_DisassociateKmsKeyCommand = async (output, context) => {
1264
1241
  const response = {
1265
1242
  $metadata: deserializeMetadata(output),
1266
1243
  };
1267
- return Promise.resolve(response);
1244
+ return response;
1268
1245
  };
1269
1246
  exports.de_DisassociateKmsKeyCommand = de_DisassociateKmsKeyCommand;
1270
1247
  const de_DisassociateKmsKeyCommandError = async (output, context) => {
@@ -1288,10 +1265,9 @@ const de_DisassociateKmsKeyCommandError = async (output, context) => {
1288
1265
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1289
1266
  default:
1290
1267
  const parsedBody = parsedOutput.body;
1291
- (0, smithy_client_1.throwDefaultError)({
1268
+ return throwDefaultError({
1292
1269
  output,
1293
1270
  parsedBody,
1294
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1295
1271
  errorCode,
1296
1272
  });
1297
1273
  }
@@ -1302,12 +1278,12 @@ const de_FilterLogEventsCommand = async (output, context) => {
1302
1278
  }
1303
1279
  const data = await parseBody(output.body, context);
1304
1280
  let contents = {};
1305
- contents = de_FilterLogEventsResponse(data, context);
1281
+ contents = (0, smithy_client_1._json)(data);
1306
1282
  const response = {
1307
1283
  $metadata: deserializeMetadata(output),
1308
1284
  ...contents,
1309
1285
  };
1310
- return Promise.resolve(response);
1286
+ return response;
1311
1287
  };
1312
1288
  exports.de_FilterLogEventsCommand = de_FilterLogEventsCommand;
1313
1289
  const de_FilterLogEventsCommandError = async (output, context) => {
@@ -1328,10 +1304,9 @@ const de_FilterLogEventsCommandError = async (output, context) => {
1328
1304
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1329
1305
  default:
1330
1306
  const parsedBody = parsedOutput.body;
1331
- (0, smithy_client_1.throwDefaultError)({
1307
+ return throwDefaultError({
1332
1308
  output,
1333
1309
  parsedBody,
1334
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1335
1310
  errorCode,
1336
1311
  });
1337
1312
  }
@@ -1342,12 +1317,12 @@ const de_GetDataProtectionPolicyCommand = async (output, context) => {
1342
1317
  }
1343
1318
  const data = await parseBody(output.body, context);
1344
1319
  let contents = {};
1345
- contents = de_GetDataProtectionPolicyResponse(data, context);
1320
+ contents = (0, smithy_client_1._json)(data);
1346
1321
  const response = {
1347
1322
  $metadata: deserializeMetadata(output),
1348
1323
  ...contents,
1349
1324
  };
1350
- return Promise.resolve(response);
1325
+ return response;
1351
1326
  };
1352
1327
  exports.de_GetDataProtectionPolicyCommand = de_GetDataProtectionPolicyCommand;
1353
1328
  const de_GetDataProtectionPolicyCommandError = async (output, context) => {
@@ -1371,10 +1346,9 @@ const de_GetDataProtectionPolicyCommandError = async (output, context) => {
1371
1346
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1372
1347
  default:
1373
1348
  const parsedBody = parsedOutput.body;
1374
- (0, smithy_client_1.throwDefaultError)({
1349
+ return throwDefaultError({
1375
1350
  output,
1376
1351
  parsedBody,
1377
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1378
1352
  errorCode,
1379
1353
  });
1380
1354
  }
@@ -1385,12 +1359,12 @@ const de_GetLogEventsCommand = async (output, context) => {
1385
1359
  }
1386
1360
  const data = await parseBody(output.body, context);
1387
1361
  let contents = {};
1388
- contents = de_GetLogEventsResponse(data, context);
1362
+ contents = (0, smithy_client_1._json)(data);
1389
1363
  const response = {
1390
1364
  $metadata: deserializeMetadata(output),
1391
1365
  ...contents,
1392
1366
  };
1393
- return Promise.resolve(response);
1367
+ return response;
1394
1368
  };
1395
1369
  exports.de_GetLogEventsCommand = de_GetLogEventsCommand;
1396
1370
  const de_GetLogEventsCommandError = async (output, context) => {
@@ -1411,10 +1385,9 @@ const de_GetLogEventsCommandError = async (output, context) => {
1411
1385
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1412
1386
  default:
1413
1387
  const parsedBody = parsedOutput.body;
1414
- (0, smithy_client_1.throwDefaultError)({
1388
+ return throwDefaultError({
1415
1389
  output,
1416
1390
  parsedBody,
1417
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1418
1391
  errorCode,
1419
1392
  });
1420
1393
  }
@@ -1425,12 +1398,12 @@ const de_GetLogGroupFieldsCommand = async (output, context) => {
1425
1398
  }
1426
1399
  const data = await parseBody(output.body, context);
1427
1400
  let contents = {};
1428
- contents = de_GetLogGroupFieldsResponse(data, context);
1401
+ contents = (0, smithy_client_1._json)(data);
1429
1402
  const response = {
1430
1403
  $metadata: deserializeMetadata(output),
1431
1404
  ...contents,
1432
1405
  };
1433
- return Promise.resolve(response);
1406
+ return response;
1434
1407
  };
1435
1408
  exports.de_GetLogGroupFieldsCommand = de_GetLogGroupFieldsCommand;
1436
1409
  const de_GetLogGroupFieldsCommandError = async (output, context) => {
@@ -1454,10 +1427,9 @@ const de_GetLogGroupFieldsCommandError = async (output, context) => {
1454
1427
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1455
1428
  default:
1456
1429
  const parsedBody = parsedOutput.body;
1457
- (0, smithy_client_1.throwDefaultError)({
1430
+ return throwDefaultError({
1458
1431
  output,
1459
1432
  parsedBody,
1460
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1461
1433
  errorCode,
1462
1434
  });
1463
1435
  }
@@ -1468,12 +1440,12 @@ const de_GetLogRecordCommand = async (output, context) => {
1468
1440
  }
1469
1441
  const data = await parseBody(output.body, context);
1470
1442
  let contents = {};
1471
- contents = de_GetLogRecordResponse(data, context);
1443
+ contents = (0, smithy_client_1._json)(data);
1472
1444
  const response = {
1473
1445
  $metadata: deserializeMetadata(output),
1474
1446
  ...contents,
1475
1447
  };
1476
- return Promise.resolve(response);
1448
+ return response;
1477
1449
  };
1478
1450
  exports.de_GetLogRecordCommand = de_GetLogRecordCommand;
1479
1451
  const de_GetLogRecordCommandError = async (output, context) => {
@@ -1497,10 +1469,9 @@ const de_GetLogRecordCommandError = async (output, context) => {
1497
1469
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1498
1470
  default:
1499
1471
  const parsedBody = parsedOutput.body;
1500
- (0, smithy_client_1.throwDefaultError)({
1472
+ return throwDefaultError({
1501
1473
  output,
1502
1474
  parsedBody,
1503
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1504
1475
  errorCode,
1505
1476
  });
1506
1477
  }
@@ -1516,7 +1487,7 @@ const de_GetQueryResultsCommand = async (output, context) => {
1516
1487
  $metadata: deserializeMetadata(output),
1517
1488
  ...contents,
1518
1489
  };
1519
- return Promise.resolve(response);
1490
+ return response;
1520
1491
  };
1521
1492
  exports.de_GetQueryResultsCommand = de_GetQueryResultsCommand;
1522
1493
  const de_GetQueryResultsCommandError = async (output, context) => {
@@ -1537,10 +1508,9 @@ const de_GetQueryResultsCommandError = async (output, context) => {
1537
1508
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1538
1509
  default:
1539
1510
  const parsedBody = parsedOutput.body;
1540
- (0, smithy_client_1.throwDefaultError)({
1511
+ return throwDefaultError({
1541
1512
  output,
1542
1513
  parsedBody,
1543
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1544
1514
  errorCode,
1545
1515
  });
1546
1516
  }
@@ -1551,12 +1521,12 @@ const de_ListTagsForResourceCommand = async (output, context) => {
1551
1521
  }
1552
1522
  const data = await parseBody(output.body, context);
1553
1523
  let contents = {};
1554
- contents = de_ListTagsForResourceResponse(data, context);
1524
+ contents = (0, smithy_client_1._json)(data);
1555
1525
  const response = {
1556
1526
  $metadata: deserializeMetadata(output),
1557
1527
  ...contents,
1558
1528
  };
1559
- return Promise.resolve(response);
1529
+ return response;
1560
1530
  };
1561
1531
  exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
1562
1532
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1577,10 +1547,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1577
1547
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1578
1548
  default:
1579
1549
  const parsedBody = parsedOutput.body;
1580
- (0, smithy_client_1.throwDefaultError)({
1550
+ return throwDefaultError({
1581
1551
  output,
1582
1552
  parsedBody,
1583
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1584
1553
  errorCode,
1585
1554
  });
1586
1555
  }
@@ -1591,12 +1560,12 @@ const de_ListTagsLogGroupCommand = async (output, context) => {
1591
1560
  }
1592
1561
  const data = await parseBody(output.body, context);
1593
1562
  let contents = {};
1594
- contents = de_ListTagsLogGroupResponse(data, context);
1563
+ contents = (0, smithy_client_1._json)(data);
1595
1564
  const response = {
1596
1565
  $metadata: deserializeMetadata(output),
1597
1566
  ...contents,
1598
1567
  };
1599
- return Promise.resolve(response);
1568
+ return response;
1600
1569
  };
1601
1570
  exports.de_ListTagsLogGroupCommand = de_ListTagsLogGroupCommand;
1602
1571
  const de_ListTagsLogGroupCommandError = async (output, context) => {
@@ -1614,10 +1583,9 @@ const de_ListTagsLogGroupCommandError = async (output, context) => {
1614
1583
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1615
1584
  default:
1616
1585
  const parsedBody = parsedOutput.body;
1617
- (0, smithy_client_1.throwDefaultError)({
1586
+ return throwDefaultError({
1618
1587
  output,
1619
1588
  parsedBody,
1620
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1621
1589
  errorCode,
1622
1590
  });
1623
1591
  }
@@ -1628,12 +1596,12 @@ const de_PutDataProtectionPolicyCommand = async (output, context) => {
1628
1596
  }
1629
1597
  const data = await parseBody(output.body, context);
1630
1598
  let contents = {};
1631
- contents = de_PutDataProtectionPolicyResponse(data, context);
1599
+ contents = (0, smithy_client_1._json)(data);
1632
1600
  const response = {
1633
1601
  $metadata: deserializeMetadata(output),
1634
1602
  ...contents,
1635
1603
  };
1636
- return Promise.resolve(response);
1604
+ return response;
1637
1605
  };
1638
1606
  exports.de_PutDataProtectionPolicyCommand = de_PutDataProtectionPolicyCommand;
1639
1607
  const de_PutDataProtectionPolicyCommandError = async (output, context) => {
@@ -1660,10 +1628,9 @@ const de_PutDataProtectionPolicyCommandError = async (output, context) => {
1660
1628
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1661
1629
  default:
1662
1630
  const parsedBody = parsedOutput.body;
1663
- (0, smithy_client_1.throwDefaultError)({
1631
+ return throwDefaultError({
1664
1632
  output,
1665
1633
  parsedBody,
1666
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1667
1634
  errorCode,
1668
1635
  });
1669
1636
  }
@@ -1674,12 +1641,12 @@ const de_PutDestinationCommand = async (output, context) => {
1674
1641
  }
1675
1642
  const data = await parseBody(output.body, context);
1676
1643
  let contents = {};
1677
- contents = de_PutDestinationResponse(data, context);
1644
+ contents = (0, smithy_client_1._json)(data);
1678
1645
  const response = {
1679
1646
  $metadata: deserializeMetadata(output),
1680
1647
  ...contents,
1681
1648
  };
1682
- return Promise.resolve(response);
1649
+ return response;
1683
1650
  };
1684
1651
  exports.de_PutDestinationCommand = de_PutDestinationCommand;
1685
1652
  const de_PutDestinationCommandError = async (output, context) => {
@@ -1700,10 +1667,9 @@ const de_PutDestinationCommandError = async (output, context) => {
1700
1667
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1701
1668
  default:
1702
1669
  const parsedBody = parsedOutput.body;
1703
- (0, smithy_client_1.throwDefaultError)({
1670
+ return throwDefaultError({
1704
1671
  output,
1705
1672
  parsedBody,
1706
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1707
1673
  errorCode,
1708
1674
  });
1709
1675
  }
@@ -1716,7 +1682,7 @@ const de_PutDestinationPolicyCommand = async (output, context) => {
1716
1682
  const response = {
1717
1683
  $metadata: deserializeMetadata(output),
1718
1684
  };
1719
- return Promise.resolve(response);
1685
+ return response;
1720
1686
  };
1721
1687
  exports.de_PutDestinationPolicyCommand = de_PutDestinationPolicyCommand;
1722
1688
  const de_PutDestinationPolicyCommandError = async (output, context) => {
@@ -1737,10 +1703,9 @@ const de_PutDestinationPolicyCommandError = async (output, context) => {
1737
1703
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1738
1704
  default:
1739
1705
  const parsedBody = parsedOutput.body;
1740
- (0, smithy_client_1.throwDefaultError)({
1706
+ return throwDefaultError({
1741
1707
  output,
1742
1708
  parsedBody,
1743
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1744
1709
  errorCode,
1745
1710
  });
1746
1711
  }
@@ -1751,12 +1716,12 @@ const de_PutLogEventsCommand = async (output, context) => {
1751
1716
  }
1752
1717
  const data = await parseBody(output.body, context);
1753
1718
  let contents = {};
1754
- contents = de_PutLogEventsResponse(data, context);
1719
+ contents = (0, smithy_client_1._json)(data);
1755
1720
  const response = {
1756
1721
  $metadata: deserializeMetadata(output),
1757
1722
  ...contents,
1758
1723
  };
1759
- return Promise.resolve(response);
1724
+ return response;
1760
1725
  };
1761
1726
  exports.de_PutLogEventsCommand = de_PutLogEventsCommand;
1762
1727
  const de_PutLogEventsCommandError = async (output, context) => {
@@ -1786,10 +1751,9 @@ const de_PutLogEventsCommandError = async (output, context) => {
1786
1751
  throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
1787
1752
  default:
1788
1753
  const parsedBody = parsedOutput.body;
1789
- (0, smithy_client_1.throwDefaultError)({
1754
+ return throwDefaultError({
1790
1755
  output,
1791
1756
  parsedBody,
1792
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1793
1757
  errorCode,
1794
1758
  });
1795
1759
  }
@@ -1802,7 +1766,7 @@ const de_PutMetricFilterCommand = async (output, context) => {
1802
1766
  const response = {
1803
1767
  $metadata: deserializeMetadata(output),
1804
1768
  };
1805
- return Promise.resolve(response);
1769
+ return response;
1806
1770
  };
1807
1771
  exports.de_PutMetricFilterCommand = de_PutMetricFilterCommand;
1808
1772
  const de_PutMetricFilterCommandError = async (output, context) => {
@@ -1829,10 +1793,9 @@ const de_PutMetricFilterCommandError = async (output, context) => {
1829
1793
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1830
1794
  default:
1831
1795
  const parsedBody = parsedOutput.body;
1832
- (0, smithy_client_1.throwDefaultError)({
1796
+ return throwDefaultError({
1833
1797
  output,
1834
1798
  parsedBody,
1835
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1836
1799
  errorCode,
1837
1800
  });
1838
1801
  }
@@ -1843,12 +1806,12 @@ const de_PutQueryDefinitionCommand = async (output, context) => {
1843
1806
  }
1844
1807
  const data = await parseBody(output.body, context);
1845
1808
  let contents = {};
1846
- contents = de_PutQueryDefinitionResponse(data, context);
1809
+ contents = (0, smithy_client_1._json)(data);
1847
1810
  const response = {
1848
1811
  $metadata: deserializeMetadata(output),
1849
1812
  ...contents,
1850
1813
  };
1851
- return Promise.resolve(response);
1814
+ return response;
1852
1815
  };
1853
1816
  exports.de_PutQueryDefinitionCommand = de_PutQueryDefinitionCommand;
1854
1817
  const de_PutQueryDefinitionCommandError = async (output, context) => {
@@ -1872,10 +1835,9 @@ const de_PutQueryDefinitionCommandError = async (output, context) => {
1872
1835
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1873
1836
  default:
1874
1837
  const parsedBody = parsedOutput.body;
1875
- (0, smithy_client_1.throwDefaultError)({
1838
+ return throwDefaultError({
1876
1839
  output,
1877
1840
  parsedBody,
1878
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1879
1841
  errorCode,
1880
1842
  });
1881
1843
  }
@@ -1886,12 +1848,12 @@ const de_PutResourcePolicyCommand = async (output, context) => {
1886
1848
  }
1887
1849
  const data = await parseBody(output.body, context);
1888
1850
  let contents = {};
1889
- contents = de_PutResourcePolicyResponse(data, context);
1851
+ contents = (0, smithy_client_1._json)(data);
1890
1852
  const response = {
1891
1853
  $metadata: deserializeMetadata(output),
1892
1854
  ...contents,
1893
1855
  };
1894
- return Promise.resolve(response);
1856
+ return response;
1895
1857
  };
1896
1858
  exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
1897
1859
  const de_PutResourcePolicyCommandError = async (output, context) => {
@@ -1912,10 +1874,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
1912
1874
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1913
1875
  default:
1914
1876
  const parsedBody = parsedOutput.body;
1915
- (0, smithy_client_1.throwDefaultError)({
1877
+ return throwDefaultError({
1916
1878
  output,
1917
1879
  parsedBody,
1918
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1919
1880
  errorCode,
1920
1881
  });
1921
1882
  }
@@ -1928,7 +1889,7 @@ const de_PutRetentionPolicyCommand = async (output, context) => {
1928
1889
  const response = {
1929
1890
  $metadata: deserializeMetadata(output),
1930
1891
  };
1931
- return Promise.resolve(response);
1892
+ return response;
1932
1893
  };
1933
1894
  exports.de_PutRetentionPolicyCommand = de_PutRetentionPolicyCommand;
1934
1895
  const de_PutRetentionPolicyCommandError = async (output, context) => {
@@ -1952,10 +1913,9 @@ const de_PutRetentionPolicyCommandError = async (output, context) => {
1952
1913
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1953
1914
  default:
1954
1915
  const parsedBody = parsedOutput.body;
1955
- (0, smithy_client_1.throwDefaultError)({
1916
+ return throwDefaultError({
1956
1917
  output,
1957
1918
  parsedBody,
1958
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
1959
1919
  errorCode,
1960
1920
  });
1961
1921
  }
@@ -1968,7 +1928,7 @@ const de_PutSubscriptionFilterCommand = async (output, context) => {
1968
1928
  const response = {
1969
1929
  $metadata: deserializeMetadata(output),
1970
1930
  };
1971
- return Promise.resolve(response);
1931
+ return response;
1972
1932
  };
1973
1933
  exports.de_PutSubscriptionFilterCommand = de_PutSubscriptionFilterCommand;
1974
1934
  const de_PutSubscriptionFilterCommandError = async (output, context) => {
@@ -1995,10 +1955,9 @@ const de_PutSubscriptionFilterCommandError = async (output, context) => {
1995
1955
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1996
1956
  default:
1997
1957
  const parsedBody = parsedOutput.body;
1998
- (0, smithy_client_1.throwDefaultError)({
1958
+ return throwDefaultError({
1999
1959
  output,
2000
1960
  parsedBody,
2001
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
2002
1961
  errorCode,
2003
1962
  });
2004
1963
  }
@@ -2009,12 +1968,12 @@ const de_StartQueryCommand = async (output, context) => {
2009
1968
  }
2010
1969
  const data = await parseBody(output.body, context);
2011
1970
  let contents = {};
2012
- contents = de_StartQueryResponse(data, context);
1971
+ contents = (0, smithy_client_1._json)(data);
2013
1972
  const response = {
2014
1973
  $metadata: deserializeMetadata(output),
2015
1974
  ...contents,
2016
1975
  };
2017
- return Promise.resolve(response);
1976
+ return response;
2018
1977
  };
2019
1978
  exports.de_StartQueryCommand = de_StartQueryCommand;
2020
1979
  const de_StartQueryCommandError = async (output, context) => {
@@ -2041,10 +2000,9 @@ const de_StartQueryCommandError = async (output, context) => {
2041
2000
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2042
2001
  default:
2043
2002
  const parsedBody = parsedOutput.body;
2044
- (0, smithy_client_1.throwDefaultError)({
2003
+ return throwDefaultError({
2045
2004
  output,
2046
2005
  parsedBody,
2047
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
2048
2006
  errorCode,
2049
2007
  });
2050
2008
  }
@@ -2055,12 +2013,12 @@ const de_StopQueryCommand = async (output, context) => {
2055
2013
  }
2056
2014
  const data = await parseBody(output.body, context);
2057
2015
  let contents = {};
2058
- contents = de_StopQueryResponse(data, context);
2016
+ contents = (0, smithy_client_1._json)(data);
2059
2017
  const response = {
2060
2018
  $metadata: deserializeMetadata(output),
2061
2019
  ...contents,
2062
2020
  };
2063
- return Promise.resolve(response);
2021
+ return response;
2064
2022
  };
2065
2023
  exports.de_StopQueryCommand = de_StopQueryCommand;
2066
2024
  const de_StopQueryCommandError = async (output, context) => {
@@ -2081,10 +2039,9 @@ const de_StopQueryCommandError = async (output, context) => {
2081
2039
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2082
2040
  default:
2083
2041
  const parsedBody = parsedOutput.body;
2084
- (0, smithy_client_1.throwDefaultError)({
2042
+ return throwDefaultError({
2085
2043
  output,
2086
2044
  parsedBody,
2087
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
2088
2045
  errorCode,
2089
2046
  });
2090
2047
  }
@@ -2097,7 +2054,7 @@ const de_TagLogGroupCommand = async (output, context) => {
2097
2054
  const response = {
2098
2055
  $metadata: deserializeMetadata(output),
2099
2056
  };
2100
- return Promise.resolve(response);
2057
+ return response;
2101
2058
  };
2102
2059
  exports.de_TagLogGroupCommand = de_TagLogGroupCommand;
2103
2060
  const de_TagLogGroupCommandError = async (output, context) => {
@@ -2115,10 +2072,9 @@ const de_TagLogGroupCommandError = async (output, context) => {
2115
2072
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2116
2073
  default:
2117
2074
  const parsedBody = parsedOutput.body;
2118
- (0, smithy_client_1.throwDefaultError)({
2075
+ return throwDefaultError({
2119
2076
  output,
2120
2077
  parsedBody,
2121
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
2122
2078
  errorCode,
2123
2079
  });
2124
2080
  }
@@ -2131,7 +2087,7 @@ const de_TagResourceCommand = async (output, context) => {
2131
2087
  const response = {
2132
2088
  $metadata: deserializeMetadata(output),
2133
2089
  };
2134
- return Promise.resolve(response);
2090
+ return response;
2135
2091
  };
2136
2092
  exports.de_TagResourceCommand = de_TagResourceCommand;
2137
2093
  const de_TagResourceCommandError = async (output, context) => {
@@ -2155,10 +2111,9 @@ const de_TagResourceCommandError = async (output, context) => {
2155
2111
  throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2156
2112
  default:
2157
2113
  const parsedBody = parsedOutput.body;
2158
- (0, smithy_client_1.throwDefaultError)({
2114
+ return throwDefaultError({
2159
2115
  output,
2160
2116
  parsedBody,
2161
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
2162
2117
  errorCode,
2163
2118
  });
2164
2119
  }
@@ -2169,12 +2124,12 @@ const de_TestMetricFilterCommand = async (output, context) => {
2169
2124
  }
2170
2125
  const data = await parseBody(output.body, context);
2171
2126
  let contents = {};
2172
- contents = de_TestMetricFilterResponse(data, context);
2127
+ contents = (0, smithy_client_1._json)(data);
2173
2128
  const response = {
2174
2129
  $metadata: deserializeMetadata(output),
2175
2130
  ...contents,
2176
2131
  };
2177
- return Promise.resolve(response);
2132
+ return response;
2178
2133
  };
2179
2134
  exports.de_TestMetricFilterCommand = de_TestMetricFilterCommand;
2180
2135
  const de_TestMetricFilterCommandError = async (output, context) => {
@@ -2192,10 +2147,9 @@ const de_TestMetricFilterCommandError = async (output, context) => {
2192
2147
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2193
2148
  default:
2194
2149
  const parsedBody = parsedOutput.body;
2195
- (0, smithy_client_1.throwDefaultError)({
2150
+ return throwDefaultError({
2196
2151
  output,
2197
2152
  parsedBody,
2198
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
2199
2153
  errorCode,
2200
2154
  });
2201
2155
  }
@@ -2208,7 +2162,7 @@ const de_UntagLogGroupCommand = async (output, context) => {
2208
2162
  const response = {
2209
2163
  $metadata: deserializeMetadata(output),
2210
2164
  };
2211
- return Promise.resolve(response);
2165
+ return response;
2212
2166
  };
2213
2167
  exports.de_UntagLogGroupCommand = de_UntagLogGroupCommand;
2214
2168
  const de_UntagLogGroupCommandError = async (output, context) => {
@@ -2223,10 +2177,9 @@ const de_UntagLogGroupCommandError = async (output, context) => {
2223
2177
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2224
2178
  default:
2225
2179
  const parsedBody = parsedOutput.body;
2226
- (0, smithy_client_1.throwDefaultError)({
2180
+ return throwDefaultError({
2227
2181
  output,
2228
2182
  parsedBody,
2229
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
2230
2183
  errorCode,
2231
2184
  });
2232
2185
  }
@@ -2239,7 +2192,7 @@ const de_UntagResourceCommand = async (output, context) => {
2239
2192
  const response = {
2240
2193
  $metadata: deserializeMetadata(output),
2241
2194
  };
2242
- return Promise.resolve(response);
2195
+ return response;
2243
2196
  };
2244
2197
  exports.de_UntagResourceCommand = de_UntagResourceCommand;
2245
2198
  const de_UntagResourceCommandError = async (output, context) => {
@@ -2260,17 +2213,16 @@ const de_UntagResourceCommandError = async (output, context) => {
2260
2213
  throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2261
2214
  default:
2262
2215
  const parsedBody = parsedOutput.body;
2263
- (0, smithy_client_1.throwDefaultError)({
2216
+ return throwDefaultError({
2264
2217
  output,
2265
2218
  parsedBody,
2266
- exceptionCtor: CloudWatchLogsServiceException_1.CloudWatchLogsServiceException,
2267
2219
  errorCode,
2268
2220
  });
2269
2221
  }
2270
2222
  };
2271
2223
  const de_DataAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
2272
2224
  const body = parsedOutput.body;
2273
- const deserialized = de_DataAlreadyAcceptedException(body, context);
2225
+ const deserialized = (0, smithy_client_1._json)(body);
2274
2226
  const exception = new models_0_1.DataAlreadyAcceptedException({
2275
2227
  $metadata: deserializeMetadata(parsedOutput),
2276
2228
  ...deserialized,
@@ -2279,7 +2231,7 @@ const de_DataAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
2279
2231
  };
2280
2232
  const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
2281
2233
  const body = parsedOutput.body;
2282
- const deserialized = de_InvalidOperationException(body, context);
2234
+ const deserialized = (0, smithy_client_1._json)(body);
2283
2235
  const exception = new models_0_1.InvalidOperationException({
2284
2236
  $metadata: deserializeMetadata(parsedOutput),
2285
2237
  ...deserialized,
@@ -2288,7 +2240,7 @@ const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
2288
2240
  };
2289
2241
  const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2290
2242
  const body = parsedOutput.body;
2291
- const deserialized = de_InvalidParameterException(body, context);
2243
+ const deserialized = (0, smithy_client_1._json)(body);
2292
2244
  const exception = new models_0_1.InvalidParameterException({
2293
2245
  $metadata: deserializeMetadata(parsedOutput),
2294
2246
  ...deserialized,
@@ -2297,7 +2249,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
2297
2249
  };
2298
2250
  const de_InvalidSequenceTokenExceptionRes = async (parsedOutput, context) => {
2299
2251
  const body = parsedOutput.body;
2300
- const deserialized = de_InvalidSequenceTokenException(body, context);
2252
+ const deserialized = (0, smithy_client_1._json)(body);
2301
2253
  const exception = new models_0_1.InvalidSequenceTokenException({
2302
2254
  $metadata: deserializeMetadata(parsedOutput),
2303
2255
  ...deserialized,
@@ -2306,7 +2258,7 @@ const de_InvalidSequenceTokenExceptionRes = async (parsedOutput, context) => {
2306
2258
  };
2307
2259
  const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2308
2260
  const body = parsedOutput.body;
2309
- const deserialized = de_LimitExceededException(body, context);
2261
+ const deserialized = (0, smithy_client_1._json)(body);
2310
2262
  const exception = new models_0_1.LimitExceededException({
2311
2263
  $metadata: deserializeMetadata(parsedOutput),
2312
2264
  ...deserialized,
@@ -2315,7 +2267,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
2315
2267
  };
2316
2268
  const de_MalformedQueryExceptionRes = async (parsedOutput, context) => {
2317
2269
  const body = parsedOutput.body;
2318
- const deserialized = de_MalformedQueryException(body, context);
2270
+ const deserialized = (0, smithy_client_1._json)(body);
2319
2271
  const exception = new models_0_1.MalformedQueryException({
2320
2272
  $metadata: deserializeMetadata(parsedOutput),
2321
2273
  ...deserialized,
@@ -2324,7 +2276,7 @@ const de_MalformedQueryExceptionRes = async (parsedOutput, context) => {
2324
2276
  };
2325
2277
  const de_OperationAbortedExceptionRes = async (parsedOutput, context) => {
2326
2278
  const body = parsedOutput.body;
2327
- const deserialized = de_OperationAbortedException(body, context);
2279
+ const deserialized = (0, smithy_client_1._json)(body);
2328
2280
  const exception = new models_0_1.OperationAbortedException({
2329
2281
  $metadata: deserializeMetadata(parsedOutput),
2330
2282
  ...deserialized,
@@ -2333,7 +2285,7 @@ const de_OperationAbortedExceptionRes = async (parsedOutput, context) => {
2333
2285
  };
2334
2286
  const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2335
2287
  const body = parsedOutput.body;
2336
- const deserialized = de_ResourceAlreadyExistsException(body, context);
2288
+ const deserialized = (0, smithy_client_1._json)(body);
2337
2289
  const exception = new models_0_1.ResourceAlreadyExistsException({
2338
2290
  $metadata: deserializeMetadata(parsedOutput),
2339
2291
  ...deserialized,
@@ -2342,7 +2294,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
2342
2294
  };
2343
2295
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2344
2296
  const body = parsedOutput.body;
2345
- const deserialized = de_ResourceNotFoundException(body, context);
2297
+ const deserialized = (0, smithy_client_1._json)(body);
2346
2298
  const exception = new models_0_1.ResourceNotFoundException({
2347
2299
  $metadata: deserializeMetadata(parsedOutput),
2348
2300
  ...deserialized,
@@ -2351,7 +2303,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
2351
2303
  };
2352
2304
  const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
2353
2305
  const body = parsedOutput.body;
2354
- const deserialized = de_ServiceUnavailableException(body, context);
2306
+ const deserialized = (0, smithy_client_1._json)(body);
2355
2307
  const exception = new models_0_1.ServiceUnavailableException({
2356
2308
  $metadata: deserializeMetadata(parsedOutput),
2357
2309
  ...deserialized,
@@ -2360,7 +2312,7 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
2360
2312
  };
2361
2313
  const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
2362
2314
  const body = parsedOutput.body;
2363
- const deserialized = de_TooManyTagsException(body, context);
2315
+ const deserialized = (0, smithy_client_1._json)(body);
2364
2316
  const exception = new models_0_1.TooManyTagsException({
2365
2317
  $metadata: deserializeMetadata(parsedOutput),
2366
2318
  ...deserialized,
@@ -2369,296 +2321,22 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
2369
2321
  };
2370
2322
  const de_UnrecognizedClientExceptionRes = async (parsedOutput, context) => {
2371
2323
  const body = parsedOutput.body;
2372
- const deserialized = de_UnrecognizedClientException(body, context);
2324
+ const deserialized = (0, smithy_client_1._json)(body);
2373
2325
  const exception = new models_0_1.UnrecognizedClientException({
2374
2326
  $metadata: deserializeMetadata(parsedOutput),
2375
2327
  ...deserialized,
2376
2328
  });
2377
2329
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2378
2330
  };
2379
- const se_AccountIds = (input, context) => {
2380
- return input
2381
- .filter((e) => e != null)
2382
- .map((entry) => {
2383
- return entry;
2384
- });
2385
- };
2386
- const se_AssociateKmsKeyRequest = (input, context) => {
2387
- return {
2388
- ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
2389
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2390
- };
2391
- };
2392
- const se_CancelExportTaskRequest = (input, context) => {
2393
- return {
2394
- ...(input.taskId != null && { taskId: input.taskId }),
2395
- };
2396
- };
2397
- const se_CreateExportTaskRequest = (input, context) => {
2398
- return {
2399
- ...(input.destination != null && { destination: input.destination }),
2400
- ...(input.destinationPrefix != null && { destinationPrefix: input.destinationPrefix }),
2401
- ...(input.from != null && { from: input.from }),
2402
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2403
- ...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
2404
- ...(input.taskName != null && { taskName: input.taskName }),
2405
- ...(input.to != null && { to: input.to }),
2406
- };
2407
- };
2408
- const se_CreateLogGroupRequest = (input, context) => {
2409
- return {
2410
- ...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
2411
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2412
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
2413
- };
2414
- };
2415
- const se_CreateLogStreamRequest = (input, context) => {
2416
- return {
2417
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2418
- ...(input.logStreamName != null && { logStreamName: input.logStreamName }),
2419
- };
2420
- };
2421
- const se_DeleteDataProtectionPolicyRequest = (input, context) => {
2422
- return {
2423
- ...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
2424
- };
2425
- };
2426
- const se_DeleteDestinationRequest = (input, context) => {
2427
- return {
2428
- ...(input.destinationName != null && { destinationName: input.destinationName }),
2429
- };
2430
- };
2431
- const se_DeleteLogGroupRequest = (input, context) => {
2432
- return {
2433
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2434
- };
2435
- };
2436
- const se_DeleteLogStreamRequest = (input, context) => {
2437
- return {
2438
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2439
- ...(input.logStreamName != null && { logStreamName: input.logStreamName }),
2440
- };
2441
- };
2442
- const se_DeleteMetricFilterRequest = (input, context) => {
2443
- return {
2444
- ...(input.filterName != null && { filterName: input.filterName }),
2445
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2446
- };
2447
- };
2448
- const se_DeleteQueryDefinitionRequest = (input, context) => {
2449
- return {
2450
- ...(input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }),
2451
- };
2452
- };
2453
- const se_DeleteResourcePolicyRequest = (input, context) => {
2454
- return {
2455
- ...(input.policyName != null && { policyName: input.policyName }),
2456
- };
2457
- };
2458
- const se_DeleteRetentionPolicyRequest = (input, context) => {
2459
- return {
2460
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2461
- };
2462
- };
2463
- const se_DeleteSubscriptionFilterRequest = (input, context) => {
2464
- return {
2465
- ...(input.filterName != null && { filterName: input.filterName }),
2466
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2467
- };
2468
- };
2469
- const se_DescribeDestinationsRequest = (input, context) => {
2470
- return {
2471
- ...(input.DestinationNamePrefix != null && { DestinationNamePrefix: input.DestinationNamePrefix }),
2472
- ...(input.limit != null && { limit: input.limit }),
2473
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2474
- };
2475
- };
2476
- const se_DescribeExportTasksRequest = (input, context) => {
2477
- return {
2478
- ...(input.limit != null && { limit: input.limit }),
2479
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2480
- ...(input.statusCode != null && { statusCode: input.statusCode }),
2481
- ...(input.taskId != null && { taskId: input.taskId }),
2482
- };
2483
- };
2484
- const se_DescribeLogGroupsRequest = (input, context) => {
2485
- return {
2486
- ...(input.accountIdentifiers != null && { accountIdentifiers: se_AccountIds(input.accountIdentifiers, context) }),
2487
- ...(input.includeLinkedAccounts != null && { includeLinkedAccounts: input.includeLinkedAccounts }),
2488
- ...(input.limit != null && { limit: input.limit }),
2489
- ...(input.logGroupNamePattern != null && { logGroupNamePattern: input.logGroupNamePattern }),
2490
- ...(input.logGroupNamePrefix != null && { logGroupNamePrefix: input.logGroupNamePrefix }),
2491
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2492
- };
2493
- };
2494
- const se_DescribeLogStreamsRequest = (input, context) => {
2495
- return {
2496
- ...(input.descending != null && { descending: input.descending }),
2497
- ...(input.limit != null && { limit: input.limit }),
2498
- ...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
2499
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2500
- ...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
2501
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2502
- ...(input.orderBy != null && { orderBy: input.orderBy }),
2503
- };
2504
- };
2505
- const se_DescribeMetricFiltersRequest = (input, context) => {
2506
- return {
2507
- ...(input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix }),
2508
- ...(input.limit != null && { limit: input.limit }),
2509
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2510
- ...(input.metricName != null && { metricName: input.metricName }),
2511
- ...(input.metricNamespace != null && { metricNamespace: input.metricNamespace }),
2512
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2513
- };
2514
- };
2515
- const se_DescribeQueriesRequest = (input, context) => {
2516
- return {
2517
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2518
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2519
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2520
- ...(input.status != null && { status: input.status }),
2521
- };
2522
- };
2523
- const se_DescribeQueryDefinitionsRequest = (input, context) => {
2524
- return {
2525
- ...(input.maxResults != null && { maxResults: input.maxResults }),
2526
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2527
- ...(input.queryDefinitionNamePrefix != null && { queryDefinitionNamePrefix: input.queryDefinitionNamePrefix }),
2528
- };
2529
- };
2530
- const se_DescribeResourcePoliciesRequest = (input, context) => {
2531
- return {
2532
- ...(input.limit != null && { limit: input.limit }),
2533
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2534
- };
2535
- };
2536
- const se_DescribeSubscriptionFiltersRequest = (input, context) => {
2537
- return {
2538
- ...(input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix }),
2539
- ...(input.limit != null && { limit: input.limit }),
2540
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2541
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2542
- };
2543
- };
2544
- const se_Dimensions = (input, context) => {
2545
- return Object.entries(input).reduce((acc, [key, value]) => {
2546
- if (value === null) {
2547
- return acc;
2548
- }
2549
- acc[key] = value;
2550
- return acc;
2551
- }, {});
2552
- };
2553
- const se_DisassociateKmsKeyRequest = (input, context) => {
2554
- return {
2555
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2556
- };
2557
- };
2558
- const se_FilterLogEventsRequest = (input, context) => {
2559
- return {
2560
- ...(input.endTime != null && { endTime: input.endTime }),
2561
- ...(input.filterPattern != null && { filterPattern: input.filterPattern }),
2562
- ...(input.interleaved != null && { interleaved: input.interleaved }),
2563
- ...(input.limit != null && { limit: input.limit }),
2564
- ...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
2565
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2566
- ...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
2567
- ...(input.logStreamNames != null && { logStreamNames: se_InputLogStreamNames(input.logStreamNames, context) }),
2568
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2569
- ...(input.startTime != null && { startTime: input.startTime }),
2570
- ...(input.unmask != null && { unmask: input.unmask }),
2571
- };
2572
- };
2573
- const se_GetDataProtectionPolicyRequest = (input, context) => {
2574
- return {
2575
- ...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
2576
- };
2577
- };
2578
- const se_GetLogEventsRequest = (input, context) => {
2579
- return {
2580
- ...(input.endTime != null && { endTime: input.endTime }),
2581
- ...(input.limit != null && { limit: input.limit }),
2582
- ...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
2583
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2584
- ...(input.logStreamName != null && { logStreamName: input.logStreamName }),
2585
- ...(input.nextToken != null && { nextToken: input.nextToken }),
2586
- ...(input.startFromHead != null && { startFromHead: input.startFromHead }),
2587
- ...(input.startTime != null && { startTime: input.startTime }),
2588
- ...(input.unmask != null && { unmask: input.unmask }),
2589
- };
2590
- };
2591
- const se_GetLogGroupFieldsRequest = (input, context) => {
2592
- return {
2593
- ...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
2594
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2595
- ...(input.time != null && { time: input.time }),
2596
- };
2597
- };
2598
- const se_GetLogRecordRequest = (input, context) => {
2599
- return {
2600
- ...(input.logRecordPointer != null && { logRecordPointer: input.logRecordPointer }),
2601
- ...(input.unmask != null && { unmask: input.unmask }),
2602
- };
2603
- };
2604
- const se_GetQueryResultsRequest = (input, context) => {
2605
- return {
2606
- ...(input.queryId != null && { queryId: input.queryId }),
2607
- };
2608
- };
2609
- const se_InputLogEvent = (input, context) => {
2610
- return {
2611
- ...(input.message != null && { message: input.message }),
2612
- ...(input.timestamp != null && { timestamp: input.timestamp }),
2613
- };
2614
- };
2615
- const se_InputLogEvents = (input, context) => {
2616
- return input
2617
- .filter((e) => e != null)
2618
- .map((entry) => {
2619
- return se_InputLogEvent(entry, context);
2620
- });
2621
- };
2622
- const se_InputLogStreamNames = (input, context) => {
2623
- return input
2624
- .filter((e) => e != null)
2625
- .map((entry) => {
2626
- return entry;
2627
- });
2628
- };
2629
- const se_ListTagsForResourceRequest = (input, context) => {
2630
- return {
2631
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2632
- };
2633
- };
2634
- const se_ListTagsLogGroupRequest = (input, context) => {
2635
- return {
2636
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2637
- };
2638
- };
2639
- const se_LogGroupIdentifiers = (input, context) => {
2640
- return input
2641
- .filter((e) => e != null)
2642
- .map((entry) => {
2643
- return entry;
2644
- });
2645
- };
2646
- const se_LogGroupNames = (input, context) => {
2647
- return input
2648
- .filter((e) => e != null)
2649
- .map((entry) => {
2650
- return entry;
2651
- });
2652
- };
2653
2331
  const se_MetricTransformation = (input, context) => {
2654
- return {
2655
- ...(input.defaultValue != null && { defaultValue: (0, smithy_client_1.serializeFloat)(input.defaultValue) }),
2656
- ...(input.dimensions != null && { dimensions: se_Dimensions(input.dimensions, context) }),
2657
- ...(input.metricName != null && { metricName: input.metricName }),
2658
- ...(input.metricNamespace != null && { metricNamespace: input.metricNamespace }),
2659
- ...(input.metricValue != null && { metricValue: input.metricValue }),
2660
- ...(input.unit != null && { unit: input.unit }),
2661
- };
2332
+ return (0, smithy_client_1.take)(input, {
2333
+ defaultValue: smithy_client_1.serializeFloat,
2334
+ dimensions: smithy_client_1._json,
2335
+ metricName: [],
2336
+ metricNamespace: [],
2337
+ metricValue: [],
2338
+ unit: [],
2339
+ });
2662
2340
  };
2663
2341
  const se_MetricTransformations = (input, context) => {
2664
2342
  return input
@@ -2667,790 +2345,68 @@ const se_MetricTransformations = (input, context) => {
2667
2345
  return se_MetricTransformation(entry, context);
2668
2346
  });
2669
2347
  };
2670
- const se_PutDataProtectionPolicyRequest = (input, context) => {
2671
- return {
2672
- ...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
2673
- ...(input.policyDocument != null && { policyDocument: input.policyDocument }),
2674
- };
2675
- };
2676
- const se_PutDestinationPolicyRequest = (input, context) => {
2677
- return {
2678
- ...(input.accessPolicy != null && { accessPolicy: input.accessPolicy }),
2679
- ...(input.destinationName != null && { destinationName: input.destinationName }),
2680
- ...(input.forceUpdate != null && { forceUpdate: input.forceUpdate }),
2681
- };
2682
- };
2683
- const se_PutDestinationRequest = (input, context) => {
2684
- return {
2685
- ...(input.destinationName != null && { destinationName: input.destinationName }),
2686
- ...(input.roleArn != null && { roleArn: input.roleArn }),
2687
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
2688
- ...(input.targetArn != null && { targetArn: input.targetArn }),
2689
- };
2690
- };
2691
- const se_PutLogEventsRequest = (input, context) => {
2692
- return {
2693
- ...(input.logEvents != null && { logEvents: se_InputLogEvents(input.logEvents, context) }),
2694
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2695
- ...(input.logStreamName != null && { logStreamName: input.logStreamName }),
2696
- ...(input.sequenceToken != null && { sequenceToken: input.sequenceToken }),
2697
- };
2698
- };
2699
2348
  const se_PutMetricFilterRequest = (input, context) => {
2700
- return {
2701
- ...(input.filterName != null && { filterName: input.filterName }),
2702
- ...(input.filterPattern != null && { filterPattern: input.filterPattern }),
2703
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2704
- ...(input.metricTransformations != null && {
2705
- metricTransformations: se_MetricTransformations(input.metricTransformations, context),
2706
- }),
2707
- };
2708
- };
2709
- const se_PutQueryDefinitionRequest = (input, context) => {
2710
- return {
2711
- ...(input.logGroupNames != null && { logGroupNames: se_LogGroupNames(input.logGroupNames, context) }),
2712
- ...(input.name != null && { name: input.name }),
2713
- ...(input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }),
2714
- ...(input.queryString != null && { queryString: input.queryString }),
2715
- };
2716
- };
2717
- const se_PutResourcePolicyRequest = (input, context) => {
2718
- return {
2719
- ...(input.policyDocument != null && { policyDocument: input.policyDocument }),
2720
- ...(input.policyName != null && { policyName: input.policyName }),
2721
- };
2722
- };
2723
- const se_PutRetentionPolicyRequest = (input, context) => {
2724
- return {
2725
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2726
- ...(input.retentionInDays != null && { retentionInDays: input.retentionInDays }),
2727
- };
2728
- };
2729
- const se_PutSubscriptionFilterRequest = (input, context) => {
2730
- return {
2731
- ...(input.destinationArn != null && { destinationArn: input.destinationArn }),
2732
- ...(input.distribution != null && { distribution: input.distribution }),
2733
- ...(input.filterName != null && { filterName: input.filterName }),
2734
- ...(input.filterPattern != null && { filterPattern: input.filterPattern }),
2735
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2736
- ...(input.roleArn != null && { roleArn: input.roleArn }),
2737
- };
2738
- };
2739
- const se_StartQueryRequest = (input, context) => {
2740
- return {
2741
- ...(input.endTime != null && { endTime: input.endTime }),
2742
- ...(input.limit != null && { limit: input.limit }),
2743
- ...(input.logGroupIdentifiers != null && {
2744
- logGroupIdentifiers: se_LogGroupIdentifiers(input.logGroupIdentifiers, context),
2745
- }),
2746
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2747
- ...(input.logGroupNames != null && { logGroupNames: se_LogGroupNames(input.logGroupNames, context) }),
2748
- ...(input.queryString != null && { queryString: input.queryString }),
2749
- ...(input.startTime != null && { startTime: input.startTime }),
2750
- };
2751
- };
2752
- const se_StopQueryRequest = (input, context) => {
2753
- return {
2754
- ...(input.queryId != null && { queryId: input.queryId }),
2755
- };
2756
- };
2757
- const se_TagKeyList = (input, context) => {
2758
- return input
2759
- .filter((e) => e != null)
2760
- .map((entry) => {
2761
- return entry;
2762
- });
2763
- };
2764
- const se_TagList = (input, context) => {
2765
- return input
2766
- .filter((e) => e != null)
2767
- .map((entry) => {
2768
- return entry;
2769
- });
2770
- };
2771
- const se_TagLogGroupRequest = (input, context) => {
2772
- return {
2773
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2774
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
2775
- };
2776
- };
2777
- const se_TagResourceRequest = (input, context) => {
2778
- return {
2779
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2780
- ...(input.tags != null && { tags: se_Tags(input.tags, context) }),
2781
- };
2782
- };
2783
- const se_Tags = (input, context) => {
2784
- return Object.entries(input).reduce((acc, [key, value]) => {
2785
- if (value === null) {
2786
- return acc;
2787
- }
2788
- acc[key] = value;
2789
- return acc;
2790
- }, {});
2791
- };
2792
- const se_TestEventMessages = (input, context) => {
2793
- return input
2794
- .filter((e) => e != null)
2795
- .map((entry) => {
2796
- return entry;
2349
+ return (0, smithy_client_1.take)(input, {
2350
+ filterName: [],
2351
+ filterPattern: [],
2352
+ logGroupName: [],
2353
+ metricTransformations: (_) => se_MetricTransformations(_, context),
2797
2354
  });
2798
2355
  };
2799
- const se_TestMetricFilterRequest = (input, context) => {
2800
- return {
2801
- ...(input.filterPattern != null && { filterPattern: input.filterPattern }),
2802
- ...(input.logEventMessages != null && { logEventMessages: se_TestEventMessages(input.logEventMessages, context) }),
2803
- };
2804
- };
2805
- const se_UntagLogGroupRequest = (input, context) => {
2806
- return {
2807
- ...(input.logGroupName != null && { logGroupName: input.logGroupName }),
2808
- ...(input.tags != null && { tags: se_TagList(input.tags, context) }),
2809
- };
2810
- };
2811
- const se_UntagResourceRequest = (input, context) => {
2812
- return {
2813
- ...(input.resourceArn != null && { resourceArn: input.resourceArn }),
2814
- ...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
2815
- };
2816
- };
2817
- const de_CreateExportTaskResponse = (output, context) => {
2818
- return {
2819
- taskId: (0, smithy_client_1.expectString)(output.taskId),
2820
- };
2821
- };
2822
- const de_DataAlreadyAcceptedException = (output, context) => {
2823
- return {
2824
- expectedSequenceToken: (0, smithy_client_1.expectString)(output.expectedSequenceToken),
2825
- message: (0, smithy_client_1.expectString)(output.message),
2826
- };
2827
- };
2828
- const de_DeleteQueryDefinitionResponse = (output, context) => {
2829
- return {
2830
- success: (0, smithy_client_1.expectBoolean)(output.success),
2831
- };
2832
- };
2833
- const de_DescribeDestinationsResponse = (output, context) => {
2834
- return {
2835
- destinations: output.destinations != null ? de_Destinations(output.destinations, context) : undefined,
2836
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2837
- };
2838
- };
2839
- const de_DescribeExportTasksResponse = (output, context) => {
2840
- return {
2841
- exportTasks: output.exportTasks != null ? de_ExportTasks(output.exportTasks, context) : undefined,
2842
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2843
- };
2844
- };
2845
- const de_DescribeLogGroupsResponse = (output, context) => {
2846
- return {
2847
- logGroups: output.logGroups != null ? de_LogGroups(output.logGroups, context) : undefined,
2848
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2849
- };
2850
- };
2851
- const de_DescribeLogStreamsResponse = (output, context) => {
2852
- return {
2853
- logStreams: output.logStreams != null ? de_LogStreams(output.logStreams, context) : undefined,
2854
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2855
- };
2856
- };
2857
2356
  const de_DescribeMetricFiltersResponse = (output, context) => {
2858
- return {
2859
- metricFilters: output.metricFilters != null ? de_MetricFilters(output.metricFilters, context) : undefined,
2860
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2861
- };
2862
- };
2863
- const de_DescribeQueriesResponse = (output, context) => {
2864
- return {
2865
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2866
- queries: output.queries != null ? de_QueryInfoList(output.queries, context) : undefined,
2867
- };
2868
- };
2869
- const de_DescribeQueryDefinitionsResponse = (output, context) => {
2870
- return {
2871
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2872
- queryDefinitions: output.queryDefinitions != null ? de_QueryDefinitionList(output.queryDefinitions, context) : undefined,
2873
- };
2874
- };
2875
- const de_DescribeResourcePoliciesResponse = (output, context) => {
2876
- return {
2877
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2878
- resourcePolicies: output.resourcePolicies != null ? de_ResourcePolicies(output.resourcePolicies, context) : undefined,
2879
- };
2880
- };
2881
- const de_DescribeSubscriptionFiltersResponse = (output, context) => {
2882
- return {
2883
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2884
- subscriptionFilters: output.subscriptionFilters != null ? de_SubscriptionFilters(output.subscriptionFilters, context) : undefined,
2885
- };
2886
- };
2887
- const de_Destination = (output, context) => {
2888
- return {
2889
- accessPolicy: (0, smithy_client_1.expectString)(output.accessPolicy),
2890
- arn: (0, smithy_client_1.expectString)(output.arn),
2891
- creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
2892
- destinationName: (0, smithy_client_1.expectString)(output.destinationName),
2893
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
2894
- targetArn: (0, smithy_client_1.expectString)(output.targetArn),
2895
- };
2896
- };
2897
- const de_Destinations = (output, context) => {
2898
- const retVal = (output || [])
2899
- .filter((e) => e != null)
2900
- .map((entry) => {
2901
- if (entry === null) {
2902
- return null;
2903
- }
2904
- return de_Destination(entry, context);
2357
+ return (0, smithy_client_1.take)(output, {
2358
+ metricFilters: (_) => de_MetricFilters(_, context),
2359
+ nextToken: smithy_client_1.expectString,
2905
2360
  });
2906
- return retVal;
2907
- };
2908
- const de_Dimensions = (output, context) => {
2909
- return Object.entries(output).reduce((acc, [key, value]) => {
2910
- if (value === null) {
2911
- return acc;
2912
- }
2913
- acc[key] = (0, smithy_client_1.expectString)(value);
2914
- return acc;
2915
- }, {});
2916
- };
2917
- const de_ExportTask = (output, context) => {
2918
- return {
2919
- destination: (0, smithy_client_1.expectString)(output.destination),
2920
- destinationPrefix: (0, smithy_client_1.expectString)(output.destinationPrefix),
2921
- executionInfo: output.executionInfo != null ? de_ExportTaskExecutionInfo(output.executionInfo, context) : undefined,
2922
- from: (0, smithy_client_1.expectLong)(output.from),
2923
- logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
2924
- status: output.status != null ? de_ExportTaskStatus(output.status, context) : undefined,
2925
- taskId: (0, smithy_client_1.expectString)(output.taskId),
2926
- taskName: (0, smithy_client_1.expectString)(output.taskName),
2927
- to: (0, smithy_client_1.expectLong)(output.to),
2928
- };
2929
- };
2930
- const de_ExportTaskExecutionInfo = (output, context) => {
2931
- return {
2932
- completionTime: (0, smithy_client_1.expectLong)(output.completionTime),
2933
- creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
2934
- };
2935
- };
2936
- const de_ExportTasks = (output, context) => {
2937
- const retVal = (output || [])
2938
- .filter((e) => e != null)
2939
- .map((entry) => {
2940
- if (entry === null) {
2941
- return null;
2942
- }
2943
- return de_ExportTask(entry, context);
2944
- });
2945
- return retVal;
2946
- };
2947
- const de_ExportTaskStatus = (output, context) => {
2948
- return {
2949
- code: (0, smithy_client_1.expectString)(output.code),
2950
- message: (0, smithy_client_1.expectString)(output.message),
2951
- };
2952
- };
2953
- const de_ExtractedValues = (output, context) => {
2954
- return Object.entries(output).reduce((acc, [key, value]) => {
2955
- if (value === null) {
2956
- return acc;
2957
- }
2958
- acc[key] = (0, smithy_client_1.expectString)(value);
2959
- return acc;
2960
- }, {});
2961
- };
2962
- const de_FilteredLogEvent = (output, context) => {
2963
- return {
2964
- eventId: (0, smithy_client_1.expectString)(output.eventId),
2965
- ingestionTime: (0, smithy_client_1.expectLong)(output.ingestionTime),
2966
- logStreamName: (0, smithy_client_1.expectString)(output.logStreamName),
2967
- message: (0, smithy_client_1.expectString)(output.message),
2968
- timestamp: (0, smithy_client_1.expectLong)(output.timestamp),
2969
- };
2970
- };
2971
- const de_FilteredLogEvents = (output, context) => {
2972
- const retVal = (output || [])
2973
- .filter((e) => e != null)
2974
- .map((entry) => {
2975
- if (entry === null) {
2976
- return null;
2977
- }
2978
- return de_FilteredLogEvent(entry, context);
2979
- });
2980
- return retVal;
2981
- };
2982
- const de_FilterLogEventsResponse = (output, context) => {
2983
- return {
2984
- events: output.events != null ? de_FilteredLogEvents(output.events, context) : undefined,
2985
- nextToken: (0, smithy_client_1.expectString)(output.nextToken),
2986
- searchedLogStreams: output.searchedLogStreams != null ? de_SearchedLogStreams(output.searchedLogStreams, context) : undefined,
2987
- };
2988
- };
2989
- const de_GetDataProtectionPolicyResponse = (output, context) => {
2990
- return {
2991
- lastUpdatedTime: (0, smithy_client_1.expectLong)(output.lastUpdatedTime),
2992
- logGroupIdentifier: (0, smithy_client_1.expectString)(output.logGroupIdentifier),
2993
- policyDocument: (0, smithy_client_1.expectString)(output.policyDocument),
2994
- };
2995
- };
2996
- const de_GetLogEventsResponse = (output, context) => {
2997
- return {
2998
- events: output.events != null ? de_OutputLogEvents(output.events, context) : undefined,
2999
- nextBackwardToken: (0, smithy_client_1.expectString)(output.nextBackwardToken),
3000
- nextForwardToken: (0, smithy_client_1.expectString)(output.nextForwardToken),
3001
- };
3002
- };
3003
- const de_GetLogGroupFieldsResponse = (output, context) => {
3004
- return {
3005
- logGroupFields: output.logGroupFields != null ? de_LogGroupFieldList(output.logGroupFields, context) : undefined,
3006
- };
3007
- };
3008
- const de_GetLogRecordResponse = (output, context) => {
3009
- return {
3010
- logRecord: output.logRecord != null ? de_LogRecord(output.logRecord, context) : undefined,
3011
- };
3012
2361
  };
3013
2362
  const de_GetQueryResultsResponse = (output, context) => {
3014
- return {
3015
- results: output.results != null ? de_QueryResults(output.results, context) : undefined,
3016
- statistics: output.statistics != null ? de_QueryStatistics(output.statistics, context) : undefined,
3017
- status: (0, smithy_client_1.expectString)(output.status),
3018
- };
3019
- };
3020
- const de_InvalidOperationException = (output, context) => {
3021
- return {
3022
- message: (0, smithy_client_1.expectString)(output.message),
3023
- };
3024
- };
3025
- const de_InvalidParameterException = (output, context) => {
3026
- return {
3027
- message: (0, smithy_client_1.expectString)(output.message),
3028
- };
3029
- };
3030
- const de_InvalidSequenceTokenException = (output, context) => {
3031
- return {
3032
- expectedSequenceToken: (0, smithy_client_1.expectString)(output.expectedSequenceToken),
3033
- message: (0, smithy_client_1.expectString)(output.message),
3034
- };
3035
- };
3036
- const de_LimitExceededException = (output, context) => {
3037
- return {
3038
- message: (0, smithy_client_1.expectString)(output.message),
3039
- };
3040
- };
3041
- const de_ListTagsForResourceResponse = (output, context) => {
3042
- return {
3043
- tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
3044
- };
3045
- };
3046
- const de_ListTagsLogGroupResponse = (output, context) => {
3047
- return {
3048
- tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
3049
- };
3050
- };
3051
- const de_LogGroup = (output, context) => {
3052
- return {
3053
- arn: (0, smithy_client_1.expectString)(output.arn),
3054
- creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
3055
- dataProtectionStatus: (0, smithy_client_1.expectString)(output.dataProtectionStatus),
3056
- kmsKeyId: (0, smithy_client_1.expectString)(output.kmsKeyId),
3057
- logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
3058
- metricFilterCount: (0, smithy_client_1.expectInt32)(output.metricFilterCount),
3059
- retentionInDays: (0, smithy_client_1.expectInt32)(output.retentionInDays),
3060
- storedBytes: (0, smithy_client_1.expectLong)(output.storedBytes),
3061
- };
3062
- };
3063
- const de_LogGroupField = (output, context) => {
3064
- return {
3065
- name: (0, smithy_client_1.expectString)(output.name),
3066
- percent: (0, smithy_client_1.expectInt32)(output.percent),
3067
- };
3068
- };
3069
- const de_LogGroupFieldList = (output, context) => {
3070
- const retVal = (output || [])
3071
- .filter((e) => e != null)
3072
- .map((entry) => {
3073
- if (entry === null) {
3074
- return null;
3075
- }
3076
- return de_LogGroupField(entry, context);
3077
- });
3078
- return retVal;
3079
- };
3080
- const de_LogGroupNames = (output, context) => {
3081
- const retVal = (output || [])
3082
- .filter((e) => e != null)
3083
- .map((entry) => {
3084
- if (entry === null) {
3085
- return null;
3086
- }
3087
- return (0, smithy_client_1.expectString)(entry);
3088
- });
3089
- return retVal;
3090
- };
3091
- const de_LogGroups = (output, context) => {
3092
- const retVal = (output || [])
3093
- .filter((e) => e != null)
3094
- .map((entry) => {
3095
- if (entry === null) {
3096
- return null;
3097
- }
3098
- return de_LogGroup(entry, context);
2363
+ return (0, smithy_client_1.take)(output, {
2364
+ results: smithy_client_1._json,
2365
+ statistics: (_) => de_QueryStatistics(_, context),
2366
+ status: smithy_client_1.expectString,
3099
2367
  });
3100
- return retVal;
3101
- };
3102
- const de_LogRecord = (output, context) => {
3103
- return Object.entries(output).reduce((acc, [key, value]) => {
3104
- if (value === null) {
3105
- return acc;
3106
- }
3107
- acc[key] = (0, smithy_client_1.expectString)(value);
3108
- return acc;
3109
- }, {});
3110
- };
3111
- const de_LogStream = (output, context) => {
3112
- return {
3113
- arn: (0, smithy_client_1.expectString)(output.arn),
3114
- creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
3115
- firstEventTimestamp: (0, smithy_client_1.expectLong)(output.firstEventTimestamp),
3116
- lastEventTimestamp: (0, smithy_client_1.expectLong)(output.lastEventTimestamp),
3117
- lastIngestionTime: (0, smithy_client_1.expectLong)(output.lastIngestionTime),
3118
- logStreamName: (0, smithy_client_1.expectString)(output.logStreamName),
3119
- storedBytes: (0, smithy_client_1.expectLong)(output.storedBytes),
3120
- uploadSequenceToken: (0, smithy_client_1.expectString)(output.uploadSequenceToken),
3121
- };
3122
- };
3123
- const de_LogStreams = (output, context) => {
3124
- const retVal = (output || [])
3125
- .filter((e) => e != null)
3126
- .map((entry) => {
3127
- if (entry === null) {
3128
- return null;
3129
- }
3130
- return de_LogStream(entry, context);
3131
- });
3132
- return retVal;
3133
- };
3134
- const de_MalformedQueryException = (output, context) => {
3135
- return {
3136
- message: (0, smithy_client_1.expectString)(output.message),
3137
- queryCompileError: output.queryCompileError != null ? de_QueryCompileError(output.queryCompileError, context) : undefined,
3138
- };
3139
2368
  };
3140
2369
  const de_MetricFilter = (output, context) => {
3141
- return {
3142
- creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
3143
- filterName: (0, smithy_client_1.expectString)(output.filterName),
3144
- filterPattern: (0, smithy_client_1.expectString)(output.filterPattern),
3145
- logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
3146
- metricTransformations: output.metricTransformations != null
3147
- ? de_MetricTransformations(output.metricTransformations, context)
3148
- : undefined,
3149
- };
3150
- };
3151
- const de_MetricFilterMatches = (output, context) => {
3152
- const retVal = (output || [])
3153
- .filter((e) => e != null)
3154
- .map((entry) => {
3155
- if (entry === null) {
3156
- return null;
3157
- }
3158
- return de_MetricFilterMatchRecord(entry, context);
2370
+ return (0, smithy_client_1.take)(output, {
2371
+ creationTime: smithy_client_1.expectLong,
2372
+ filterName: smithy_client_1.expectString,
2373
+ filterPattern: smithy_client_1.expectString,
2374
+ logGroupName: smithy_client_1.expectString,
2375
+ metricTransformations: (_) => de_MetricTransformations(_, context),
3159
2376
  });
3160
- return retVal;
3161
- };
3162
- const de_MetricFilterMatchRecord = (output, context) => {
3163
- return {
3164
- eventMessage: (0, smithy_client_1.expectString)(output.eventMessage),
3165
- eventNumber: (0, smithy_client_1.expectLong)(output.eventNumber),
3166
- extractedValues: output.extractedValues != null ? de_ExtractedValues(output.extractedValues, context) : undefined,
3167
- };
3168
2377
  };
3169
2378
  const de_MetricFilters = (output, context) => {
3170
2379
  const retVal = (output || [])
3171
2380
  .filter((e) => e != null)
3172
2381
  .map((entry) => {
3173
- if (entry === null) {
3174
- return null;
3175
- }
3176
2382
  return de_MetricFilter(entry, context);
3177
2383
  });
3178
2384
  return retVal;
3179
2385
  };
3180
2386
  const de_MetricTransformation = (output, context) => {
3181
- return {
3182
- defaultValue: (0, smithy_client_1.limitedParseDouble)(output.defaultValue),
3183
- dimensions: output.dimensions != null ? de_Dimensions(output.dimensions, context) : undefined,
3184
- metricName: (0, smithy_client_1.expectString)(output.metricName),
3185
- metricNamespace: (0, smithy_client_1.expectString)(output.metricNamespace),
3186
- metricValue: (0, smithy_client_1.expectString)(output.metricValue),
3187
- unit: (0, smithy_client_1.expectString)(output.unit),
3188
- };
2387
+ return (0, smithy_client_1.take)(output, {
2388
+ defaultValue: smithy_client_1.limitedParseDouble,
2389
+ dimensions: smithy_client_1._json,
2390
+ metricName: smithy_client_1.expectString,
2391
+ metricNamespace: smithy_client_1.expectString,
2392
+ metricValue: smithy_client_1.expectString,
2393
+ unit: smithy_client_1.expectString,
2394
+ });
3189
2395
  };
3190
2396
  const de_MetricTransformations = (output, context) => {
3191
2397
  const retVal = (output || [])
3192
2398
  .filter((e) => e != null)
3193
2399
  .map((entry) => {
3194
- if (entry === null) {
3195
- return null;
3196
- }
3197
2400
  return de_MetricTransformation(entry, context);
3198
2401
  });
3199
2402
  return retVal;
3200
2403
  };
3201
- const de_OperationAbortedException = (output, context) => {
3202
- return {
3203
- message: (0, smithy_client_1.expectString)(output.message),
3204
- };
3205
- };
3206
- const de_OutputLogEvent = (output, context) => {
3207
- return {
3208
- ingestionTime: (0, smithy_client_1.expectLong)(output.ingestionTime),
3209
- message: (0, smithy_client_1.expectString)(output.message),
3210
- timestamp: (0, smithy_client_1.expectLong)(output.timestamp),
3211
- };
3212
- };
3213
- const de_OutputLogEvents = (output, context) => {
3214
- const retVal = (output || [])
3215
- .filter((e) => e != null)
3216
- .map((entry) => {
3217
- if (entry === null) {
3218
- return null;
3219
- }
3220
- return de_OutputLogEvent(entry, context);
3221
- });
3222
- return retVal;
3223
- };
3224
- const de_PutDataProtectionPolicyResponse = (output, context) => {
3225
- return {
3226
- lastUpdatedTime: (0, smithy_client_1.expectLong)(output.lastUpdatedTime),
3227
- logGroupIdentifier: (0, smithy_client_1.expectString)(output.logGroupIdentifier),
3228
- policyDocument: (0, smithy_client_1.expectString)(output.policyDocument),
3229
- };
3230
- };
3231
- const de_PutDestinationResponse = (output, context) => {
3232
- return {
3233
- destination: output.destination != null ? de_Destination(output.destination, context) : undefined,
3234
- };
3235
- };
3236
- const de_PutLogEventsResponse = (output, context) => {
3237
- return {
3238
- nextSequenceToken: (0, smithy_client_1.expectString)(output.nextSequenceToken),
3239
- rejectedLogEventsInfo: output.rejectedLogEventsInfo != null
3240
- ? de_RejectedLogEventsInfo(output.rejectedLogEventsInfo, context)
3241
- : undefined,
3242
- };
3243
- };
3244
- const de_PutQueryDefinitionResponse = (output, context) => {
3245
- return {
3246
- queryDefinitionId: (0, smithy_client_1.expectString)(output.queryDefinitionId),
3247
- };
3248
- };
3249
- const de_PutResourcePolicyResponse = (output, context) => {
3250
- return {
3251
- resourcePolicy: output.resourcePolicy != null ? de_ResourcePolicy(output.resourcePolicy, context) : undefined,
3252
- };
3253
- };
3254
- const de_QueryCompileError = (output, context) => {
3255
- return {
3256
- location: output.location != null ? de_QueryCompileErrorLocation(output.location, context) : undefined,
3257
- message: (0, smithy_client_1.expectString)(output.message),
3258
- };
3259
- };
3260
- const de_QueryCompileErrorLocation = (output, context) => {
3261
- return {
3262
- endCharOffset: (0, smithy_client_1.expectInt32)(output.endCharOffset),
3263
- startCharOffset: (0, smithy_client_1.expectInt32)(output.startCharOffset),
3264
- };
3265
- };
3266
- const de_QueryDefinition = (output, context) => {
3267
- return {
3268
- lastModified: (0, smithy_client_1.expectLong)(output.lastModified),
3269
- logGroupNames: output.logGroupNames != null ? de_LogGroupNames(output.logGroupNames, context) : undefined,
3270
- name: (0, smithy_client_1.expectString)(output.name),
3271
- queryDefinitionId: (0, smithy_client_1.expectString)(output.queryDefinitionId),
3272
- queryString: (0, smithy_client_1.expectString)(output.queryString),
3273
- };
3274
- };
3275
- const de_QueryDefinitionList = (output, context) => {
3276
- const retVal = (output || [])
3277
- .filter((e) => e != null)
3278
- .map((entry) => {
3279
- if (entry === null) {
3280
- return null;
3281
- }
3282
- return de_QueryDefinition(entry, context);
3283
- });
3284
- return retVal;
3285
- };
3286
- const de_QueryInfo = (output, context) => {
3287
- return {
3288
- createTime: (0, smithy_client_1.expectLong)(output.createTime),
3289
- logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
3290
- queryId: (0, smithy_client_1.expectString)(output.queryId),
3291
- queryString: (0, smithy_client_1.expectString)(output.queryString),
3292
- status: (0, smithy_client_1.expectString)(output.status),
3293
- };
3294
- };
3295
- const de_QueryInfoList = (output, context) => {
3296
- const retVal = (output || [])
3297
- .filter((e) => e != null)
3298
- .map((entry) => {
3299
- if (entry === null) {
3300
- return null;
3301
- }
3302
- return de_QueryInfo(entry, context);
3303
- });
3304
- return retVal;
3305
- };
3306
- const de_QueryResults = (output, context) => {
3307
- const retVal = (output || [])
3308
- .filter((e) => e != null)
3309
- .map((entry) => {
3310
- if (entry === null) {
3311
- return null;
3312
- }
3313
- return de_ResultRows(entry, context);
3314
- });
3315
- return retVal;
3316
- };
3317
2404
  const de_QueryStatistics = (output, context) => {
3318
- return {
3319
- bytesScanned: (0, smithy_client_1.limitedParseDouble)(output.bytesScanned),
3320
- recordsMatched: (0, smithy_client_1.limitedParseDouble)(output.recordsMatched),
3321
- recordsScanned: (0, smithy_client_1.limitedParseDouble)(output.recordsScanned),
3322
- };
3323
- };
3324
- const de_RejectedLogEventsInfo = (output, context) => {
3325
- return {
3326
- expiredLogEventEndIndex: (0, smithy_client_1.expectInt32)(output.expiredLogEventEndIndex),
3327
- tooNewLogEventStartIndex: (0, smithy_client_1.expectInt32)(output.tooNewLogEventStartIndex),
3328
- tooOldLogEventEndIndex: (0, smithy_client_1.expectInt32)(output.tooOldLogEventEndIndex),
3329
- };
3330
- };
3331
- const de_ResourceAlreadyExistsException = (output, context) => {
3332
- return {
3333
- message: (0, smithy_client_1.expectString)(output.message),
3334
- };
3335
- };
3336
- const de_ResourceNotFoundException = (output, context) => {
3337
- return {
3338
- message: (0, smithy_client_1.expectString)(output.message),
3339
- };
3340
- };
3341
- const de_ResourcePolicies = (output, context) => {
3342
- const retVal = (output || [])
3343
- .filter((e) => e != null)
3344
- .map((entry) => {
3345
- if (entry === null) {
3346
- return null;
3347
- }
3348
- return de_ResourcePolicy(entry, context);
3349
- });
3350
- return retVal;
3351
- };
3352
- const de_ResourcePolicy = (output, context) => {
3353
- return {
3354
- lastUpdatedTime: (0, smithy_client_1.expectLong)(output.lastUpdatedTime),
3355
- policyDocument: (0, smithy_client_1.expectString)(output.policyDocument),
3356
- policyName: (0, smithy_client_1.expectString)(output.policyName),
3357
- };
3358
- };
3359
- const de_ResultField = (output, context) => {
3360
- return {
3361
- field: (0, smithy_client_1.expectString)(output.field),
3362
- value: (0, smithy_client_1.expectString)(output.value),
3363
- };
3364
- };
3365
- const de_ResultRows = (output, context) => {
3366
- const retVal = (output || [])
3367
- .filter((e) => e != null)
3368
- .map((entry) => {
3369
- if (entry === null) {
3370
- return null;
3371
- }
3372
- return de_ResultField(entry, context);
3373
- });
3374
- return retVal;
3375
- };
3376
- const de_SearchedLogStream = (output, context) => {
3377
- return {
3378
- logStreamName: (0, smithy_client_1.expectString)(output.logStreamName),
3379
- searchedCompletely: (0, smithy_client_1.expectBoolean)(output.searchedCompletely),
3380
- };
3381
- };
3382
- const de_SearchedLogStreams = (output, context) => {
3383
- const retVal = (output || [])
3384
- .filter((e) => e != null)
3385
- .map((entry) => {
3386
- if (entry === null) {
3387
- return null;
3388
- }
3389
- return de_SearchedLogStream(entry, context);
3390
- });
3391
- return retVal;
3392
- };
3393
- const de_ServiceUnavailableException = (output, context) => {
3394
- return {
3395
- message: (0, smithy_client_1.expectString)(output.message),
3396
- };
3397
- };
3398
- const de_StartQueryResponse = (output, context) => {
3399
- return {
3400
- queryId: (0, smithy_client_1.expectString)(output.queryId),
3401
- };
3402
- };
3403
- const de_StopQueryResponse = (output, context) => {
3404
- return {
3405
- success: (0, smithy_client_1.expectBoolean)(output.success),
3406
- };
3407
- };
3408
- const de_SubscriptionFilter = (output, context) => {
3409
- return {
3410
- creationTime: (0, smithy_client_1.expectLong)(output.creationTime),
3411
- destinationArn: (0, smithy_client_1.expectString)(output.destinationArn),
3412
- distribution: (0, smithy_client_1.expectString)(output.distribution),
3413
- filterName: (0, smithy_client_1.expectString)(output.filterName),
3414
- filterPattern: (0, smithy_client_1.expectString)(output.filterPattern),
3415
- logGroupName: (0, smithy_client_1.expectString)(output.logGroupName),
3416
- roleArn: (0, smithy_client_1.expectString)(output.roleArn),
3417
- };
3418
- };
3419
- const de_SubscriptionFilters = (output, context) => {
3420
- const retVal = (output || [])
3421
- .filter((e) => e != null)
3422
- .map((entry) => {
3423
- if (entry === null) {
3424
- return null;
3425
- }
3426
- return de_SubscriptionFilter(entry, context);
2405
+ return (0, smithy_client_1.take)(output, {
2406
+ bytesScanned: smithy_client_1.limitedParseDouble,
2407
+ recordsMatched: smithy_client_1.limitedParseDouble,
2408
+ recordsScanned: smithy_client_1.limitedParseDouble,
3427
2409
  });
3428
- return retVal;
3429
- };
3430
- const de_Tags = (output, context) => {
3431
- return Object.entries(output).reduce((acc, [key, value]) => {
3432
- if (value === null) {
3433
- return acc;
3434
- }
3435
- acc[key] = (0, smithy_client_1.expectString)(value);
3436
- return acc;
3437
- }, {});
3438
- };
3439
- const de_TestMetricFilterResponse = (output, context) => {
3440
- return {
3441
- matches: output.matches != null ? de_MetricFilterMatches(output.matches, context) : undefined,
3442
- };
3443
- };
3444
- const de_TooManyTagsException = (output, context) => {
3445
- return {
3446
- message: (0, smithy_client_1.expectString)(output.message),
3447
- resourceName: (0, smithy_client_1.expectString)(output.resourceName),
3448
- };
3449
- };
3450
- const de_UnrecognizedClientException = (output, context) => {
3451
- return {
3452
- message: (0, smithy_client_1.expectString)(output.message),
3453
- };
3454
2410
  };
3455
2411
  const deserializeMetadata = (output) => ({
3456
2412
  httpStatusCode: output.statusCode,
@@ -3465,6 +2421,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
3465
2421
  return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
3466
2422
  };
3467
2423
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
2424
+ const throwDefaultError = (0, smithy_client_1.withBaseException)(CloudWatchLogsServiceException_1.CloudWatchLogsServiceException);
3468
2425
  const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
3469
2426
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
3470
2427
  const contents = {