@aws-sdk/client-cloudwatch-logs 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +219 -1262
- package/dist-es/protocols/Aws_json1_1.js +220 -1263
- package/package.json +6 -6
|
@@ -1,221 +1,221 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CloudWatchLogsServiceException as __BaseException } from "../models/CloudWatchLogsServiceException";
|
|
4
4
|
import { DataAlreadyAcceptedException, InvalidOperationException, InvalidParameterException, InvalidSequenceTokenException, LimitExceededException, MalformedQueryException, OperationAbortedException, ResourceAlreadyExistsException, ResourceNotFoundException, ServiceUnavailableException, TooManyTagsException, UnrecognizedClientException, } from "../models/models_0";
|
|
5
5
|
export const se_AssociateKmsKeyCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("AssociateKmsKey");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_CancelExportTaskCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("CancelExportTask");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_CreateExportTaskCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("CreateExportTask");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_CreateLogGroupCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("CreateLogGroup");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_CreateLogStreamCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("CreateLogStream");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_DeleteDataProtectionPolicyCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("DeleteDataProtectionPolicy");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_DeleteDestinationCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("DeleteDestination");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_DeleteLogGroupCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("DeleteLogGroup");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_DeleteLogStreamCommand = async (input, context) => {
|
|
54
54
|
const headers = sharedHeaders("DeleteLogStream");
|
|
55
55
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
56
|
+
body = JSON.stringify(_json(input));
|
|
57
57
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
58
|
};
|
|
59
59
|
export const se_DeleteMetricFilterCommand = async (input, context) => {
|
|
60
60
|
const headers = sharedHeaders("DeleteMetricFilter");
|
|
61
61
|
let body;
|
|
62
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify(_json(input));
|
|
63
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
64
|
};
|
|
65
65
|
export const se_DeleteQueryDefinitionCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("DeleteQueryDefinition");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_DeleteRetentionPolicyCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("DeleteRetentionPolicy");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const se_DeleteSubscriptionFilterCommand = async (input, context) => {
|
|
84
84
|
const headers = sharedHeaders("DeleteSubscriptionFilter");
|
|
85
85
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
86
|
+
body = JSON.stringify(_json(input));
|
|
87
87
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
88
|
};
|
|
89
89
|
export const se_DescribeDestinationsCommand = async (input, context) => {
|
|
90
90
|
const headers = sharedHeaders("DescribeDestinations");
|
|
91
91
|
let body;
|
|
92
|
-
body = JSON.stringify(
|
|
92
|
+
body = JSON.stringify(_json(input));
|
|
93
93
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
94
|
};
|
|
95
95
|
export const se_DescribeExportTasksCommand = async (input, context) => {
|
|
96
96
|
const headers = sharedHeaders("DescribeExportTasks");
|
|
97
97
|
let body;
|
|
98
|
-
body = JSON.stringify(
|
|
98
|
+
body = JSON.stringify(_json(input));
|
|
99
99
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
100
100
|
};
|
|
101
101
|
export const se_DescribeLogGroupsCommand = async (input, context) => {
|
|
102
102
|
const headers = sharedHeaders("DescribeLogGroups");
|
|
103
103
|
let body;
|
|
104
|
-
body = JSON.stringify(
|
|
104
|
+
body = JSON.stringify(_json(input));
|
|
105
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
106
|
};
|
|
107
107
|
export const se_DescribeLogStreamsCommand = async (input, context) => {
|
|
108
108
|
const headers = sharedHeaders("DescribeLogStreams");
|
|
109
109
|
let body;
|
|
110
|
-
body = JSON.stringify(
|
|
110
|
+
body = JSON.stringify(_json(input));
|
|
111
111
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
112
|
};
|
|
113
113
|
export const se_DescribeMetricFiltersCommand = async (input, context) => {
|
|
114
114
|
const headers = sharedHeaders("DescribeMetricFilters");
|
|
115
115
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
116
|
+
body = JSON.stringify(_json(input));
|
|
117
117
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
118
|
};
|
|
119
119
|
export const se_DescribeQueriesCommand = async (input, context) => {
|
|
120
120
|
const headers = sharedHeaders("DescribeQueries");
|
|
121
121
|
let body;
|
|
122
|
-
body = JSON.stringify(
|
|
122
|
+
body = JSON.stringify(_json(input));
|
|
123
123
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
124
|
};
|
|
125
125
|
export const se_DescribeQueryDefinitionsCommand = async (input, context) => {
|
|
126
126
|
const headers = sharedHeaders("DescribeQueryDefinitions");
|
|
127
127
|
let body;
|
|
128
|
-
body = JSON.stringify(
|
|
128
|
+
body = JSON.stringify(_json(input));
|
|
129
129
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
130
130
|
};
|
|
131
131
|
export const se_DescribeResourcePoliciesCommand = async (input, context) => {
|
|
132
132
|
const headers = sharedHeaders("DescribeResourcePolicies");
|
|
133
133
|
let body;
|
|
134
|
-
body = JSON.stringify(
|
|
134
|
+
body = JSON.stringify(_json(input));
|
|
135
135
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
136
136
|
};
|
|
137
137
|
export const se_DescribeSubscriptionFiltersCommand = async (input, context) => {
|
|
138
138
|
const headers = sharedHeaders("DescribeSubscriptionFilters");
|
|
139
139
|
let body;
|
|
140
|
-
body = JSON.stringify(
|
|
140
|
+
body = JSON.stringify(_json(input));
|
|
141
141
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
142
142
|
};
|
|
143
143
|
export const se_DisassociateKmsKeyCommand = async (input, context) => {
|
|
144
144
|
const headers = sharedHeaders("DisassociateKmsKey");
|
|
145
145
|
let body;
|
|
146
|
-
body = JSON.stringify(
|
|
146
|
+
body = JSON.stringify(_json(input));
|
|
147
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
148
|
};
|
|
149
149
|
export const se_FilterLogEventsCommand = async (input, context) => {
|
|
150
150
|
const headers = sharedHeaders("FilterLogEvents");
|
|
151
151
|
let body;
|
|
152
|
-
body = JSON.stringify(
|
|
152
|
+
body = JSON.stringify(_json(input));
|
|
153
153
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
154
|
};
|
|
155
155
|
export const se_GetDataProtectionPolicyCommand = async (input, context) => {
|
|
156
156
|
const headers = sharedHeaders("GetDataProtectionPolicy");
|
|
157
157
|
let body;
|
|
158
|
-
body = JSON.stringify(
|
|
158
|
+
body = JSON.stringify(_json(input));
|
|
159
159
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
160
|
};
|
|
161
161
|
export const se_GetLogEventsCommand = async (input, context) => {
|
|
162
162
|
const headers = sharedHeaders("GetLogEvents");
|
|
163
163
|
let body;
|
|
164
|
-
body = JSON.stringify(
|
|
164
|
+
body = JSON.stringify(_json(input));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
167
|
export const se_GetLogGroupFieldsCommand = async (input, context) => {
|
|
168
168
|
const headers = sharedHeaders("GetLogGroupFields");
|
|
169
169
|
let body;
|
|
170
|
-
body = JSON.stringify(
|
|
170
|
+
body = JSON.stringify(_json(input));
|
|
171
171
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
172
172
|
};
|
|
173
173
|
export const se_GetLogRecordCommand = async (input, context) => {
|
|
174
174
|
const headers = sharedHeaders("GetLogRecord");
|
|
175
175
|
let body;
|
|
176
|
-
body = JSON.stringify(
|
|
176
|
+
body = JSON.stringify(_json(input));
|
|
177
177
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
178
|
};
|
|
179
179
|
export const se_GetQueryResultsCommand = async (input, context) => {
|
|
180
180
|
const headers = sharedHeaders("GetQueryResults");
|
|
181
181
|
let body;
|
|
182
|
-
body = JSON.stringify(
|
|
182
|
+
body = JSON.stringify(_json(input));
|
|
183
183
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
184
184
|
};
|
|
185
185
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
186
186
|
const headers = sharedHeaders("ListTagsForResource");
|
|
187
187
|
let body;
|
|
188
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify(_json(input));
|
|
189
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
190
|
};
|
|
191
191
|
export const se_ListTagsLogGroupCommand = async (input, context) => {
|
|
192
192
|
const headers = sharedHeaders("ListTagsLogGroup");
|
|
193
193
|
let body;
|
|
194
|
-
body = JSON.stringify(
|
|
194
|
+
body = JSON.stringify(_json(input));
|
|
195
195
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
196
|
};
|
|
197
197
|
export const se_PutDataProtectionPolicyCommand = async (input, context) => {
|
|
198
198
|
const headers = sharedHeaders("PutDataProtectionPolicy");
|
|
199
199
|
let body;
|
|
200
|
-
body = JSON.stringify(
|
|
200
|
+
body = JSON.stringify(_json(input));
|
|
201
201
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
202
202
|
};
|
|
203
203
|
export const se_PutDestinationCommand = async (input, context) => {
|
|
204
204
|
const headers = sharedHeaders("PutDestination");
|
|
205
205
|
let body;
|
|
206
|
-
body = JSON.stringify(
|
|
206
|
+
body = JSON.stringify(_json(input));
|
|
207
207
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
208
|
};
|
|
209
209
|
export const se_PutDestinationPolicyCommand = async (input, context) => {
|
|
210
210
|
const headers = sharedHeaders("PutDestinationPolicy");
|
|
211
211
|
let body;
|
|
212
|
-
body = JSON.stringify(
|
|
212
|
+
body = JSON.stringify(_json(input));
|
|
213
213
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
214
214
|
};
|
|
215
215
|
export const se_PutLogEventsCommand = async (input, context) => {
|
|
216
216
|
const headers = sharedHeaders("PutLogEvents");
|
|
217
217
|
let body;
|
|
218
|
-
body = JSON.stringify(
|
|
218
|
+
body = JSON.stringify(_json(input));
|
|
219
219
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
220
|
};
|
|
221
221
|
export const se_PutMetricFilterCommand = async (input, context) => {
|
|
@@ -227,67 +227,67 @@ export const se_PutMetricFilterCommand = async (input, context) => {
|
|
|
227
227
|
export const se_PutQueryDefinitionCommand = async (input, context) => {
|
|
228
228
|
const headers = sharedHeaders("PutQueryDefinition");
|
|
229
229
|
let body;
|
|
230
|
-
body = JSON.stringify(
|
|
230
|
+
body = JSON.stringify(_json(input));
|
|
231
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
232
232
|
};
|
|
233
233
|
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
234
234
|
const headers = sharedHeaders("PutResourcePolicy");
|
|
235
235
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
236
|
+
body = JSON.stringify(_json(input));
|
|
237
237
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
238
|
};
|
|
239
239
|
export const se_PutRetentionPolicyCommand = async (input, context) => {
|
|
240
240
|
const headers = sharedHeaders("PutRetentionPolicy");
|
|
241
241
|
let body;
|
|
242
|
-
body = JSON.stringify(
|
|
242
|
+
body = JSON.stringify(_json(input));
|
|
243
243
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
244
244
|
};
|
|
245
245
|
export const se_PutSubscriptionFilterCommand = async (input, context) => {
|
|
246
246
|
const headers = sharedHeaders("PutSubscriptionFilter");
|
|
247
247
|
let body;
|
|
248
|
-
body = JSON.stringify(
|
|
248
|
+
body = JSON.stringify(_json(input));
|
|
249
249
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
250
250
|
};
|
|
251
251
|
export const se_StartQueryCommand = async (input, context) => {
|
|
252
252
|
const headers = sharedHeaders("StartQuery");
|
|
253
253
|
let body;
|
|
254
|
-
body = JSON.stringify(
|
|
254
|
+
body = JSON.stringify(_json(input));
|
|
255
255
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
256
|
};
|
|
257
257
|
export const se_StopQueryCommand = async (input, context) => {
|
|
258
258
|
const headers = sharedHeaders("StopQuery");
|
|
259
259
|
let body;
|
|
260
|
-
body = JSON.stringify(
|
|
260
|
+
body = JSON.stringify(_json(input));
|
|
261
261
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
262
262
|
};
|
|
263
263
|
export const se_TagLogGroupCommand = async (input, context) => {
|
|
264
264
|
const headers = sharedHeaders("TagLogGroup");
|
|
265
265
|
let body;
|
|
266
|
-
body = JSON.stringify(
|
|
266
|
+
body = JSON.stringify(_json(input));
|
|
267
267
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
268
|
};
|
|
269
269
|
export const se_TagResourceCommand = async (input, context) => {
|
|
270
270
|
const headers = sharedHeaders("TagResource");
|
|
271
271
|
let body;
|
|
272
|
-
body = JSON.stringify(
|
|
272
|
+
body = JSON.stringify(_json(input));
|
|
273
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
274
|
};
|
|
275
275
|
export const se_TestMetricFilterCommand = async (input, context) => {
|
|
276
276
|
const headers = sharedHeaders("TestMetricFilter");
|
|
277
277
|
let body;
|
|
278
|
-
body = JSON.stringify(
|
|
278
|
+
body = JSON.stringify(_json(input));
|
|
279
279
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
280
280
|
};
|
|
281
281
|
export const se_UntagLogGroupCommand = async (input, context) => {
|
|
282
282
|
const headers = sharedHeaders("UntagLogGroup");
|
|
283
283
|
let body;
|
|
284
|
-
body = JSON.stringify(
|
|
284
|
+
body = JSON.stringify(_json(input));
|
|
285
285
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
286
286
|
};
|
|
287
287
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
288
288
|
const headers = sharedHeaders("UntagResource");
|
|
289
289
|
let body;
|
|
290
|
-
body = JSON.stringify(
|
|
290
|
+
body = JSON.stringify(_json(input));
|
|
291
291
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
292
292
|
};
|
|
293
293
|
export const de_AssociateKmsKeyCommand = async (output, context) => {
|
|
@@ -298,7 +298,7 @@ export const de_AssociateKmsKeyCommand = async (output, context) => {
|
|
|
298
298
|
const response = {
|
|
299
299
|
$metadata: deserializeMetadata(output),
|
|
300
300
|
};
|
|
301
|
-
return
|
|
301
|
+
return response;
|
|
302
302
|
};
|
|
303
303
|
const de_AssociateKmsKeyCommandError = async (output, context) => {
|
|
304
304
|
const parsedOutput = {
|
|
@@ -321,10 +321,9 @@ const de_AssociateKmsKeyCommandError = async (output, context) => {
|
|
|
321
321
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
322
322
|
default:
|
|
323
323
|
const parsedBody = parsedOutput.body;
|
|
324
|
-
throwDefaultError({
|
|
324
|
+
return throwDefaultError({
|
|
325
325
|
output,
|
|
326
326
|
parsedBody,
|
|
327
|
-
exceptionCtor: __BaseException,
|
|
328
327
|
errorCode,
|
|
329
328
|
});
|
|
330
329
|
}
|
|
@@ -337,7 +336,7 @@ export const de_CancelExportTaskCommand = async (output, context) => {
|
|
|
337
336
|
const response = {
|
|
338
337
|
$metadata: deserializeMetadata(output),
|
|
339
338
|
};
|
|
340
|
-
return
|
|
339
|
+
return response;
|
|
341
340
|
};
|
|
342
341
|
const de_CancelExportTaskCommandError = async (output, context) => {
|
|
343
342
|
const parsedOutput = {
|
|
@@ -360,10 +359,9 @@ const de_CancelExportTaskCommandError = async (output, context) => {
|
|
|
360
359
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
361
360
|
default:
|
|
362
361
|
const parsedBody = parsedOutput.body;
|
|
363
|
-
throwDefaultError({
|
|
362
|
+
return throwDefaultError({
|
|
364
363
|
output,
|
|
365
364
|
parsedBody,
|
|
366
|
-
exceptionCtor: __BaseException,
|
|
367
365
|
errorCode,
|
|
368
366
|
});
|
|
369
367
|
}
|
|
@@ -374,12 +372,12 @@ export const de_CreateExportTaskCommand = async (output, context) => {
|
|
|
374
372
|
}
|
|
375
373
|
const data = await parseBody(output.body, context);
|
|
376
374
|
let contents = {};
|
|
377
|
-
contents =
|
|
375
|
+
contents = _json(data);
|
|
378
376
|
const response = {
|
|
379
377
|
$metadata: deserializeMetadata(output),
|
|
380
378
|
...contents,
|
|
381
379
|
};
|
|
382
|
-
return
|
|
380
|
+
return response;
|
|
383
381
|
};
|
|
384
382
|
const de_CreateExportTaskCommandError = async (output, context) => {
|
|
385
383
|
const parsedOutput = {
|
|
@@ -408,10 +406,9 @@ const de_CreateExportTaskCommandError = async (output, context) => {
|
|
|
408
406
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
409
407
|
default:
|
|
410
408
|
const parsedBody = parsedOutput.body;
|
|
411
|
-
throwDefaultError({
|
|
409
|
+
return throwDefaultError({
|
|
412
410
|
output,
|
|
413
411
|
parsedBody,
|
|
414
|
-
exceptionCtor: __BaseException,
|
|
415
412
|
errorCode,
|
|
416
413
|
});
|
|
417
414
|
}
|
|
@@ -424,7 +421,7 @@ export const de_CreateLogGroupCommand = async (output, context) => {
|
|
|
424
421
|
const response = {
|
|
425
422
|
$metadata: deserializeMetadata(output),
|
|
426
423
|
};
|
|
427
|
-
return
|
|
424
|
+
return response;
|
|
428
425
|
};
|
|
429
426
|
const de_CreateLogGroupCommandError = async (output, context) => {
|
|
430
427
|
const parsedOutput = {
|
|
@@ -450,10 +447,9 @@ const de_CreateLogGroupCommandError = async (output, context) => {
|
|
|
450
447
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
451
448
|
default:
|
|
452
449
|
const parsedBody = parsedOutput.body;
|
|
453
|
-
throwDefaultError({
|
|
450
|
+
return throwDefaultError({
|
|
454
451
|
output,
|
|
455
452
|
parsedBody,
|
|
456
|
-
exceptionCtor: __BaseException,
|
|
457
453
|
errorCode,
|
|
458
454
|
});
|
|
459
455
|
}
|
|
@@ -466,7 +462,7 @@ export const de_CreateLogStreamCommand = async (output, context) => {
|
|
|
466
462
|
const response = {
|
|
467
463
|
$metadata: deserializeMetadata(output),
|
|
468
464
|
};
|
|
469
|
-
return
|
|
465
|
+
return response;
|
|
470
466
|
};
|
|
471
467
|
const de_CreateLogStreamCommandError = async (output, context) => {
|
|
472
468
|
const parsedOutput = {
|
|
@@ -489,10 +485,9 @@ const de_CreateLogStreamCommandError = async (output, context) => {
|
|
|
489
485
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
490
486
|
default:
|
|
491
487
|
const parsedBody = parsedOutput.body;
|
|
492
|
-
throwDefaultError({
|
|
488
|
+
return throwDefaultError({
|
|
493
489
|
output,
|
|
494
490
|
parsedBody,
|
|
495
|
-
exceptionCtor: __BaseException,
|
|
496
491
|
errorCode,
|
|
497
492
|
});
|
|
498
493
|
}
|
|
@@ -505,7 +500,7 @@ export const de_DeleteDataProtectionPolicyCommand = async (output, context) => {
|
|
|
505
500
|
const response = {
|
|
506
501
|
$metadata: deserializeMetadata(output),
|
|
507
502
|
};
|
|
508
|
-
return
|
|
503
|
+
return response;
|
|
509
504
|
};
|
|
510
505
|
const de_DeleteDataProtectionPolicyCommandError = async (output, context) => {
|
|
511
506
|
const parsedOutput = {
|
|
@@ -528,10 +523,9 @@ const de_DeleteDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
528
523
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
529
524
|
default:
|
|
530
525
|
const parsedBody = parsedOutput.body;
|
|
531
|
-
throwDefaultError({
|
|
526
|
+
return throwDefaultError({
|
|
532
527
|
output,
|
|
533
528
|
parsedBody,
|
|
534
|
-
exceptionCtor: __BaseException,
|
|
535
529
|
errorCode,
|
|
536
530
|
});
|
|
537
531
|
}
|
|
@@ -544,7 +538,7 @@ export const de_DeleteDestinationCommand = async (output, context) => {
|
|
|
544
538
|
const response = {
|
|
545
539
|
$metadata: deserializeMetadata(output),
|
|
546
540
|
};
|
|
547
|
-
return
|
|
541
|
+
return response;
|
|
548
542
|
};
|
|
549
543
|
const de_DeleteDestinationCommandError = async (output, context) => {
|
|
550
544
|
const parsedOutput = {
|
|
@@ -567,10 +561,9 @@ const de_DeleteDestinationCommandError = async (output, context) => {
|
|
|
567
561
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
568
562
|
default:
|
|
569
563
|
const parsedBody = parsedOutput.body;
|
|
570
|
-
throwDefaultError({
|
|
564
|
+
return throwDefaultError({
|
|
571
565
|
output,
|
|
572
566
|
parsedBody,
|
|
573
|
-
exceptionCtor: __BaseException,
|
|
574
567
|
errorCode,
|
|
575
568
|
});
|
|
576
569
|
}
|
|
@@ -583,7 +576,7 @@ export const de_DeleteLogGroupCommand = async (output, context) => {
|
|
|
583
576
|
const response = {
|
|
584
577
|
$metadata: deserializeMetadata(output),
|
|
585
578
|
};
|
|
586
|
-
return
|
|
579
|
+
return response;
|
|
587
580
|
};
|
|
588
581
|
const de_DeleteLogGroupCommandError = async (output, context) => {
|
|
589
582
|
const parsedOutput = {
|
|
@@ -606,10 +599,9 @@ const de_DeleteLogGroupCommandError = async (output, context) => {
|
|
|
606
599
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
607
600
|
default:
|
|
608
601
|
const parsedBody = parsedOutput.body;
|
|
609
|
-
throwDefaultError({
|
|
602
|
+
return throwDefaultError({
|
|
610
603
|
output,
|
|
611
604
|
parsedBody,
|
|
612
|
-
exceptionCtor: __BaseException,
|
|
613
605
|
errorCode,
|
|
614
606
|
});
|
|
615
607
|
}
|
|
@@ -622,7 +614,7 @@ export const de_DeleteLogStreamCommand = async (output, context) => {
|
|
|
622
614
|
const response = {
|
|
623
615
|
$metadata: deserializeMetadata(output),
|
|
624
616
|
};
|
|
625
|
-
return
|
|
617
|
+
return response;
|
|
626
618
|
};
|
|
627
619
|
const de_DeleteLogStreamCommandError = async (output, context) => {
|
|
628
620
|
const parsedOutput = {
|
|
@@ -645,10 +637,9 @@ const de_DeleteLogStreamCommandError = async (output, context) => {
|
|
|
645
637
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
646
638
|
default:
|
|
647
639
|
const parsedBody = parsedOutput.body;
|
|
648
|
-
throwDefaultError({
|
|
640
|
+
return throwDefaultError({
|
|
649
641
|
output,
|
|
650
642
|
parsedBody,
|
|
651
|
-
exceptionCtor: __BaseException,
|
|
652
643
|
errorCode,
|
|
653
644
|
});
|
|
654
645
|
}
|
|
@@ -661,7 +652,7 @@ export const de_DeleteMetricFilterCommand = async (output, context) => {
|
|
|
661
652
|
const response = {
|
|
662
653
|
$metadata: deserializeMetadata(output),
|
|
663
654
|
};
|
|
664
|
-
return
|
|
655
|
+
return response;
|
|
665
656
|
};
|
|
666
657
|
const de_DeleteMetricFilterCommandError = async (output, context) => {
|
|
667
658
|
const parsedOutput = {
|
|
@@ -684,10 +675,9 @@ const de_DeleteMetricFilterCommandError = async (output, context) => {
|
|
|
684
675
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
685
676
|
default:
|
|
686
677
|
const parsedBody = parsedOutput.body;
|
|
687
|
-
throwDefaultError({
|
|
678
|
+
return throwDefaultError({
|
|
688
679
|
output,
|
|
689
680
|
parsedBody,
|
|
690
|
-
exceptionCtor: __BaseException,
|
|
691
681
|
errorCode,
|
|
692
682
|
});
|
|
693
683
|
}
|
|
@@ -698,12 +688,12 @@ export const de_DeleteQueryDefinitionCommand = async (output, context) => {
|
|
|
698
688
|
}
|
|
699
689
|
const data = await parseBody(output.body, context);
|
|
700
690
|
let contents = {};
|
|
701
|
-
contents =
|
|
691
|
+
contents = _json(data);
|
|
702
692
|
const response = {
|
|
703
693
|
$metadata: deserializeMetadata(output),
|
|
704
694
|
...contents,
|
|
705
695
|
};
|
|
706
|
-
return
|
|
696
|
+
return response;
|
|
707
697
|
};
|
|
708
698
|
const de_DeleteQueryDefinitionCommandError = async (output, context) => {
|
|
709
699
|
const parsedOutput = {
|
|
@@ -723,10 +713,9 @@ const de_DeleteQueryDefinitionCommandError = async (output, context) => {
|
|
|
723
713
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
724
714
|
default:
|
|
725
715
|
const parsedBody = parsedOutput.body;
|
|
726
|
-
throwDefaultError({
|
|
716
|
+
return throwDefaultError({
|
|
727
717
|
output,
|
|
728
718
|
parsedBody,
|
|
729
|
-
exceptionCtor: __BaseException,
|
|
730
719
|
errorCode,
|
|
731
720
|
});
|
|
732
721
|
}
|
|
@@ -739,7 +728,7 @@ export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
|
739
728
|
const response = {
|
|
740
729
|
$metadata: deserializeMetadata(output),
|
|
741
730
|
};
|
|
742
|
-
return
|
|
731
|
+
return response;
|
|
743
732
|
};
|
|
744
733
|
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
745
734
|
const parsedOutput = {
|
|
@@ -759,10 +748,9 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
759
748
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
760
749
|
default:
|
|
761
750
|
const parsedBody = parsedOutput.body;
|
|
762
|
-
throwDefaultError({
|
|
751
|
+
return throwDefaultError({
|
|
763
752
|
output,
|
|
764
753
|
parsedBody,
|
|
765
|
-
exceptionCtor: __BaseException,
|
|
766
754
|
errorCode,
|
|
767
755
|
});
|
|
768
756
|
}
|
|
@@ -775,7 +763,7 @@ export const de_DeleteRetentionPolicyCommand = async (output, context) => {
|
|
|
775
763
|
const response = {
|
|
776
764
|
$metadata: deserializeMetadata(output),
|
|
777
765
|
};
|
|
778
|
-
return
|
|
766
|
+
return response;
|
|
779
767
|
};
|
|
780
768
|
const de_DeleteRetentionPolicyCommandError = async (output, context) => {
|
|
781
769
|
const parsedOutput = {
|
|
@@ -798,10 +786,9 @@ const de_DeleteRetentionPolicyCommandError = async (output, context) => {
|
|
|
798
786
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
799
787
|
default:
|
|
800
788
|
const parsedBody = parsedOutput.body;
|
|
801
|
-
throwDefaultError({
|
|
789
|
+
return throwDefaultError({
|
|
802
790
|
output,
|
|
803
791
|
parsedBody,
|
|
804
|
-
exceptionCtor: __BaseException,
|
|
805
792
|
errorCode,
|
|
806
793
|
});
|
|
807
794
|
}
|
|
@@ -814,7 +801,7 @@ export const de_DeleteSubscriptionFilterCommand = async (output, context) => {
|
|
|
814
801
|
const response = {
|
|
815
802
|
$metadata: deserializeMetadata(output),
|
|
816
803
|
};
|
|
817
|
-
return
|
|
804
|
+
return response;
|
|
818
805
|
};
|
|
819
806
|
const de_DeleteSubscriptionFilterCommandError = async (output, context) => {
|
|
820
807
|
const parsedOutput = {
|
|
@@ -837,10 +824,9 @@ const de_DeleteSubscriptionFilterCommandError = async (output, context) => {
|
|
|
837
824
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
838
825
|
default:
|
|
839
826
|
const parsedBody = parsedOutput.body;
|
|
840
|
-
throwDefaultError({
|
|
827
|
+
return throwDefaultError({
|
|
841
828
|
output,
|
|
842
829
|
parsedBody,
|
|
843
|
-
exceptionCtor: __BaseException,
|
|
844
830
|
errorCode,
|
|
845
831
|
});
|
|
846
832
|
}
|
|
@@ -851,12 +837,12 @@ export const de_DescribeDestinationsCommand = async (output, context) => {
|
|
|
851
837
|
}
|
|
852
838
|
const data = await parseBody(output.body, context);
|
|
853
839
|
let contents = {};
|
|
854
|
-
contents =
|
|
840
|
+
contents = _json(data);
|
|
855
841
|
const response = {
|
|
856
842
|
$metadata: deserializeMetadata(output),
|
|
857
843
|
...contents,
|
|
858
844
|
};
|
|
859
|
-
return
|
|
845
|
+
return response;
|
|
860
846
|
};
|
|
861
847
|
const de_DescribeDestinationsCommandError = async (output, context) => {
|
|
862
848
|
const parsedOutput = {
|
|
@@ -873,10 +859,9 @@ const de_DescribeDestinationsCommandError = async (output, context) => {
|
|
|
873
859
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
874
860
|
default:
|
|
875
861
|
const parsedBody = parsedOutput.body;
|
|
876
|
-
throwDefaultError({
|
|
862
|
+
return throwDefaultError({
|
|
877
863
|
output,
|
|
878
864
|
parsedBody,
|
|
879
|
-
exceptionCtor: __BaseException,
|
|
880
865
|
errorCode,
|
|
881
866
|
});
|
|
882
867
|
}
|
|
@@ -887,12 +872,12 @@ export const de_DescribeExportTasksCommand = async (output, context) => {
|
|
|
887
872
|
}
|
|
888
873
|
const data = await parseBody(output.body, context);
|
|
889
874
|
let contents = {};
|
|
890
|
-
contents =
|
|
875
|
+
contents = _json(data);
|
|
891
876
|
const response = {
|
|
892
877
|
$metadata: deserializeMetadata(output),
|
|
893
878
|
...contents,
|
|
894
879
|
};
|
|
895
|
-
return
|
|
880
|
+
return response;
|
|
896
881
|
};
|
|
897
882
|
const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
898
883
|
const parsedOutput = {
|
|
@@ -909,10 +894,9 @@ const de_DescribeExportTasksCommandError = async (output, context) => {
|
|
|
909
894
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
910
895
|
default:
|
|
911
896
|
const parsedBody = parsedOutput.body;
|
|
912
|
-
throwDefaultError({
|
|
897
|
+
return throwDefaultError({
|
|
913
898
|
output,
|
|
914
899
|
parsedBody,
|
|
915
|
-
exceptionCtor: __BaseException,
|
|
916
900
|
errorCode,
|
|
917
901
|
});
|
|
918
902
|
}
|
|
@@ -923,12 +907,12 @@ export const de_DescribeLogGroupsCommand = async (output, context) => {
|
|
|
923
907
|
}
|
|
924
908
|
const data = await parseBody(output.body, context);
|
|
925
909
|
let contents = {};
|
|
926
|
-
contents =
|
|
910
|
+
contents = _json(data);
|
|
927
911
|
const response = {
|
|
928
912
|
$metadata: deserializeMetadata(output),
|
|
929
913
|
...contents,
|
|
930
914
|
};
|
|
931
|
-
return
|
|
915
|
+
return response;
|
|
932
916
|
};
|
|
933
917
|
const de_DescribeLogGroupsCommandError = async (output, context) => {
|
|
934
918
|
const parsedOutput = {
|
|
@@ -945,10 +929,9 @@ const de_DescribeLogGroupsCommandError = async (output, context) => {
|
|
|
945
929
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
946
930
|
default:
|
|
947
931
|
const parsedBody = parsedOutput.body;
|
|
948
|
-
throwDefaultError({
|
|
932
|
+
return throwDefaultError({
|
|
949
933
|
output,
|
|
950
934
|
parsedBody,
|
|
951
|
-
exceptionCtor: __BaseException,
|
|
952
935
|
errorCode,
|
|
953
936
|
});
|
|
954
937
|
}
|
|
@@ -959,12 +942,12 @@ export const de_DescribeLogStreamsCommand = async (output, context) => {
|
|
|
959
942
|
}
|
|
960
943
|
const data = await parseBody(output.body, context);
|
|
961
944
|
let contents = {};
|
|
962
|
-
contents =
|
|
945
|
+
contents = _json(data);
|
|
963
946
|
const response = {
|
|
964
947
|
$metadata: deserializeMetadata(output),
|
|
965
948
|
...contents,
|
|
966
949
|
};
|
|
967
|
-
return
|
|
950
|
+
return response;
|
|
968
951
|
};
|
|
969
952
|
const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
970
953
|
const parsedOutput = {
|
|
@@ -984,10 +967,9 @@ const de_DescribeLogStreamsCommandError = async (output, context) => {
|
|
|
984
967
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
985
968
|
default:
|
|
986
969
|
const parsedBody = parsedOutput.body;
|
|
987
|
-
throwDefaultError({
|
|
970
|
+
return throwDefaultError({
|
|
988
971
|
output,
|
|
989
972
|
parsedBody,
|
|
990
|
-
exceptionCtor: __BaseException,
|
|
991
973
|
errorCode,
|
|
992
974
|
});
|
|
993
975
|
}
|
|
@@ -1003,7 +985,7 @@ export const de_DescribeMetricFiltersCommand = async (output, context) => {
|
|
|
1003
985
|
$metadata: deserializeMetadata(output),
|
|
1004
986
|
...contents,
|
|
1005
987
|
};
|
|
1006
|
-
return
|
|
988
|
+
return response;
|
|
1007
989
|
};
|
|
1008
990
|
const de_DescribeMetricFiltersCommandError = async (output, context) => {
|
|
1009
991
|
const parsedOutput = {
|
|
@@ -1023,10 +1005,9 @@ const de_DescribeMetricFiltersCommandError = async (output, context) => {
|
|
|
1023
1005
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1024
1006
|
default:
|
|
1025
1007
|
const parsedBody = parsedOutput.body;
|
|
1026
|
-
throwDefaultError({
|
|
1008
|
+
return throwDefaultError({
|
|
1027
1009
|
output,
|
|
1028
1010
|
parsedBody,
|
|
1029
|
-
exceptionCtor: __BaseException,
|
|
1030
1011
|
errorCode,
|
|
1031
1012
|
});
|
|
1032
1013
|
}
|
|
@@ -1037,12 +1018,12 @@ export const de_DescribeQueriesCommand = async (output, context) => {
|
|
|
1037
1018
|
}
|
|
1038
1019
|
const data = await parseBody(output.body, context);
|
|
1039
1020
|
let contents = {};
|
|
1040
|
-
contents =
|
|
1021
|
+
contents = _json(data);
|
|
1041
1022
|
const response = {
|
|
1042
1023
|
$metadata: deserializeMetadata(output),
|
|
1043
1024
|
...contents,
|
|
1044
1025
|
};
|
|
1045
|
-
return
|
|
1026
|
+
return response;
|
|
1046
1027
|
};
|
|
1047
1028
|
const de_DescribeQueriesCommandError = async (output, context) => {
|
|
1048
1029
|
const parsedOutput = {
|
|
@@ -1062,10 +1043,9 @@ const de_DescribeQueriesCommandError = async (output, context) => {
|
|
|
1062
1043
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1063
1044
|
default:
|
|
1064
1045
|
const parsedBody = parsedOutput.body;
|
|
1065
|
-
throwDefaultError({
|
|
1046
|
+
return throwDefaultError({
|
|
1066
1047
|
output,
|
|
1067
1048
|
parsedBody,
|
|
1068
|
-
exceptionCtor: __BaseException,
|
|
1069
1049
|
errorCode,
|
|
1070
1050
|
});
|
|
1071
1051
|
}
|
|
@@ -1076,12 +1056,12 @@ export const de_DescribeQueryDefinitionsCommand = async (output, context) => {
|
|
|
1076
1056
|
}
|
|
1077
1057
|
const data = await parseBody(output.body, context);
|
|
1078
1058
|
let contents = {};
|
|
1079
|
-
contents =
|
|
1059
|
+
contents = _json(data);
|
|
1080
1060
|
const response = {
|
|
1081
1061
|
$metadata: deserializeMetadata(output),
|
|
1082
1062
|
...contents,
|
|
1083
1063
|
};
|
|
1084
|
-
return
|
|
1064
|
+
return response;
|
|
1085
1065
|
};
|
|
1086
1066
|
const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
1087
1067
|
const parsedOutput = {
|
|
@@ -1098,10 +1078,9 @@ const de_DescribeQueryDefinitionsCommandError = async (output, context) => {
|
|
|
1098
1078
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1099
1079
|
default:
|
|
1100
1080
|
const parsedBody = parsedOutput.body;
|
|
1101
|
-
throwDefaultError({
|
|
1081
|
+
return throwDefaultError({
|
|
1102
1082
|
output,
|
|
1103
1083
|
parsedBody,
|
|
1104
|
-
exceptionCtor: __BaseException,
|
|
1105
1084
|
errorCode,
|
|
1106
1085
|
});
|
|
1107
1086
|
}
|
|
@@ -1112,12 +1091,12 @@ export const de_DescribeResourcePoliciesCommand = async (output, context) => {
|
|
|
1112
1091
|
}
|
|
1113
1092
|
const data = await parseBody(output.body, context);
|
|
1114
1093
|
let contents = {};
|
|
1115
|
-
contents =
|
|
1094
|
+
contents = _json(data);
|
|
1116
1095
|
const response = {
|
|
1117
1096
|
$metadata: deserializeMetadata(output),
|
|
1118
1097
|
...contents,
|
|
1119
1098
|
};
|
|
1120
|
-
return
|
|
1099
|
+
return response;
|
|
1121
1100
|
};
|
|
1122
1101
|
const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
1123
1102
|
const parsedOutput = {
|
|
@@ -1134,10 +1113,9 @@ const de_DescribeResourcePoliciesCommandError = async (output, context) => {
|
|
|
1134
1113
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1135
1114
|
default:
|
|
1136
1115
|
const parsedBody = parsedOutput.body;
|
|
1137
|
-
throwDefaultError({
|
|
1116
|
+
return throwDefaultError({
|
|
1138
1117
|
output,
|
|
1139
1118
|
parsedBody,
|
|
1140
|
-
exceptionCtor: __BaseException,
|
|
1141
1119
|
errorCode,
|
|
1142
1120
|
});
|
|
1143
1121
|
}
|
|
@@ -1148,12 +1126,12 @@ export const de_DescribeSubscriptionFiltersCommand = async (output, context) =>
|
|
|
1148
1126
|
}
|
|
1149
1127
|
const data = await parseBody(output.body, context);
|
|
1150
1128
|
let contents = {};
|
|
1151
|
-
contents =
|
|
1129
|
+
contents = _json(data);
|
|
1152
1130
|
const response = {
|
|
1153
1131
|
$metadata: deserializeMetadata(output),
|
|
1154
1132
|
...contents,
|
|
1155
1133
|
};
|
|
1156
|
-
return
|
|
1134
|
+
return response;
|
|
1157
1135
|
};
|
|
1158
1136
|
const de_DescribeSubscriptionFiltersCommandError = async (output, context) => {
|
|
1159
1137
|
const parsedOutput = {
|
|
@@ -1173,10 +1151,9 @@ const de_DescribeSubscriptionFiltersCommandError = async (output, context) => {
|
|
|
1173
1151
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1174
1152
|
default:
|
|
1175
1153
|
const parsedBody = parsedOutput.body;
|
|
1176
|
-
throwDefaultError({
|
|
1154
|
+
return throwDefaultError({
|
|
1177
1155
|
output,
|
|
1178
1156
|
parsedBody,
|
|
1179
|
-
exceptionCtor: __BaseException,
|
|
1180
1157
|
errorCode,
|
|
1181
1158
|
});
|
|
1182
1159
|
}
|
|
@@ -1189,7 +1166,7 @@ export const de_DisassociateKmsKeyCommand = async (output, context) => {
|
|
|
1189
1166
|
const response = {
|
|
1190
1167
|
$metadata: deserializeMetadata(output),
|
|
1191
1168
|
};
|
|
1192
|
-
return
|
|
1169
|
+
return response;
|
|
1193
1170
|
};
|
|
1194
1171
|
const de_DisassociateKmsKeyCommandError = async (output, context) => {
|
|
1195
1172
|
const parsedOutput = {
|
|
@@ -1212,10 +1189,9 @@ const de_DisassociateKmsKeyCommandError = async (output, context) => {
|
|
|
1212
1189
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1213
1190
|
default:
|
|
1214
1191
|
const parsedBody = parsedOutput.body;
|
|
1215
|
-
throwDefaultError({
|
|
1192
|
+
return throwDefaultError({
|
|
1216
1193
|
output,
|
|
1217
1194
|
parsedBody,
|
|
1218
|
-
exceptionCtor: __BaseException,
|
|
1219
1195
|
errorCode,
|
|
1220
1196
|
});
|
|
1221
1197
|
}
|
|
@@ -1226,12 +1202,12 @@ export const de_FilterLogEventsCommand = async (output, context) => {
|
|
|
1226
1202
|
}
|
|
1227
1203
|
const data = await parseBody(output.body, context);
|
|
1228
1204
|
let contents = {};
|
|
1229
|
-
contents =
|
|
1205
|
+
contents = _json(data);
|
|
1230
1206
|
const response = {
|
|
1231
1207
|
$metadata: deserializeMetadata(output),
|
|
1232
1208
|
...contents,
|
|
1233
1209
|
};
|
|
1234
|
-
return
|
|
1210
|
+
return response;
|
|
1235
1211
|
};
|
|
1236
1212
|
const de_FilterLogEventsCommandError = async (output, context) => {
|
|
1237
1213
|
const parsedOutput = {
|
|
@@ -1251,10 +1227,9 @@ const de_FilterLogEventsCommandError = async (output, context) => {
|
|
|
1251
1227
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1252
1228
|
default:
|
|
1253
1229
|
const parsedBody = parsedOutput.body;
|
|
1254
|
-
throwDefaultError({
|
|
1230
|
+
return throwDefaultError({
|
|
1255
1231
|
output,
|
|
1256
1232
|
parsedBody,
|
|
1257
|
-
exceptionCtor: __BaseException,
|
|
1258
1233
|
errorCode,
|
|
1259
1234
|
});
|
|
1260
1235
|
}
|
|
@@ -1265,12 +1240,12 @@ export const de_GetDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1265
1240
|
}
|
|
1266
1241
|
const data = await parseBody(output.body, context);
|
|
1267
1242
|
let contents = {};
|
|
1268
|
-
contents =
|
|
1243
|
+
contents = _json(data);
|
|
1269
1244
|
const response = {
|
|
1270
1245
|
$metadata: deserializeMetadata(output),
|
|
1271
1246
|
...contents,
|
|
1272
1247
|
};
|
|
1273
|
-
return
|
|
1248
|
+
return response;
|
|
1274
1249
|
};
|
|
1275
1250
|
const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
1276
1251
|
const parsedOutput = {
|
|
@@ -1293,10 +1268,9 @@ const de_GetDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1293
1268
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1294
1269
|
default:
|
|
1295
1270
|
const parsedBody = parsedOutput.body;
|
|
1296
|
-
throwDefaultError({
|
|
1271
|
+
return throwDefaultError({
|
|
1297
1272
|
output,
|
|
1298
1273
|
parsedBody,
|
|
1299
|
-
exceptionCtor: __BaseException,
|
|
1300
1274
|
errorCode,
|
|
1301
1275
|
});
|
|
1302
1276
|
}
|
|
@@ -1307,12 +1281,12 @@ export const de_GetLogEventsCommand = async (output, context) => {
|
|
|
1307
1281
|
}
|
|
1308
1282
|
const data = await parseBody(output.body, context);
|
|
1309
1283
|
let contents = {};
|
|
1310
|
-
contents =
|
|
1284
|
+
contents = _json(data);
|
|
1311
1285
|
const response = {
|
|
1312
1286
|
$metadata: deserializeMetadata(output),
|
|
1313
1287
|
...contents,
|
|
1314
1288
|
};
|
|
1315
|
-
return
|
|
1289
|
+
return response;
|
|
1316
1290
|
};
|
|
1317
1291
|
const de_GetLogEventsCommandError = async (output, context) => {
|
|
1318
1292
|
const parsedOutput = {
|
|
@@ -1332,10 +1306,9 @@ const de_GetLogEventsCommandError = async (output, context) => {
|
|
|
1332
1306
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1333
1307
|
default:
|
|
1334
1308
|
const parsedBody = parsedOutput.body;
|
|
1335
|
-
throwDefaultError({
|
|
1309
|
+
return throwDefaultError({
|
|
1336
1310
|
output,
|
|
1337
1311
|
parsedBody,
|
|
1338
|
-
exceptionCtor: __BaseException,
|
|
1339
1312
|
errorCode,
|
|
1340
1313
|
});
|
|
1341
1314
|
}
|
|
@@ -1346,12 +1319,12 @@ export const de_GetLogGroupFieldsCommand = async (output, context) => {
|
|
|
1346
1319
|
}
|
|
1347
1320
|
const data = await parseBody(output.body, context);
|
|
1348
1321
|
let contents = {};
|
|
1349
|
-
contents =
|
|
1322
|
+
contents = _json(data);
|
|
1350
1323
|
const response = {
|
|
1351
1324
|
$metadata: deserializeMetadata(output),
|
|
1352
1325
|
...contents,
|
|
1353
1326
|
};
|
|
1354
|
-
return
|
|
1327
|
+
return response;
|
|
1355
1328
|
};
|
|
1356
1329
|
const de_GetLogGroupFieldsCommandError = async (output, context) => {
|
|
1357
1330
|
const parsedOutput = {
|
|
@@ -1374,10 +1347,9 @@ const de_GetLogGroupFieldsCommandError = async (output, context) => {
|
|
|
1374
1347
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1375
1348
|
default:
|
|
1376
1349
|
const parsedBody = parsedOutput.body;
|
|
1377
|
-
throwDefaultError({
|
|
1350
|
+
return throwDefaultError({
|
|
1378
1351
|
output,
|
|
1379
1352
|
parsedBody,
|
|
1380
|
-
exceptionCtor: __BaseException,
|
|
1381
1353
|
errorCode,
|
|
1382
1354
|
});
|
|
1383
1355
|
}
|
|
@@ -1388,12 +1360,12 @@ export const de_GetLogRecordCommand = async (output, context) => {
|
|
|
1388
1360
|
}
|
|
1389
1361
|
const data = await parseBody(output.body, context);
|
|
1390
1362
|
let contents = {};
|
|
1391
|
-
contents =
|
|
1363
|
+
contents = _json(data);
|
|
1392
1364
|
const response = {
|
|
1393
1365
|
$metadata: deserializeMetadata(output),
|
|
1394
1366
|
...contents,
|
|
1395
1367
|
};
|
|
1396
|
-
return
|
|
1368
|
+
return response;
|
|
1397
1369
|
};
|
|
1398
1370
|
const de_GetLogRecordCommandError = async (output, context) => {
|
|
1399
1371
|
const parsedOutput = {
|
|
@@ -1416,10 +1388,9 @@ const de_GetLogRecordCommandError = async (output, context) => {
|
|
|
1416
1388
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1417
1389
|
default:
|
|
1418
1390
|
const parsedBody = parsedOutput.body;
|
|
1419
|
-
throwDefaultError({
|
|
1391
|
+
return throwDefaultError({
|
|
1420
1392
|
output,
|
|
1421
1393
|
parsedBody,
|
|
1422
|
-
exceptionCtor: __BaseException,
|
|
1423
1394
|
errorCode,
|
|
1424
1395
|
});
|
|
1425
1396
|
}
|
|
@@ -1435,7 +1406,7 @@ export const de_GetQueryResultsCommand = async (output, context) => {
|
|
|
1435
1406
|
$metadata: deserializeMetadata(output),
|
|
1436
1407
|
...contents,
|
|
1437
1408
|
};
|
|
1438
|
-
return
|
|
1409
|
+
return response;
|
|
1439
1410
|
};
|
|
1440
1411
|
const de_GetQueryResultsCommandError = async (output, context) => {
|
|
1441
1412
|
const parsedOutput = {
|
|
@@ -1455,10 +1426,9 @@ const de_GetQueryResultsCommandError = async (output, context) => {
|
|
|
1455
1426
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1456
1427
|
default:
|
|
1457
1428
|
const parsedBody = parsedOutput.body;
|
|
1458
|
-
throwDefaultError({
|
|
1429
|
+
return throwDefaultError({
|
|
1459
1430
|
output,
|
|
1460
1431
|
parsedBody,
|
|
1461
|
-
exceptionCtor: __BaseException,
|
|
1462
1432
|
errorCode,
|
|
1463
1433
|
});
|
|
1464
1434
|
}
|
|
@@ -1469,12 +1439,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1469
1439
|
}
|
|
1470
1440
|
const data = await parseBody(output.body, context);
|
|
1471
1441
|
let contents = {};
|
|
1472
|
-
contents =
|
|
1442
|
+
contents = _json(data);
|
|
1473
1443
|
const response = {
|
|
1474
1444
|
$metadata: deserializeMetadata(output),
|
|
1475
1445
|
...contents,
|
|
1476
1446
|
};
|
|
1477
|
-
return
|
|
1447
|
+
return response;
|
|
1478
1448
|
};
|
|
1479
1449
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1480
1450
|
const parsedOutput = {
|
|
@@ -1494,10 +1464,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1494
1464
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1495
1465
|
default:
|
|
1496
1466
|
const parsedBody = parsedOutput.body;
|
|
1497
|
-
throwDefaultError({
|
|
1467
|
+
return throwDefaultError({
|
|
1498
1468
|
output,
|
|
1499
1469
|
parsedBody,
|
|
1500
|
-
exceptionCtor: __BaseException,
|
|
1501
1470
|
errorCode,
|
|
1502
1471
|
});
|
|
1503
1472
|
}
|
|
@@ -1508,12 +1477,12 @@ export const de_ListTagsLogGroupCommand = async (output, context) => {
|
|
|
1508
1477
|
}
|
|
1509
1478
|
const data = await parseBody(output.body, context);
|
|
1510
1479
|
let contents = {};
|
|
1511
|
-
contents =
|
|
1480
|
+
contents = _json(data);
|
|
1512
1481
|
const response = {
|
|
1513
1482
|
$metadata: deserializeMetadata(output),
|
|
1514
1483
|
...contents,
|
|
1515
1484
|
};
|
|
1516
|
-
return
|
|
1485
|
+
return response;
|
|
1517
1486
|
};
|
|
1518
1487
|
const de_ListTagsLogGroupCommandError = async (output, context) => {
|
|
1519
1488
|
const parsedOutput = {
|
|
@@ -1530,10 +1499,9 @@ const de_ListTagsLogGroupCommandError = async (output, context) => {
|
|
|
1530
1499
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1531
1500
|
default:
|
|
1532
1501
|
const parsedBody = parsedOutput.body;
|
|
1533
|
-
throwDefaultError({
|
|
1502
|
+
return throwDefaultError({
|
|
1534
1503
|
output,
|
|
1535
1504
|
parsedBody,
|
|
1536
|
-
exceptionCtor: __BaseException,
|
|
1537
1505
|
errorCode,
|
|
1538
1506
|
});
|
|
1539
1507
|
}
|
|
@@ -1544,12 +1512,12 @@ export const de_PutDataProtectionPolicyCommand = async (output, context) => {
|
|
|
1544
1512
|
}
|
|
1545
1513
|
const data = await parseBody(output.body, context);
|
|
1546
1514
|
let contents = {};
|
|
1547
|
-
contents =
|
|
1515
|
+
contents = _json(data);
|
|
1548
1516
|
const response = {
|
|
1549
1517
|
$metadata: deserializeMetadata(output),
|
|
1550
1518
|
...contents,
|
|
1551
1519
|
};
|
|
1552
|
-
return
|
|
1520
|
+
return response;
|
|
1553
1521
|
};
|
|
1554
1522
|
const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
1555
1523
|
const parsedOutput = {
|
|
@@ -1575,10 +1543,9 @@ const de_PutDataProtectionPolicyCommandError = async (output, context) => {
|
|
|
1575
1543
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1576
1544
|
default:
|
|
1577
1545
|
const parsedBody = parsedOutput.body;
|
|
1578
|
-
throwDefaultError({
|
|
1546
|
+
return throwDefaultError({
|
|
1579
1547
|
output,
|
|
1580
1548
|
parsedBody,
|
|
1581
|
-
exceptionCtor: __BaseException,
|
|
1582
1549
|
errorCode,
|
|
1583
1550
|
});
|
|
1584
1551
|
}
|
|
@@ -1589,12 +1556,12 @@ export const de_PutDestinationCommand = async (output, context) => {
|
|
|
1589
1556
|
}
|
|
1590
1557
|
const data = await parseBody(output.body, context);
|
|
1591
1558
|
let contents = {};
|
|
1592
|
-
contents =
|
|
1559
|
+
contents = _json(data);
|
|
1593
1560
|
const response = {
|
|
1594
1561
|
$metadata: deserializeMetadata(output),
|
|
1595
1562
|
...contents,
|
|
1596
1563
|
};
|
|
1597
|
-
return
|
|
1564
|
+
return response;
|
|
1598
1565
|
};
|
|
1599
1566
|
const de_PutDestinationCommandError = async (output, context) => {
|
|
1600
1567
|
const parsedOutput = {
|
|
@@ -1614,10 +1581,9 @@ const de_PutDestinationCommandError = async (output, context) => {
|
|
|
1614
1581
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1615
1582
|
default:
|
|
1616
1583
|
const parsedBody = parsedOutput.body;
|
|
1617
|
-
throwDefaultError({
|
|
1584
|
+
return throwDefaultError({
|
|
1618
1585
|
output,
|
|
1619
1586
|
parsedBody,
|
|
1620
|
-
exceptionCtor: __BaseException,
|
|
1621
1587
|
errorCode,
|
|
1622
1588
|
});
|
|
1623
1589
|
}
|
|
@@ -1630,7 +1596,7 @@ export const de_PutDestinationPolicyCommand = async (output, context) => {
|
|
|
1630
1596
|
const response = {
|
|
1631
1597
|
$metadata: deserializeMetadata(output),
|
|
1632
1598
|
};
|
|
1633
|
-
return
|
|
1599
|
+
return response;
|
|
1634
1600
|
};
|
|
1635
1601
|
const de_PutDestinationPolicyCommandError = async (output, context) => {
|
|
1636
1602
|
const parsedOutput = {
|
|
@@ -1650,10 +1616,9 @@ const de_PutDestinationPolicyCommandError = async (output, context) => {
|
|
|
1650
1616
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1651
1617
|
default:
|
|
1652
1618
|
const parsedBody = parsedOutput.body;
|
|
1653
|
-
throwDefaultError({
|
|
1619
|
+
return throwDefaultError({
|
|
1654
1620
|
output,
|
|
1655
1621
|
parsedBody,
|
|
1656
|
-
exceptionCtor: __BaseException,
|
|
1657
1622
|
errorCode,
|
|
1658
1623
|
});
|
|
1659
1624
|
}
|
|
@@ -1664,12 +1629,12 @@ export const de_PutLogEventsCommand = async (output, context) => {
|
|
|
1664
1629
|
}
|
|
1665
1630
|
const data = await parseBody(output.body, context);
|
|
1666
1631
|
let contents = {};
|
|
1667
|
-
contents =
|
|
1632
|
+
contents = _json(data);
|
|
1668
1633
|
const response = {
|
|
1669
1634
|
$metadata: deserializeMetadata(output),
|
|
1670
1635
|
...contents,
|
|
1671
1636
|
};
|
|
1672
|
-
return
|
|
1637
|
+
return response;
|
|
1673
1638
|
};
|
|
1674
1639
|
const de_PutLogEventsCommandError = async (output, context) => {
|
|
1675
1640
|
const parsedOutput = {
|
|
@@ -1698,10 +1663,9 @@ const de_PutLogEventsCommandError = async (output, context) => {
|
|
|
1698
1663
|
throw await de_UnrecognizedClientExceptionRes(parsedOutput, context);
|
|
1699
1664
|
default:
|
|
1700
1665
|
const parsedBody = parsedOutput.body;
|
|
1701
|
-
throwDefaultError({
|
|
1666
|
+
return throwDefaultError({
|
|
1702
1667
|
output,
|
|
1703
1668
|
parsedBody,
|
|
1704
|
-
exceptionCtor: __BaseException,
|
|
1705
1669
|
errorCode,
|
|
1706
1670
|
});
|
|
1707
1671
|
}
|
|
@@ -1714,7 +1678,7 @@ export const de_PutMetricFilterCommand = async (output, context) => {
|
|
|
1714
1678
|
const response = {
|
|
1715
1679
|
$metadata: deserializeMetadata(output),
|
|
1716
1680
|
};
|
|
1717
|
-
return
|
|
1681
|
+
return response;
|
|
1718
1682
|
};
|
|
1719
1683
|
const de_PutMetricFilterCommandError = async (output, context) => {
|
|
1720
1684
|
const parsedOutput = {
|
|
@@ -1740,10 +1704,9 @@ const de_PutMetricFilterCommandError = async (output, context) => {
|
|
|
1740
1704
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1741
1705
|
default:
|
|
1742
1706
|
const parsedBody = parsedOutput.body;
|
|
1743
|
-
throwDefaultError({
|
|
1707
|
+
return throwDefaultError({
|
|
1744
1708
|
output,
|
|
1745
1709
|
parsedBody,
|
|
1746
|
-
exceptionCtor: __BaseException,
|
|
1747
1710
|
errorCode,
|
|
1748
1711
|
});
|
|
1749
1712
|
}
|
|
@@ -1754,12 +1717,12 @@ export const de_PutQueryDefinitionCommand = async (output, context) => {
|
|
|
1754
1717
|
}
|
|
1755
1718
|
const data = await parseBody(output.body, context);
|
|
1756
1719
|
let contents = {};
|
|
1757
|
-
contents =
|
|
1720
|
+
contents = _json(data);
|
|
1758
1721
|
const response = {
|
|
1759
1722
|
$metadata: deserializeMetadata(output),
|
|
1760
1723
|
...contents,
|
|
1761
1724
|
};
|
|
1762
|
-
return
|
|
1725
|
+
return response;
|
|
1763
1726
|
};
|
|
1764
1727
|
const de_PutQueryDefinitionCommandError = async (output, context) => {
|
|
1765
1728
|
const parsedOutput = {
|
|
@@ -1782,10 +1745,9 @@ const de_PutQueryDefinitionCommandError = async (output, context) => {
|
|
|
1782
1745
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1783
1746
|
default:
|
|
1784
1747
|
const parsedBody = parsedOutput.body;
|
|
1785
|
-
throwDefaultError({
|
|
1748
|
+
return throwDefaultError({
|
|
1786
1749
|
output,
|
|
1787
1750
|
parsedBody,
|
|
1788
|
-
exceptionCtor: __BaseException,
|
|
1789
1751
|
errorCode,
|
|
1790
1752
|
});
|
|
1791
1753
|
}
|
|
@@ -1796,12 +1758,12 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
|
1796
1758
|
}
|
|
1797
1759
|
const data = await parseBody(output.body, context);
|
|
1798
1760
|
let contents = {};
|
|
1799
|
-
contents =
|
|
1761
|
+
contents = _json(data);
|
|
1800
1762
|
const response = {
|
|
1801
1763
|
$metadata: deserializeMetadata(output),
|
|
1802
1764
|
...contents,
|
|
1803
1765
|
};
|
|
1804
|
-
return
|
|
1766
|
+
return response;
|
|
1805
1767
|
};
|
|
1806
1768
|
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1807
1769
|
const parsedOutput = {
|
|
@@ -1821,10 +1783,9 @@ const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
|
1821
1783
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1822
1784
|
default:
|
|
1823
1785
|
const parsedBody = parsedOutput.body;
|
|
1824
|
-
throwDefaultError({
|
|
1786
|
+
return throwDefaultError({
|
|
1825
1787
|
output,
|
|
1826
1788
|
parsedBody,
|
|
1827
|
-
exceptionCtor: __BaseException,
|
|
1828
1789
|
errorCode,
|
|
1829
1790
|
});
|
|
1830
1791
|
}
|
|
@@ -1837,7 +1798,7 @@ export const de_PutRetentionPolicyCommand = async (output, context) => {
|
|
|
1837
1798
|
const response = {
|
|
1838
1799
|
$metadata: deserializeMetadata(output),
|
|
1839
1800
|
};
|
|
1840
|
-
return
|
|
1801
|
+
return response;
|
|
1841
1802
|
};
|
|
1842
1803
|
const de_PutRetentionPolicyCommandError = async (output, context) => {
|
|
1843
1804
|
const parsedOutput = {
|
|
@@ -1860,10 +1821,9 @@ const de_PutRetentionPolicyCommandError = async (output, context) => {
|
|
|
1860
1821
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1861
1822
|
default:
|
|
1862
1823
|
const parsedBody = parsedOutput.body;
|
|
1863
|
-
throwDefaultError({
|
|
1824
|
+
return throwDefaultError({
|
|
1864
1825
|
output,
|
|
1865
1826
|
parsedBody,
|
|
1866
|
-
exceptionCtor: __BaseException,
|
|
1867
1827
|
errorCode,
|
|
1868
1828
|
});
|
|
1869
1829
|
}
|
|
@@ -1876,7 +1836,7 @@ export const de_PutSubscriptionFilterCommand = async (output, context) => {
|
|
|
1876
1836
|
const response = {
|
|
1877
1837
|
$metadata: deserializeMetadata(output),
|
|
1878
1838
|
};
|
|
1879
|
-
return
|
|
1839
|
+
return response;
|
|
1880
1840
|
};
|
|
1881
1841
|
const de_PutSubscriptionFilterCommandError = async (output, context) => {
|
|
1882
1842
|
const parsedOutput = {
|
|
@@ -1902,10 +1862,9 @@ const de_PutSubscriptionFilterCommandError = async (output, context) => {
|
|
|
1902
1862
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1903
1863
|
default:
|
|
1904
1864
|
const parsedBody = parsedOutput.body;
|
|
1905
|
-
throwDefaultError({
|
|
1865
|
+
return throwDefaultError({
|
|
1906
1866
|
output,
|
|
1907
1867
|
parsedBody,
|
|
1908
|
-
exceptionCtor: __BaseException,
|
|
1909
1868
|
errorCode,
|
|
1910
1869
|
});
|
|
1911
1870
|
}
|
|
@@ -1916,12 +1875,12 @@ export const de_StartQueryCommand = async (output, context) => {
|
|
|
1916
1875
|
}
|
|
1917
1876
|
const data = await parseBody(output.body, context);
|
|
1918
1877
|
let contents = {};
|
|
1919
|
-
contents =
|
|
1878
|
+
contents = _json(data);
|
|
1920
1879
|
const response = {
|
|
1921
1880
|
$metadata: deserializeMetadata(output),
|
|
1922
1881
|
...contents,
|
|
1923
1882
|
};
|
|
1924
|
-
return
|
|
1883
|
+
return response;
|
|
1925
1884
|
};
|
|
1926
1885
|
const de_StartQueryCommandError = async (output, context) => {
|
|
1927
1886
|
const parsedOutput = {
|
|
@@ -1947,10 +1906,9 @@ const de_StartQueryCommandError = async (output, context) => {
|
|
|
1947
1906
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1948
1907
|
default:
|
|
1949
1908
|
const parsedBody = parsedOutput.body;
|
|
1950
|
-
throwDefaultError({
|
|
1909
|
+
return throwDefaultError({
|
|
1951
1910
|
output,
|
|
1952
1911
|
parsedBody,
|
|
1953
|
-
exceptionCtor: __BaseException,
|
|
1954
1912
|
errorCode,
|
|
1955
1913
|
});
|
|
1956
1914
|
}
|
|
@@ -1961,12 +1919,12 @@ export const de_StopQueryCommand = async (output, context) => {
|
|
|
1961
1919
|
}
|
|
1962
1920
|
const data = await parseBody(output.body, context);
|
|
1963
1921
|
let contents = {};
|
|
1964
|
-
contents =
|
|
1922
|
+
contents = _json(data);
|
|
1965
1923
|
const response = {
|
|
1966
1924
|
$metadata: deserializeMetadata(output),
|
|
1967
1925
|
...contents,
|
|
1968
1926
|
};
|
|
1969
|
-
return
|
|
1927
|
+
return response;
|
|
1970
1928
|
};
|
|
1971
1929
|
const de_StopQueryCommandError = async (output, context) => {
|
|
1972
1930
|
const parsedOutput = {
|
|
@@ -1986,10 +1944,9 @@ const de_StopQueryCommandError = async (output, context) => {
|
|
|
1986
1944
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
1987
1945
|
default:
|
|
1988
1946
|
const parsedBody = parsedOutput.body;
|
|
1989
|
-
throwDefaultError({
|
|
1947
|
+
return throwDefaultError({
|
|
1990
1948
|
output,
|
|
1991
1949
|
parsedBody,
|
|
1992
|
-
exceptionCtor: __BaseException,
|
|
1993
1950
|
errorCode,
|
|
1994
1951
|
});
|
|
1995
1952
|
}
|
|
@@ -2002,7 +1959,7 @@ export const de_TagLogGroupCommand = async (output, context) => {
|
|
|
2002
1959
|
const response = {
|
|
2003
1960
|
$metadata: deserializeMetadata(output),
|
|
2004
1961
|
};
|
|
2005
|
-
return
|
|
1962
|
+
return response;
|
|
2006
1963
|
};
|
|
2007
1964
|
const de_TagLogGroupCommandError = async (output, context) => {
|
|
2008
1965
|
const parsedOutput = {
|
|
@@ -2019,10 +1976,9 @@ const de_TagLogGroupCommandError = async (output, context) => {
|
|
|
2019
1976
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2020
1977
|
default:
|
|
2021
1978
|
const parsedBody = parsedOutput.body;
|
|
2022
|
-
throwDefaultError({
|
|
1979
|
+
return throwDefaultError({
|
|
2023
1980
|
output,
|
|
2024
1981
|
parsedBody,
|
|
2025
|
-
exceptionCtor: __BaseException,
|
|
2026
1982
|
errorCode,
|
|
2027
1983
|
});
|
|
2028
1984
|
}
|
|
@@ -2035,7 +1991,7 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
2035
1991
|
const response = {
|
|
2036
1992
|
$metadata: deserializeMetadata(output),
|
|
2037
1993
|
};
|
|
2038
|
-
return
|
|
1994
|
+
return response;
|
|
2039
1995
|
};
|
|
2040
1996
|
const de_TagResourceCommandError = async (output, context) => {
|
|
2041
1997
|
const parsedOutput = {
|
|
@@ -2058,10 +2014,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
2058
2014
|
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
2059
2015
|
default:
|
|
2060
2016
|
const parsedBody = parsedOutput.body;
|
|
2061
|
-
throwDefaultError({
|
|
2017
|
+
return throwDefaultError({
|
|
2062
2018
|
output,
|
|
2063
2019
|
parsedBody,
|
|
2064
|
-
exceptionCtor: __BaseException,
|
|
2065
2020
|
errorCode,
|
|
2066
2021
|
});
|
|
2067
2022
|
}
|
|
@@ -2072,12 +2027,12 @@ export const de_TestMetricFilterCommand = async (output, context) => {
|
|
|
2072
2027
|
}
|
|
2073
2028
|
const data = await parseBody(output.body, context);
|
|
2074
2029
|
let contents = {};
|
|
2075
|
-
contents =
|
|
2030
|
+
contents = _json(data);
|
|
2076
2031
|
const response = {
|
|
2077
2032
|
$metadata: deserializeMetadata(output),
|
|
2078
2033
|
...contents,
|
|
2079
2034
|
};
|
|
2080
|
-
return
|
|
2035
|
+
return response;
|
|
2081
2036
|
};
|
|
2082
2037
|
const de_TestMetricFilterCommandError = async (output, context) => {
|
|
2083
2038
|
const parsedOutput = {
|
|
@@ -2094,10 +2049,9 @@ const de_TestMetricFilterCommandError = async (output, context) => {
|
|
|
2094
2049
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2095
2050
|
default:
|
|
2096
2051
|
const parsedBody = parsedOutput.body;
|
|
2097
|
-
throwDefaultError({
|
|
2052
|
+
return throwDefaultError({
|
|
2098
2053
|
output,
|
|
2099
2054
|
parsedBody,
|
|
2100
|
-
exceptionCtor: __BaseException,
|
|
2101
2055
|
errorCode,
|
|
2102
2056
|
});
|
|
2103
2057
|
}
|
|
@@ -2110,7 +2064,7 @@ export const de_UntagLogGroupCommand = async (output, context) => {
|
|
|
2110
2064
|
const response = {
|
|
2111
2065
|
$metadata: deserializeMetadata(output),
|
|
2112
2066
|
};
|
|
2113
|
-
return
|
|
2067
|
+
return response;
|
|
2114
2068
|
};
|
|
2115
2069
|
const de_UntagLogGroupCommandError = async (output, context) => {
|
|
2116
2070
|
const parsedOutput = {
|
|
@@ -2124,10 +2078,9 @@ const de_UntagLogGroupCommandError = async (output, context) => {
|
|
|
2124
2078
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2125
2079
|
default:
|
|
2126
2080
|
const parsedBody = parsedOutput.body;
|
|
2127
|
-
throwDefaultError({
|
|
2081
|
+
return throwDefaultError({
|
|
2128
2082
|
output,
|
|
2129
2083
|
parsedBody,
|
|
2130
|
-
exceptionCtor: __BaseException,
|
|
2131
2084
|
errorCode,
|
|
2132
2085
|
});
|
|
2133
2086
|
}
|
|
@@ -2140,7 +2093,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
2140
2093
|
const response = {
|
|
2141
2094
|
$metadata: deserializeMetadata(output),
|
|
2142
2095
|
};
|
|
2143
|
-
return
|
|
2096
|
+
return response;
|
|
2144
2097
|
};
|
|
2145
2098
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
2146
2099
|
const parsedOutput = {
|
|
@@ -2160,17 +2113,16 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
2160
2113
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2161
2114
|
default:
|
|
2162
2115
|
const parsedBody = parsedOutput.body;
|
|
2163
|
-
throwDefaultError({
|
|
2116
|
+
return throwDefaultError({
|
|
2164
2117
|
output,
|
|
2165
2118
|
parsedBody,
|
|
2166
|
-
exceptionCtor: __BaseException,
|
|
2167
2119
|
errorCode,
|
|
2168
2120
|
});
|
|
2169
2121
|
}
|
|
2170
2122
|
};
|
|
2171
2123
|
const de_DataAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
|
|
2172
2124
|
const body = parsedOutput.body;
|
|
2173
|
-
const deserialized =
|
|
2125
|
+
const deserialized = _json(body);
|
|
2174
2126
|
const exception = new DataAlreadyAcceptedException({
|
|
2175
2127
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2176
2128
|
...deserialized,
|
|
@@ -2179,7 +2131,7 @@ const de_DataAlreadyAcceptedExceptionRes = async (parsedOutput, context) => {
|
|
|
2179
2131
|
};
|
|
2180
2132
|
const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
2181
2133
|
const body = parsedOutput.body;
|
|
2182
|
-
const deserialized =
|
|
2134
|
+
const deserialized = _json(body);
|
|
2183
2135
|
const exception = new InvalidOperationException({
|
|
2184
2136
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2185
2137
|
...deserialized,
|
|
@@ -2188,7 +2140,7 @@ const de_InvalidOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
2188
2140
|
};
|
|
2189
2141
|
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
2190
2142
|
const body = parsedOutput.body;
|
|
2191
|
-
const deserialized =
|
|
2143
|
+
const deserialized = _json(body);
|
|
2192
2144
|
const exception = new InvalidParameterException({
|
|
2193
2145
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2194
2146
|
...deserialized,
|
|
@@ -2197,7 +2149,7 @@ const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
|
2197
2149
|
};
|
|
2198
2150
|
const de_InvalidSequenceTokenExceptionRes = async (parsedOutput, context) => {
|
|
2199
2151
|
const body = parsedOutput.body;
|
|
2200
|
-
const deserialized =
|
|
2152
|
+
const deserialized = _json(body);
|
|
2201
2153
|
const exception = new InvalidSequenceTokenException({
|
|
2202
2154
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2203
2155
|
...deserialized,
|
|
@@ -2206,7 +2158,7 @@ const de_InvalidSequenceTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
2206
2158
|
};
|
|
2207
2159
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
2208
2160
|
const body = parsedOutput.body;
|
|
2209
|
-
const deserialized =
|
|
2161
|
+
const deserialized = _json(body);
|
|
2210
2162
|
const exception = new LimitExceededException({
|
|
2211
2163
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2212
2164
|
...deserialized,
|
|
@@ -2215,7 +2167,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
2215
2167
|
};
|
|
2216
2168
|
const de_MalformedQueryExceptionRes = async (parsedOutput, context) => {
|
|
2217
2169
|
const body = parsedOutput.body;
|
|
2218
|
-
const deserialized =
|
|
2170
|
+
const deserialized = _json(body);
|
|
2219
2171
|
const exception = new MalformedQueryException({
|
|
2220
2172
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2221
2173
|
...deserialized,
|
|
@@ -2224,7 +2176,7 @@ const de_MalformedQueryExceptionRes = async (parsedOutput, context) => {
|
|
|
2224
2176
|
};
|
|
2225
2177
|
const de_OperationAbortedExceptionRes = async (parsedOutput, context) => {
|
|
2226
2178
|
const body = parsedOutput.body;
|
|
2227
|
-
const deserialized =
|
|
2179
|
+
const deserialized = _json(body);
|
|
2228
2180
|
const exception = new OperationAbortedException({
|
|
2229
2181
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2230
2182
|
...deserialized,
|
|
@@ -2233,7 +2185,7 @@ const de_OperationAbortedExceptionRes = async (parsedOutput, context) => {
|
|
|
2233
2185
|
};
|
|
2234
2186
|
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
2235
2187
|
const body = parsedOutput.body;
|
|
2236
|
-
const deserialized =
|
|
2188
|
+
const deserialized = _json(body);
|
|
2237
2189
|
const exception = new ResourceAlreadyExistsException({
|
|
2238
2190
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2239
2191
|
...deserialized,
|
|
@@ -2242,7 +2194,7 @@ const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
|
2242
2194
|
};
|
|
2243
2195
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
2244
2196
|
const body = parsedOutput.body;
|
|
2245
|
-
const deserialized =
|
|
2197
|
+
const deserialized = _json(body);
|
|
2246
2198
|
const exception = new ResourceNotFoundException({
|
|
2247
2199
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2248
2200
|
...deserialized,
|
|
@@ -2251,7 +2203,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
2251
2203
|
};
|
|
2252
2204
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
2253
2205
|
const body = parsedOutput.body;
|
|
2254
|
-
const deserialized =
|
|
2206
|
+
const deserialized = _json(body);
|
|
2255
2207
|
const exception = new ServiceUnavailableException({
|
|
2256
2208
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2257
2209
|
...deserialized,
|
|
@@ -2260,7 +2212,7 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
2260
2212
|
};
|
|
2261
2213
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
2262
2214
|
const body = parsedOutput.body;
|
|
2263
|
-
const deserialized =
|
|
2215
|
+
const deserialized = _json(body);
|
|
2264
2216
|
const exception = new TooManyTagsException({
|
|
2265
2217
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2266
2218
|
...deserialized,
|
|
@@ -2269,296 +2221,22 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
2269
2221
|
};
|
|
2270
2222
|
const de_UnrecognizedClientExceptionRes = async (parsedOutput, context) => {
|
|
2271
2223
|
const body = parsedOutput.body;
|
|
2272
|
-
const deserialized =
|
|
2224
|
+
const deserialized = _json(body);
|
|
2273
2225
|
const exception = new UnrecognizedClientException({
|
|
2274
2226
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2275
2227
|
...deserialized,
|
|
2276
2228
|
});
|
|
2277
2229
|
return __decorateServiceException(exception, body);
|
|
2278
2230
|
};
|
|
2279
|
-
const se_AccountIds = (input, context) => {
|
|
2280
|
-
return input
|
|
2281
|
-
.filter((e) => e != null)
|
|
2282
|
-
.map((entry) => {
|
|
2283
|
-
return entry;
|
|
2284
|
-
});
|
|
2285
|
-
};
|
|
2286
|
-
const se_AssociateKmsKeyRequest = (input, context) => {
|
|
2287
|
-
return {
|
|
2288
|
-
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2289
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2290
|
-
};
|
|
2291
|
-
};
|
|
2292
|
-
const se_CancelExportTaskRequest = (input, context) => {
|
|
2293
|
-
return {
|
|
2294
|
-
...(input.taskId != null && { taskId: input.taskId }),
|
|
2295
|
-
};
|
|
2296
|
-
};
|
|
2297
|
-
const se_CreateExportTaskRequest = (input, context) => {
|
|
2298
|
-
return {
|
|
2299
|
-
...(input.destination != null && { destination: input.destination }),
|
|
2300
|
-
...(input.destinationPrefix != null && { destinationPrefix: input.destinationPrefix }),
|
|
2301
|
-
...(input.from != null && { from: input.from }),
|
|
2302
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2303
|
-
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2304
|
-
...(input.taskName != null && { taskName: input.taskName }),
|
|
2305
|
-
...(input.to != null && { to: input.to }),
|
|
2306
|
-
};
|
|
2307
|
-
};
|
|
2308
|
-
const se_CreateLogGroupRequest = (input, context) => {
|
|
2309
|
-
return {
|
|
2310
|
-
...(input.kmsKeyId != null && { kmsKeyId: input.kmsKeyId }),
|
|
2311
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2312
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
2313
|
-
};
|
|
2314
|
-
};
|
|
2315
|
-
const se_CreateLogStreamRequest = (input, context) => {
|
|
2316
|
-
return {
|
|
2317
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2318
|
-
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2319
|
-
};
|
|
2320
|
-
};
|
|
2321
|
-
const se_DeleteDataProtectionPolicyRequest = (input, context) => {
|
|
2322
|
-
return {
|
|
2323
|
-
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2324
|
-
};
|
|
2325
|
-
};
|
|
2326
|
-
const se_DeleteDestinationRequest = (input, context) => {
|
|
2327
|
-
return {
|
|
2328
|
-
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2329
|
-
};
|
|
2330
|
-
};
|
|
2331
|
-
const se_DeleteLogGroupRequest = (input, context) => {
|
|
2332
|
-
return {
|
|
2333
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2334
|
-
};
|
|
2335
|
-
};
|
|
2336
|
-
const se_DeleteLogStreamRequest = (input, context) => {
|
|
2337
|
-
return {
|
|
2338
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2339
|
-
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2340
|
-
};
|
|
2341
|
-
};
|
|
2342
|
-
const se_DeleteMetricFilterRequest = (input, context) => {
|
|
2343
|
-
return {
|
|
2344
|
-
...(input.filterName != null && { filterName: input.filterName }),
|
|
2345
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2346
|
-
};
|
|
2347
|
-
};
|
|
2348
|
-
const se_DeleteQueryDefinitionRequest = (input, context) => {
|
|
2349
|
-
return {
|
|
2350
|
-
...(input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }),
|
|
2351
|
-
};
|
|
2352
|
-
};
|
|
2353
|
-
const se_DeleteResourcePolicyRequest = (input, context) => {
|
|
2354
|
-
return {
|
|
2355
|
-
...(input.policyName != null && { policyName: input.policyName }),
|
|
2356
|
-
};
|
|
2357
|
-
};
|
|
2358
|
-
const se_DeleteRetentionPolicyRequest = (input, context) => {
|
|
2359
|
-
return {
|
|
2360
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2361
|
-
};
|
|
2362
|
-
};
|
|
2363
|
-
const se_DeleteSubscriptionFilterRequest = (input, context) => {
|
|
2364
|
-
return {
|
|
2365
|
-
...(input.filterName != null && { filterName: input.filterName }),
|
|
2366
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2367
|
-
};
|
|
2368
|
-
};
|
|
2369
|
-
const se_DescribeDestinationsRequest = (input, context) => {
|
|
2370
|
-
return {
|
|
2371
|
-
...(input.DestinationNamePrefix != null && { DestinationNamePrefix: input.DestinationNamePrefix }),
|
|
2372
|
-
...(input.limit != null && { limit: input.limit }),
|
|
2373
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2374
|
-
};
|
|
2375
|
-
};
|
|
2376
|
-
const se_DescribeExportTasksRequest = (input, context) => {
|
|
2377
|
-
return {
|
|
2378
|
-
...(input.limit != null && { limit: input.limit }),
|
|
2379
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2380
|
-
...(input.statusCode != null && { statusCode: input.statusCode }),
|
|
2381
|
-
...(input.taskId != null && { taskId: input.taskId }),
|
|
2382
|
-
};
|
|
2383
|
-
};
|
|
2384
|
-
const se_DescribeLogGroupsRequest = (input, context) => {
|
|
2385
|
-
return {
|
|
2386
|
-
...(input.accountIdentifiers != null && { accountIdentifiers: se_AccountIds(input.accountIdentifiers, context) }),
|
|
2387
|
-
...(input.includeLinkedAccounts != null && { includeLinkedAccounts: input.includeLinkedAccounts }),
|
|
2388
|
-
...(input.limit != null && { limit: input.limit }),
|
|
2389
|
-
...(input.logGroupNamePattern != null && { logGroupNamePattern: input.logGroupNamePattern }),
|
|
2390
|
-
...(input.logGroupNamePrefix != null && { logGroupNamePrefix: input.logGroupNamePrefix }),
|
|
2391
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2392
|
-
};
|
|
2393
|
-
};
|
|
2394
|
-
const se_DescribeLogStreamsRequest = (input, context) => {
|
|
2395
|
-
return {
|
|
2396
|
-
...(input.descending != null && { descending: input.descending }),
|
|
2397
|
-
...(input.limit != null && { limit: input.limit }),
|
|
2398
|
-
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2399
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2400
|
-
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2401
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2402
|
-
...(input.orderBy != null && { orderBy: input.orderBy }),
|
|
2403
|
-
};
|
|
2404
|
-
};
|
|
2405
|
-
const se_DescribeMetricFiltersRequest = (input, context) => {
|
|
2406
|
-
return {
|
|
2407
|
-
...(input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix }),
|
|
2408
|
-
...(input.limit != null && { limit: input.limit }),
|
|
2409
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2410
|
-
...(input.metricName != null && { metricName: input.metricName }),
|
|
2411
|
-
...(input.metricNamespace != null && { metricNamespace: input.metricNamespace }),
|
|
2412
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2413
|
-
};
|
|
2414
|
-
};
|
|
2415
|
-
const se_DescribeQueriesRequest = (input, context) => {
|
|
2416
|
-
return {
|
|
2417
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2418
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2419
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2420
|
-
...(input.status != null && { status: input.status }),
|
|
2421
|
-
};
|
|
2422
|
-
};
|
|
2423
|
-
const se_DescribeQueryDefinitionsRequest = (input, context) => {
|
|
2424
|
-
return {
|
|
2425
|
-
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2426
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2427
|
-
...(input.queryDefinitionNamePrefix != null && { queryDefinitionNamePrefix: input.queryDefinitionNamePrefix }),
|
|
2428
|
-
};
|
|
2429
|
-
};
|
|
2430
|
-
const se_DescribeResourcePoliciesRequest = (input, context) => {
|
|
2431
|
-
return {
|
|
2432
|
-
...(input.limit != null && { limit: input.limit }),
|
|
2433
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2434
|
-
};
|
|
2435
|
-
};
|
|
2436
|
-
const se_DescribeSubscriptionFiltersRequest = (input, context) => {
|
|
2437
|
-
return {
|
|
2438
|
-
...(input.filterNamePrefix != null && { filterNamePrefix: input.filterNamePrefix }),
|
|
2439
|
-
...(input.limit != null && { limit: input.limit }),
|
|
2440
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2441
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2442
|
-
};
|
|
2443
|
-
};
|
|
2444
|
-
const se_Dimensions = (input, context) => {
|
|
2445
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2446
|
-
if (value === null) {
|
|
2447
|
-
return acc;
|
|
2448
|
-
}
|
|
2449
|
-
acc[key] = value;
|
|
2450
|
-
return acc;
|
|
2451
|
-
}, {});
|
|
2452
|
-
};
|
|
2453
|
-
const se_DisassociateKmsKeyRequest = (input, context) => {
|
|
2454
|
-
return {
|
|
2455
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2456
|
-
};
|
|
2457
|
-
};
|
|
2458
|
-
const se_FilterLogEventsRequest = (input, context) => {
|
|
2459
|
-
return {
|
|
2460
|
-
...(input.endTime != null && { endTime: input.endTime }),
|
|
2461
|
-
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2462
|
-
...(input.interleaved != null && { interleaved: input.interleaved }),
|
|
2463
|
-
...(input.limit != null && { limit: input.limit }),
|
|
2464
|
-
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2465
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2466
|
-
...(input.logStreamNamePrefix != null && { logStreamNamePrefix: input.logStreamNamePrefix }),
|
|
2467
|
-
...(input.logStreamNames != null && { logStreamNames: se_InputLogStreamNames(input.logStreamNames, context) }),
|
|
2468
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2469
|
-
...(input.startTime != null && { startTime: input.startTime }),
|
|
2470
|
-
...(input.unmask != null && { unmask: input.unmask }),
|
|
2471
|
-
};
|
|
2472
|
-
};
|
|
2473
|
-
const se_GetDataProtectionPolicyRequest = (input, context) => {
|
|
2474
|
-
return {
|
|
2475
|
-
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2476
|
-
};
|
|
2477
|
-
};
|
|
2478
|
-
const se_GetLogEventsRequest = (input, context) => {
|
|
2479
|
-
return {
|
|
2480
|
-
...(input.endTime != null && { endTime: input.endTime }),
|
|
2481
|
-
...(input.limit != null && { limit: input.limit }),
|
|
2482
|
-
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2483
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2484
|
-
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2485
|
-
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2486
|
-
...(input.startFromHead != null && { startFromHead: input.startFromHead }),
|
|
2487
|
-
...(input.startTime != null && { startTime: input.startTime }),
|
|
2488
|
-
...(input.unmask != null && { unmask: input.unmask }),
|
|
2489
|
-
};
|
|
2490
|
-
};
|
|
2491
|
-
const se_GetLogGroupFieldsRequest = (input, context) => {
|
|
2492
|
-
return {
|
|
2493
|
-
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2494
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2495
|
-
...(input.time != null && { time: input.time }),
|
|
2496
|
-
};
|
|
2497
|
-
};
|
|
2498
|
-
const se_GetLogRecordRequest = (input, context) => {
|
|
2499
|
-
return {
|
|
2500
|
-
...(input.logRecordPointer != null && { logRecordPointer: input.logRecordPointer }),
|
|
2501
|
-
...(input.unmask != null && { unmask: input.unmask }),
|
|
2502
|
-
};
|
|
2503
|
-
};
|
|
2504
|
-
const se_GetQueryResultsRequest = (input, context) => {
|
|
2505
|
-
return {
|
|
2506
|
-
...(input.queryId != null && { queryId: input.queryId }),
|
|
2507
|
-
};
|
|
2508
|
-
};
|
|
2509
|
-
const se_InputLogEvent = (input, context) => {
|
|
2510
|
-
return {
|
|
2511
|
-
...(input.message != null && { message: input.message }),
|
|
2512
|
-
...(input.timestamp != null && { timestamp: input.timestamp }),
|
|
2513
|
-
};
|
|
2514
|
-
};
|
|
2515
|
-
const se_InputLogEvents = (input, context) => {
|
|
2516
|
-
return input
|
|
2517
|
-
.filter((e) => e != null)
|
|
2518
|
-
.map((entry) => {
|
|
2519
|
-
return se_InputLogEvent(entry, context);
|
|
2520
|
-
});
|
|
2521
|
-
};
|
|
2522
|
-
const se_InputLogStreamNames = (input, context) => {
|
|
2523
|
-
return input
|
|
2524
|
-
.filter((e) => e != null)
|
|
2525
|
-
.map((entry) => {
|
|
2526
|
-
return entry;
|
|
2527
|
-
});
|
|
2528
|
-
};
|
|
2529
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
2530
|
-
return {
|
|
2531
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2532
|
-
};
|
|
2533
|
-
};
|
|
2534
|
-
const se_ListTagsLogGroupRequest = (input, context) => {
|
|
2535
|
-
return {
|
|
2536
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2537
|
-
};
|
|
2538
|
-
};
|
|
2539
|
-
const se_LogGroupIdentifiers = (input, context) => {
|
|
2540
|
-
return input
|
|
2541
|
-
.filter((e) => e != null)
|
|
2542
|
-
.map((entry) => {
|
|
2543
|
-
return entry;
|
|
2544
|
-
});
|
|
2545
|
-
};
|
|
2546
|
-
const se_LogGroupNames = (input, context) => {
|
|
2547
|
-
return input
|
|
2548
|
-
.filter((e) => e != null)
|
|
2549
|
-
.map((entry) => {
|
|
2550
|
-
return entry;
|
|
2551
|
-
});
|
|
2552
|
-
};
|
|
2553
2231
|
const se_MetricTransformation = (input, context) => {
|
|
2554
|
-
return {
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
};
|
|
2232
|
+
return take(input, {
|
|
2233
|
+
defaultValue: __serializeFloat,
|
|
2234
|
+
dimensions: _json,
|
|
2235
|
+
metricName: [],
|
|
2236
|
+
metricNamespace: [],
|
|
2237
|
+
metricValue: [],
|
|
2238
|
+
unit: [],
|
|
2239
|
+
});
|
|
2562
2240
|
};
|
|
2563
2241
|
const se_MetricTransformations = (input, context) => {
|
|
2564
2242
|
return input
|
|
@@ -2567,790 +2245,68 @@ const se_MetricTransformations = (input, context) => {
|
|
|
2567
2245
|
return se_MetricTransformation(entry, context);
|
|
2568
2246
|
});
|
|
2569
2247
|
};
|
|
2570
|
-
const se_PutDataProtectionPolicyRequest = (input, context) => {
|
|
2571
|
-
return {
|
|
2572
|
-
...(input.logGroupIdentifier != null && { logGroupIdentifier: input.logGroupIdentifier }),
|
|
2573
|
-
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
2574
|
-
};
|
|
2575
|
-
};
|
|
2576
|
-
const se_PutDestinationPolicyRequest = (input, context) => {
|
|
2577
|
-
return {
|
|
2578
|
-
...(input.accessPolicy != null && { accessPolicy: input.accessPolicy }),
|
|
2579
|
-
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2580
|
-
...(input.forceUpdate != null && { forceUpdate: input.forceUpdate }),
|
|
2581
|
-
};
|
|
2582
|
-
};
|
|
2583
|
-
const se_PutDestinationRequest = (input, context) => {
|
|
2584
|
-
return {
|
|
2585
|
-
...(input.destinationName != null && { destinationName: input.destinationName }),
|
|
2586
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2587
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
2588
|
-
...(input.targetArn != null && { targetArn: input.targetArn }),
|
|
2589
|
-
};
|
|
2590
|
-
};
|
|
2591
|
-
const se_PutLogEventsRequest = (input, context) => {
|
|
2592
|
-
return {
|
|
2593
|
-
...(input.logEvents != null && { logEvents: se_InputLogEvents(input.logEvents, context) }),
|
|
2594
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2595
|
-
...(input.logStreamName != null && { logStreamName: input.logStreamName }),
|
|
2596
|
-
...(input.sequenceToken != null && { sequenceToken: input.sequenceToken }),
|
|
2597
|
-
};
|
|
2598
|
-
};
|
|
2599
2248
|
const se_PutMetricFilterRequest = (input, context) => {
|
|
2600
|
-
return {
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
metricTransformations: se_MetricTransformations(input.metricTransformations, context),
|
|
2606
|
-
}),
|
|
2607
|
-
};
|
|
2608
|
-
};
|
|
2609
|
-
const se_PutQueryDefinitionRequest = (input, context) => {
|
|
2610
|
-
return {
|
|
2611
|
-
...(input.logGroupNames != null && { logGroupNames: se_LogGroupNames(input.logGroupNames, context) }),
|
|
2612
|
-
...(input.name != null && { name: input.name }),
|
|
2613
|
-
...(input.queryDefinitionId != null && { queryDefinitionId: input.queryDefinitionId }),
|
|
2614
|
-
...(input.queryString != null && { queryString: input.queryString }),
|
|
2615
|
-
};
|
|
2616
|
-
};
|
|
2617
|
-
const se_PutResourcePolicyRequest = (input, context) => {
|
|
2618
|
-
return {
|
|
2619
|
-
...(input.policyDocument != null && { policyDocument: input.policyDocument }),
|
|
2620
|
-
...(input.policyName != null && { policyName: input.policyName }),
|
|
2621
|
-
};
|
|
2622
|
-
};
|
|
2623
|
-
const se_PutRetentionPolicyRequest = (input, context) => {
|
|
2624
|
-
return {
|
|
2625
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2626
|
-
...(input.retentionInDays != null && { retentionInDays: input.retentionInDays }),
|
|
2627
|
-
};
|
|
2628
|
-
};
|
|
2629
|
-
const se_PutSubscriptionFilterRequest = (input, context) => {
|
|
2630
|
-
return {
|
|
2631
|
-
...(input.destinationArn != null && { destinationArn: input.destinationArn }),
|
|
2632
|
-
...(input.distribution != null && { distribution: input.distribution }),
|
|
2633
|
-
...(input.filterName != null && { filterName: input.filterName }),
|
|
2634
|
-
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2635
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2636
|
-
...(input.roleArn != null && { roleArn: input.roleArn }),
|
|
2637
|
-
};
|
|
2638
|
-
};
|
|
2639
|
-
const se_StartQueryRequest = (input, context) => {
|
|
2640
|
-
return {
|
|
2641
|
-
...(input.endTime != null && { endTime: input.endTime }),
|
|
2642
|
-
...(input.limit != null && { limit: input.limit }),
|
|
2643
|
-
...(input.logGroupIdentifiers != null && {
|
|
2644
|
-
logGroupIdentifiers: se_LogGroupIdentifiers(input.logGroupIdentifiers, context),
|
|
2645
|
-
}),
|
|
2646
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2647
|
-
...(input.logGroupNames != null && { logGroupNames: se_LogGroupNames(input.logGroupNames, context) }),
|
|
2648
|
-
...(input.queryString != null && { queryString: input.queryString }),
|
|
2649
|
-
...(input.startTime != null && { startTime: input.startTime }),
|
|
2650
|
-
};
|
|
2651
|
-
};
|
|
2652
|
-
const se_StopQueryRequest = (input, context) => {
|
|
2653
|
-
return {
|
|
2654
|
-
...(input.queryId != null && { queryId: input.queryId }),
|
|
2655
|
-
};
|
|
2656
|
-
};
|
|
2657
|
-
const se_TagKeyList = (input, context) => {
|
|
2658
|
-
return input
|
|
2659
|
-
.filter((e) => e != null)
|
|
2660
|
-
.map((entry) => {
|
|
2661
|
-
return entry;
|
|
2662
|
-
});
|
|
2663
|
-
};
|
|
2664
|
-
const se_TagList = (input, context) => {
|
|
2665
|
-
return input
|
|
2666
|
-
.filter((e) => e != null)
|
|
2667
|
-
.map((entry) => {
|
|
2668
|
-
return entry;
|
|
2669
|
-
});
|
|
2670
|
-
};
|
|
2671
|
-
const se_TagLogGroupRequest = (input, context) => {
|
|
2672
|
-
return {
|
|
2673
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2674
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
2675
|
-
};
|
|
2676
|
-
};
|
|
2677
|
-
const se_TagResourceRequest = (input, context) => {
|
|
2678
|
-
return {
|
|
2679
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2680
|
-
...(input.tags != null && { tags: se_Tags(input.tags, context) }),
|
|
2681
|
-
};
|
|
2682
|
-
};
|
|
2683
|
-
const se_Tags = (input, context) => {
|
|
2684
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
2685
|
-
if (value === null) {
|
|
2686
|
-
return acc;
|
|
2687
|
-
}
|
|
2688
|
-
acc[key] = value;
|
|
2689
|
-
return acc;
|
|
2690
|
-
}, {});
|
|
2691
|
-
};
|
|
2692
|
-
const se_TestEventMessages = (input, context) => {
|
|
2693
|
-
return input
|
|
2694
|
-
.filter((e) => e != null)
|
|
2695
|
-
.map((entry) => {
|
|
2696
|
-
return entry;
|
|
2249
|
+
return take(input, {
|
|
2250
|
+
filterName: [],
|
|
2251
|
+
filterPattern: [],
|
|
2252
|
+
logGroupName: [],
|
|
2253
|
+
metricTransformations: (_) => se_MetricTransformations(_, context),
|
|
2697
2254
|
});
|
|
2698
2255
|
};
|
|
2699
|
-
const se_TestMetricFilterRequest = (input, context) => {
|
|
2700
|
-
return {
|
|
2701
|
-
...(input.filterPattern != null && { filterPattern: input.filterPattern }),
|
|
2702
|
-
...(input.logEventMessages != null && { logEventMessages: se_TestEventMessages(input.logEventMessages, context) }),
|
|
2703
|
-
};
|
|
2704
|
-
};
|
|
2705
|
-
const se_UntagLogGroupRequest = (input, context) => {
|
|
2706
|
-
return {
|
|
2707
|
-
...(input.logGroupName != null && { logGroupName: input.logGroupName }),
|
|
2708
|
-
...(input.tags != null && { tags: se_TagList(input.tags, context) }),
|
|
2709
|
-
};
|
|
2710
|
-
};
|
|
2711
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
2712
|
-
return {
|
|
2713
|
-
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
2714
|
-
...(input.tagKeys != null && { tagKeys: se_TagKeyList(input.tagKeys, context) }),
|
|
2715
|
-
};
|
|
2716
|
-
};
|
|
2717
|
-
const de_CreateExportTaskResponse = (output, context) => {
|
|
2718
|
-
return {
|
|
2719
|
-
taskId: __expectString(output.taskId),
|
|
2720
|
-
};
|
|
2721
|
-
};
|
|
2722
|
-
const de_DataAlreadyAcceptedException = (output, context) => {
|
|
2723
|
-
return {
|
|
2724
|
-
expectedSequenceToken: __expectString(output.expectedSequenceToken),
|
|
2725
|
-
message: __expectString(output.message),
|
|
2726
|
-
};
|
|
2727
|
-
};
|
|
2728
|
-
const de_DeleteQueryDefinitionResponse = (output, context) => {
|
|
2729
|
-
return {
|
|
2730
|
-
success: __expectBoolean(output.success),
|
|
2731
|
-
};
|
|
2732
|
-
};
|
|
2733
|
-
const de_DescribeDestinationsResponse = (output, context) => {
|
|
2734
|
-
return {
|
|
2735
|
-
destinations: output.destinations != null ? de_Destinations(output.destinations, context) : undefined,
|
|
2736
|
-
nextToken: __expectString(output.nextToken),
|
|
2737
|
-
};
|
|
2738
|
-
};
|
|
2739
|
-
const de_DescribeExportTasksResponse = (output, context) => {
|
|
2740
|
-
return {
|
|
2741
|
-
exportTasks: output.exportTasks != null ? de_ExportTasks(output.exportTasks, context) : undefined,
|
|
2742
|
-
nextToken: __expectString(output.nextToken),
|
|
2743
|
-
};
|
|
2744
|
-
};
|
|
2745
|
-
const de_DescribeLogGroupsResponse = (output, context) => {
|
|
2746
|
-
return {
|
|
2747
|
-
logGroups: output.logGroups != null ? de_LogGroups(output.logGroups, context) : undefined,
|
|
2748
|
-
nextToken: __expectString(output.nextToken),
|
|
2749
|
-
};
|
|
2750
|
-
};
|
|
2751
|
-
const de_DescribeLogStreamsResponse = (output, context) => {
|
|
2752
|
-
return {
|
|
2753
|
-
logStreams: output.logStreams != null ? de_LogStreams(output.logStreams, context) : undefined,
|
|
2754
|
-
nextToken: __expectString(output.nextToken),
|
|
2755
|
-
};
|
|
2756
|
-
};
|
|
2757
2256
|
const de_DescribeMetricFiltersResponse = (output, context) => {
|
|
2758
|
-
return {
|
|
2759
|
-
metricFilters:
|
|
2760
|
-
nextToken: __expectString
|
|
2761
|
-
};
|
|
2762
|
-
};
|
|
2763
|
-
const de_DescribeQueriesResponse = (output, context) => {
|
|
2764
|
-
return {
|
|
2765
|
-
nextToken: __expectString(output.nextToken),
|
|
2766
|
-
queries: output.queries != null ? de_QueryInfoList(output.queries, context) : undefined,
|
|
2767
|
-
};
|
|
2768
|
-
};
|
|
2769
|
-
const de_DescribeQueryDefinitionsResponse = (output, context) => {
|
|
2770
|
-
return {
|
|
2771
|
-
nextToken: __expectString(output.nextToken),
|
|
2772
|
-
queryDefinitions: output.queryDefinitions != null ? de_QueryDefinitionList(output.queryDefinitions, context) : undefined,
|
|
2773
|
-
};
|
|
2774
|
-
};
|
|
2775
|
-
const de_DescribeResourcePoliciesResponse = (output, context) => {
|
|
2776
|
-
return {
|
|
2777
|
-
nextToken: __expectString(output.nextToken),
|
|
2778
|
-
resourcePolicies: output.resourcePolicies != null ? de_ResourcePolicies(output.resourcePolicies, context) : undefined,
|
|
2779
|
-
};
|
|
2780
|
-
};
|
|
2781
|
-
const de_DescribeSubscriptionFiltersResponse = (output, context) => {
|
|
2782
|
-
return {
|
|
2783
|
-
nextToken: __expectString(output.nextToken),
|
|
2784
|
-
subscriptionFilters: output.subscriptionFilters != null ? de_SubscriptionFilters(output.subscriptionFilters, context) : undefined,
|
|
2785
|
-
};
|
|
2786
|
-
};
|
|
2787
|
-
const de_Destination = (output, context) => {
|
|
2788
|
-
return {
|
|
2789
|
-
accessPolicy: __expectString(output.accessPolicy),
|
|
2790
|
-
arn: __expectString(output.arn),
|
|
2791
|
-
creationTime: __expectLong(output.creationTime),
|
|
2792
|
-
destinationName: __expectString(output.destinationName),
|
|
2793
|
-
roleArn: __expectString(output.roleArn),
|
|
2794
|
-
targetArn: __expectString(output.targetArn),
|
|
2795
|
-
};
|
|
2796
|
-
};
|
|
2797
|
-
const de_Destinations = (output, context) => {
|
|
2798
|
-
const retVal = (output || [])
|
|
2799
|
-
.filter((e) => e != null)
|
|
2800
|
-
.map((entry) => {
|
|
2801
|
-
if (entry === null) {
|
|
2802
|
-
return null;
|
|
2803
|
-
}
|
|
2804
|
-
return de_Destination(entry, context);
|
|
2257
|
+
return take(output, {
|
|
2258
|
+
metricFilters: (_) => de_MetricFilters(_, context),
|
|
2259
|
+
nextToken: __expectString,
|
|
2805
2260
|
});
|
|
2806
|
-
return retVal;
|
|
2807
|
-
};
|
|
2808
|
-
const de_Dimensions = (output, context) => {
|
|
2809
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2810
|
-
if (value === null) {
|
|
2811
|
-
return acc;
|
|
2812
|
-
}
|
|
2813
|
-
acc[key] = __expectString(value);
|
|
2814
|
-
return acc;
|
|
2815
|
-
}, {});
|
|
2816
|
-
};
|
|
2817
|
-
const de_ExportTask = (output, context) => {
|
|
2818
|
-
return {
|
|
2819
|
-
destination: __expectString(output.destination),
|
|
2820
|
-
destinationPrefix: __expectString(output.destinationPrefix),
|
|
2821
|
-
executionInfo: output.executionInfo != null ? de_ExportTaskExecutionInfo(output.executionInfo, context) : undefined,
|
|
2822
|
-
from: __expectLong(output.from),
|
|
2823
|
-
logGroupName: __expectString(output.logGroupName),
|
|
2824
|
-
status: output.status != null ? de_ExportTaskStatus(output.status, context) : undefined,
|
|
2825
|
-
taskId: __expectString(output.taskId),
|
|
2826
|
-
taskName: __expectString(output.taskName),
|
|
2827
|
-
to: __expectLong(output.to),
|
|
2828
|
-
};
|
|
2829
|
-
};
|
|
2830
|
-
const de_ExportTaskExecutionInfo = (output, context) => {
|
|
2831
|
-
return {
|
|
2832
|
-
completionTime: __expectLong(output.completionTime),
|
|
2833
|
-
creationTime: __expectLong(output.creationTime),
|
|
2834
|
-
};
|
|
2835
|
-
};
|
|
2836
|
-
const de_ExportTasks = (output, context) => {
|
|
2837
|
-
const retVal = (output || [])
|
|
2838
|
-
.filter((e) => e != null)
|
|
2839
|
-
.map((entry) => {
|
|
2840
|
-
if (entry === null) {
|
|
2841
|
-
return null;
|
|
2842
|
-
}
|
|
2843
|
-
return de_ExportTask(entry, context);
|
|
2844
|
-
});
|
|
2845
|
-
return retVal;
|
|
2846
|
-
};
|
|
2847
|
-
const de_ExportTaskStatus = (output, context) => {
|
|
2848
|
-
return {
|
|
2849
|
-
code: __expectString(output.code),
|
|
2850
|
-
message: __expectString(output.message),
|
|
2851
|
-
};
|
|
2852
|
-
};
|
|
2853
|
-
const de_ExtractedValues = (output, context) => {
|
|
2854
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2855
|
-
if (value === null) {
|
|
2856
|
-
return acc;
|
|
2857
|
-
}
|
|
2858
|
-
acc[key] = __expectString(value);
|
|
2859
|
-
return acc;
|
|
2860
|
-
}, {});
|
|
2861
|
-
};
|
|
2862
|
-
const de_FilteredLogEvent = (output, context) => {
|
|
2863
|
-
return {
|
|
2864
|
-
eventId: __expectString(output.eventId),
|
|
2865
|
-
ingestionTime: __expectLong(output.ingestionTime),
|
|
2866
|
-
logStreamName: __expectString(output.logStreamName),
|
|
2867
|
-
message: __expectString(output.message),
|
|
2868
|
-
timestamp: __expectLong(output.timestamp),
|
|
2869
|
-
};
|
|
2870
|
-
};
|
|
2871
|
-
const de_FilteredLogEvents = (output, context) => {
|
|
2872
|
-
const retVal = (output || [])
|
|
2873
|
-
.filter((e) => e != null)
|
|
2874
|
-
.map((entry) => {
|
|
2875
|
-
if (entry === null) {
|
|
2876
|
-
return null;
|
|
2877
|
-
}
|
|
2878
|
-
return de_FilteredLogEvent(entry, context);
|
|
2879
|
-
});
|
|
2880
|
-
return retVal;
|
|
2881
|
-
};
|
|
2882
|
-
const de_FilterLogEventsResponse = (output, context) => {
|
|
2883
|
-
return {
|
|
2884
|
-
events: output.events != null ? de_FilteredLogEvents(output.events, context) : undefined,
|
|
2885
|
-
nextToken: __expectString(output.nextToken),
|
|
2886
|
-
searchedLogStreams: output.searchedLogStreams != null ? de_SearchedLogStreams(output.searchedLogStreams, context) : undefined,
|
|
2887
|
-
};
|
|
2888
|
-
};
|
|
2889
|
-
const de_GetDataProtectionPolicyResponse = (output, context) => {
|
|
2890
|
-
return {
|
|
2891
|
-
lastUpdatedTime: __expectLong(output.lastUpdatedTime),
|
|
2892
|
-
logGroupIdentifier: __expectString(output.logGroupIdentifier),
|
|
2893
|
-
policyDocument: __expectString(output.policyDocument),
|
|
2894
|
-
};
|
|
2895
|
-
};
|
|
2896
|
-
const de_GetLogEventsResponse = (output, context) => {
|
|
2897
|
-
return {
|
|
2898
|
-
events: output.events != null ? de_OutputLogEvents(output.events, context) : undefined,
|
|
2899
|
-
nextBackwardToken: __expectString(output.nextBackwardToken),
|
|
2900
|
-
nextForwardToken: __expectString(output.nextForwardToken),
|
|
2901
|
-
};
|
|
2902
|
-
};
|
|
2903
|
-
const de_GetLogGroupFieldsResponse = (output, context) => {
|
|
2904
|
-
return {
|
|
2905
|
-
logGroupFields: output.logGroupFields != null ? de_LogGroupFieldList(output.logGroupFields, context) : undefined,
|
|
2906
|
-
};
|
|
2907
|
-
};
|
|
2908
|
-
const de_GetLogRecordResponse = (output, context) => {
|
|
2909
|
-
return {
|
|
2910
|
-
logRecord: output.logRecord != null ? de_LogRecord(output.logRecord, context) : undefined,
|
|
2911
|
-
};
|
|
2912
2261
|
};
|
|
2913
2262
|
const de_GetQueryResultsResponse = (output, context) => {
|
|
2914
|
-
return {
|
|
2915
|
-
results:
|
|
2916
|
-
statistics:
|
|
2917
|
-
status: __expectString
|
|
2918
|
-
};
|
|
2919
|
-
};
|
|
2920
|
-
const de_InvalidOperationException = (output, context) => {
|
|
2921
|
-
return {
|
|
2922
|
-
message: __expectString(output.message),
|
|
2923
|
-
};
|
|
2924
|
-
};
|
|
2925
|
-
const de_InvalidParameterException = (output, context) => {
|
|
2926
|
-
return {
|
|
2927
|
-
message: __expectString(output.message),
|
|
2928
|
-
};
|
|
2929
|
-
};
|
|
2930
|
-
const de_InvalidSequenceTokenException = (output, context) => {
|
|
2931
|
-
return {
|
|
2932
|
-
expectedSequenceToken: __expectString(output.expectedSequenceToken),
|
|
2933
|
-
message: __expectString(output.message),
|
|
2934
|
-
};
|
|
2935
|
-
};
|
|
2936
|
-
const de_LimitExceededException = (output, context) => {
|
|
2937
|
-
return {
|
|
2938
|
-
message: __expectString(output.message),
|
|
2939
|
-
};
|
|
2940
|
-
};
|
|
2941
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
2942
|
-
return {
|
|
2943
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2944
|
-
};
|
|
2945
|
-
};
|
|
2946
|
-
const de_ListTagsLogGroupResponse = (output, context) => {
|
|
2947
|
-
return {
|
|
2948
|
-
tags: output.tags != null ? de_Tags(output.tags, context) : undefined,
|
|
2949
|
-
};
|
|
2950
|
-
};
|
|
2951
|
-
const de_LogGroup = (output, context) => {
|
|
2952
|
-
return {
|
|
2953
|
-
arn: __expectString(output.arn),
|
|
2954
|
-
creationTime: __expectLong(output.creationTime),
|
|
2955
|
-
dataProtectionStatus: __expectString(output.dataProtectionStatus),
|
|
2956
|
-
kmsKeyId: __expectString(output.kmsKeyId),
|
|
2957
|
-
logGroupName: __expectString(output.logGroupName),
|
|
2958
|
-
metricFilterCount: __expectInt32(output.metricFilterCount),
|
|
2959
|
-
retentionInDays: __expectInt32(output.retentionInDays),
|
|
2960
|
-
storedBytes: __expectLong(output.storedBytes),
|
|
2961
|
-
};
|
|
2962
|
-
};
|
|
2963
|
-
const de_LogGroupField = (output, context) => {
|
|
2964
|
-
return {
|
|
2965
|
-
name: __expectString(output.name),
|
|
2966
|
-
percent: __expectInt32(output.percent),
|
|
2967
|
-
};
|
|
2968
|
-
};
|
|
2969
|
-
const de_LogGroupFieldList = (output, context) => {
|
|
2970
|
-
const retVal = (output || [])
|
|
2971
|
-
.filter((e) => e != null)
|
|
2972
|
-
.map((entry) => {
|
|
2973
|
-
if (entry === null) {
|
|
2974
|
-
return null;
|
|
2975
|
-
}
|
|
2976
|
-
return de_LogGroupField(entry, context);
|
|
2977
|
-
});
|
|
2978
|
-
return retVal;
|
|
2979
|
-
};
|
|
2980
|
-
const de_LogGroupNames = (output, context) => {
|
|
2981
|
-
const retVal = (output || [])
|
|
2982
|
-
.filter((e) => e != null)
|
|
2983
|
-
.map((entry) => {
|
|
2984
|
-
if (entry === null) {
|
|
2985
|
-
return null;
|
|
2986
|
-
}
|
|
2987
|
-
return __expectString(entry);
|
|
2988
|
-
});
|
|
2989
|
-
return retVal;
|
|
2990
|
-
};
|
|
2991
|
-
const de_LogGroups = (output, context) => {
|
|
2992
|
-
const retVal = (output || [])
|
|
2993
|
-
.filter((e) => e != null)
|
|
2994
|
-
.map((entry) => {
|
|
2995
|
-
if (entry === null) {
|
|
2996
|
-
return null;
|
|
2997
|
-
}
|
|
2998
|
-
return de_LogGroup(entry, context);
|
|
2263
|
+
return take(output, {
|
|
2264
|
+
results: _json,
|
|
2265
|
+
statistics: (_) => de_QueryStatistics(_, context),
|
|
2266
|
+
status: __expectString,
|
|
2999
2267
|
});
|
|
3000
|
-
return retVal;
|
|
3001
|
-
};
|
|
3002
|
-
const de_LogRecord = (output, context) => {
|
|
3003
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3004
|
-
if (value === null) {
|
|
3005
|
-
return acc;
|
|
3006
|
-
}
|
|
3007
|
-
acc[key] = __expectString(value);
|
|
3008
|
-
return acc;
|
|
3009
|
-
}, {});
|
|
3010
|
-
};
|
|
3011
|
-
const de_LogStream = (output, context) => {
|
|
3012
|
-
return {
|
|
3013
|
-
arn: __expectString(output.arn),
|
|
3014
|
-
creationTime: __expectLong(output.creationTime),
|
|
3015
|
-
firstEventTimestamp: __expectLong(output.firstEventTimestamp),
|
|
3016
|
-
lastEventTimestamp: __expectLong(output.lastEventTimestamp),
|
|
3017
|
-
lastIngestionTime: __expectLong(output.lastIngestionTime),
|
|
3018
|
-
logStreamName: __expectString(output.logStreamName),
|
|
3019
|
-
storedBytes: __expectLong(output.storedBytes),
|
|
3020
|
-
uploadSequenceToken: __expectString(output.uploadSequenceToken),
|
|
3021
|
-
};
|
|
3022
|
-
};
|
|
3023
|
-
const de_LogStreams = (output, context) => {
|
|
3024
|
-
const retVal = (output || [])
|
|
3025
|
-
.filter((e) => e != null)
|
|
3026
|
-
.map((entry) => {
|
|
3027
|
-
if (entry === null) {
|
|
3028
|
-
return null;
|
|
3029
|
-
}
|
|
3030
|
-
return de_LogStream(entry, context);
|
|
3031
|
-
});
|
|
3032
|
-
return retVal;
|
|
3033
|
-
};
|
|
3034
|
-
const de_MalformedQueryException = (output, context) => {
|
|
3035
|
-
return {
|
|
3036
|
-
message: __expectString(output.message),
|
|
3037
|
-
queryCompileError: output.queryCompileError != null ? de_QueryCompileError(output.queryCompileError, context) : undefined,
|
|
3038
|
-
};
|
|
3039
2268
|
};
|
|
3040
2269
|
const de_MetricFilter = (output, context) => {
|
|
3041
|
-
return {
|
|
3042
|
-
creationTime: __expectLong
|
|
3043
|
-
filterName: __expectString
|
|
3044
|
-
filterPattern: __expectString
|
|
3045
|
-
logGroupName: __expectString
|
|
3046
|
-
metricTransformations:
|
|
3047
|
-
? de_MetricTransformations(output.metricTransformations, context)
|
|
3048
|
-
: undefined,
|
|
3049
|
-
};
|
|
3050
|
-
};
|
|
3051
|
-
const de_MetricFilterMatches = (output, context) => {
|
|
3052
|
-
const retVal = (output || [])
|
|
3053
|
-
.filter((e) => e != null)
|
|
3054
|
-
.map((entry) => {
|
|
3055
|
-
if (entry === null) {
|
|
3056
|
-
return null;
|
|
3057
|
-
}
|
|
3058
|
-
return de_MetricFilterMatchRecord(entry, context);
|
|
2270
|
+
return take(output, {
|
|
2271
|
+
creationTime: __expectLong,
|
|
2272
|
+
filterName: __expectString,
|
|
2273
|
+
filterPattern: __expectString,
|
|
2274
|
+
logGroupName: __expectString,
|
|
2275
|
+
metricTransformations: (_) => de_MetricTransformations(_, context),
|
|
3059
2276
|
});
|
|
3060
|
-
return retVal;
|
|
3061
|
-
};
|
|
3062
|
-
const de_MetricFilterMatchRecord = (output, context) => {
|
|
3063
|
-
return {
|
|
3064
|
-
eventMessage: __expectString(output.eventMessage),
|
|
3065
|
-
eventNumber: __expectLong(output.eventNumber),
|
|
3066
|
-
extractedValues: output.extractedValues != null ? de_ExtractedValues(output.extractedValues, context) : undefined,
|
|
3067
|
-
};
|
|
3068
2277
|
};
|
|
3069
2278
|
const de_MetricFilters = (output, context) => {
|
|
3070
2279
|
const retVal = (output || [])
|
|
3071
2280
|
.filter((e) => e != null)
|
|
3072
2281
|
.map((entry) => {
|
|
3073
|
-
if (entry === null) {
|
|
3074
|
-
return null;
|
|
3075
|
-
}
|
|
3076
2282
|
return de_MetricFilter(entry, context);
|
|
3077
2283
|
});
|
|
3078
2284
|
return retVal;
|
|
3079
2285
|
};
|
|
3080
2286
|
const de_MetricTransformation = (output, context) => {
|
|
3081
|
-
return {
|
|
3082
|
-
defaultValue: __limitedParseDouble
|
|
3083
|
-
dimensions:
|
|
3084
|
-
metricName: __expectString
|
|
3085
|
-
metricNamespace: __expectString
|
|
3086
|
-
metricValue: __expectString
|
|
3087
|
-
unit: __expectString
|
|
3088
|
-
};
|
|
2287
|
+
return take(output, {
|
|
2288
|
+
defaultValue: __limitedParseDouble,
|
|
2289
|
+
dimensions: _json,
|
|
2290
|
+
metricName: __expectString,
|
|
2291
|
+
metricNamespace: __expectString,
|
|
2292
|
+
metricValue: __expectString,
|
|
2293
|
+
unit: __expectString,
|
|
2294
|
+
});
|
|
3089
2295
|
};
|
|
3090
2296
|
const de_MetricTransformations = (output, context) => {
|
|
3091
2297
|
const retVal = (output || [])
|
|
3092
2298
|
.filter((e) => e != null)
|
|
3093
2299
|
.map((entry) => {
|
|
3094
|
-
if (entry === null) {
|
|
3095
|
-
return null;
|
|
3096
|
-
}
|
|
3097
2300
|
return de_MetricTransformation(entry, context);
|
|
3098
2301
|
});
|
|
3099
2302
|
return retVal;
|
|
3100
2303
|
};
|
|
3101
|
-
const de_OperationAbortedException = (output, context) => {
|
|
3102
|
-
return {
|
|
3103
|
-
message: __expectString(output.message),
|
|
3104
|
-
};
|
|
3105
|
-
};
|
|
3106
|
-
const de_OutputLogEvent = (output, context) => {
|
|
3107
|
-
return {
|
|
3108
|
-
ingestionTime: __expectLong(output.ingestionTime),
|
|
3109
|
-
message: __expectString(output.message),
|
|
3110
|
-
timestamp: __expectLong(output.timestamp),
|
|
3111
|
-
};
|
|
3112
|
-
};
|
|
3113
|
-
const de_OutputLogEvents = (output, context) => {
|
|
3114
|
-
const retVal = (output || [])
|
|
3115
|
-
.filter((e) => e != null)
|
|
3116
|
-
.map((entry) => {
|
|
3117
|
-
if (entry === null) {
|
|
3118
|
-
return null;
|
|
3119
|
-
}
|
|
3120
|
-
return de_OutputLogEvent(entry, context);
|
|
3121
|
-
});
|
|
3122
|
-
return retVal;
|
|
3123
|
-
};
|
|
3124
|
-
const de_PutDataProtectionPolicyResponse = (output, context) => {
|
|
3125
|
-
return {
|
|
3126
|
-
lastUpdatedTime: __expectLong(output.lastUpdatedTime),
|
|
3127
|
-
logGroupIdentifier: __expectString(output.logGroupIdentifier),
|
|
3128
|
-
policyDocument: __expectString(output.policyDocument),
|
|
3129
|
-
};
|
|
3130
|
-
};
|
|
3131
|
-
const de_PutDestinationResponse = (output, context) => {
|
|
3132
|
-
return {
|
|
3133
|
-
destination: output.destination != null ? de_Destination(output.destination, context) : undefined,
|
|
3134
|
-
};
|
|
3135
|
-
};
|
|
3136
|
-
const de_PutLogEventsResponse = (output, context) => {
|
|
3137
|
-
return {
|
|
3138
|
-
nextSequenceToken: __expectString(output.nextSequenceToken),
|
|
3139
|
-
rejectedLogEventsInfo: output.rejectedLogEventsInfo != null
|
|
3140
|
-
? de_RejectedLogEventsInfo(output.rejectedLogEventsInfo, context)
|
|
3141
|
-
: undefined,
|
|
3142
|
-
};
|
|
3143
|
-
};
|
|
3144
|
-
const de_PutQueryDefinitionResponse = (output, context) => {
|
|
3145
|
-
return {
|
|
3146
|
-
queryDefinitionId: __expectString(output.queryDefinitionId),
|
|
3147
|
-
};
|
|
3148
|
-
};
|
|
3149
|
-
const de_PutResourcePolicyResponse = (output, context) => {
|
|
3150
|
-
return {
|
|
3151
|
-
resourcePolicy: output.resourcePolicy != null ? de_ResourcePolicy(output.resourcePolicy, context) : undefined,
|
|
3152
|
-
};
|
|
3153
|
-
};
|
|
3154
|
-
const de_QueryCompileError = (output, context) => {
|
|
3155
|
-
return {
|
|
3156
|
-
location: output.location != null ? de_QueryCompileErrorLocation(output.location, context) : undefined,
|
|
3157
|
-
message: __expectString(output.message),
|
|
3158
|
-
};
|
|
3159
|
-
};
|
|
3160
|
-
const de_QueryCompileErrorLocation = (output, context) => {
|
|
3161
|
-
return {
|
|
3162
|
-
endCharOffset: __expectInt32(output.endCharOffset),
|
|
3163
|
-
startCharOffset: __expectInt32(output.startCharOffset),
|
|
3164
|
-
};
|
|
3165
|
-
};
|
|
3166
|
-
const de_QueryDefinition = (output, context) => {
|
|
3167
|
-
return {
|
|
3168
|
-
lastModified: __expectLong(output.lastModified),
|
|
3169
|
-
logGroupNames: output.logGroupNames != null ? de_LogGroupNames(output.logGroupNames, context) : undefined,
|
|
3170
|
-
name: __expectString(output.name),
|
|
3171
|
-
queryDefinitionId: __expectString(output.queryDefinitionId),
|
|
3172
|
-
queryString: __expectString(output.queryString),
|
|
3173
|
-
};
|
|
3174
|
-
};
|
|
3175
|
-
const de_QueryDefinitionList = (output, context) => {
|
|
3176
|
-
const retVal = (output || [])
|
|
3177
|
-
.filter((e) => e != null)
|
|
3178
|
-
.map((entry) => {
|
|
3179
|
-
if (entry === null) {
|
|
3180
|
-
return null;
|
|
3181
|
-
}
|
|
3182
|
-
return de_QueryDefinition(entry, context);
|
|
3183
|
-
});
|
|
3184
|
-
return retVal;
|
|
3185
|
-
};
|
|
3186
|
-
const de_QueryInfo = (output, context) => {
|
|
3187
|
-
return {
|
|
3188
|
-
createTime: __expectLong(output.createTime),
|
|
3189
|
-
logGroupName: __expectString(output.logGroupName),
|
|
3190
|
-
queryId: __expectString(output.queryId),
|
|
3191
|
-
queryString: __expectString(output.queryString),
|
|
3192
|
-
status: __expectString(output.status),
|
|
3193
|
-
};
|
|
3194
|
-
};
|
|
3195
|
-
const de_QueryInfoList = (output, context) => {
|
|
3196
|
-
const retVal = (output || [])
|
|
3197
|
-
.filter((e) => e != null)
|
|
3198
|
-
.map((entry) => {
|
|
3199
|
-
if (entry === null) {
|
|
3200
|
-
return null;
|
|
3201
|
-
}
|
|
3202
|
-
return de_QueryInfo(entry, context);
|
|
3203
|
-
});
|
|
3204
|
-
return retVal;
|
|
3205
|
-
};
|
|
3206
|
-
const de_QueryResults = (output, context) => {
|
|
3207
|
-
const retVal = (output || [])
|
|
3208
|
-
.filter((e) => e != null)
|
|
3209
|
-
.map((entry) => {
|
|
3210
|
-
if (entry === null) {
|
|
3211
|
-
return null;
|
|
3212
|
-
}
|
|
3213
|
-
return de_ResultRows(entry, context);
|
|
3214
|
-
});
|
|
3215
|
-
return retVal;
|
|
3216
|
-
};
|
|
3217
2304
|
const de_QueryStatistics = (output, context) => {
|
|
3218
|
-
return {
|
|
3219
|
-
bytesScanned: __limitedParseDouble
|
|
3220
|
-
recordsMatched: __limitedParseDouble
|
|
3221
|
-
recordsScanned: __limitedParseDouble
|
|
3222
|
-
};
|
|
3223
|
-
};
|
|
3224
|
-
const de_RejectedLogEventsInfo = (output, context) => {
|
|
3225
|
-
return {
|
|
3226
|
-
expiredLogEventEndIndex: __expectInt32(output.expiredLogEventEndIndex),
|
|
3227
|
-
tooNewLogEventStartIndex: __expectInt32(output.tooNewLogEventStartIndex),
|
|
3228
|
-
tooOldLogEventEndIndex: __expectInt32(output.tooOldLogEventEndIndex),
|
|
3229
|
-
};
|
|
3230
|
-
};
|
|
3231
|
-
const de_ResourceAlreadyExistsException = (output, context) => {
|
|
3232
|
-
return {
|
|
3233
|
-
message: __expectString(output.message),
|
|
3234
|
-
};
|
|
3235
|
-
};
|
|
3236
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
3237
|
-
return {
|
|
3238
|
-
message: __expectString(output.message),
|
|
3239
|
-
};
|
|
3240
|
-
};
|
|
3241
|
-
const de_ResourcePolicies = (output, context) => {
|
|
3242
|
-
const retVal = (output || [])
|
|
3243
|
-
.filter((e) => e != null)
|
|
3244
|
-
.map((entry) => {
|
|
3245
|
-
if (entry === null) {
|
|
3246
|
-
return null;
|
|
3247
|
-
}
|
|
3248
|
-
return de_ResourcePolicy(entry, context);
|
|
3249
|
-
});
|
|
3250
|
-
return retVal;
|
|
3251
|
-
};
|
|
3252
|
-
const de_ResourcePolicy = (output, context) => {
|
|
3253
|
-
return {
|
|
3254
|
-
lastUpdatedTime: __expectLong(output.lastUpdatedTime),
|
|
3255
|
-
policyDocument: __expectString(output.policyDocument),
|
|
3256
|
-
policyName: __expectString(output.policyName),
|
|
3257
|
-
};
|
|
3258
|
-
};
|
|
3259
|
-
const de_ResultField = (output, context) => {
|
|
3260
|
-
return {
|
|
3261
|
-
field: __expectString(output.field),
|
|
3262
|
-
value: __expectString(output.value),
|
|
3263
|
-
};
|
|
3264
|
-
};
|
|
3265
|
-
const de_ResultRows = (output, context) => {
|
|
3266
|
-
const retVal = (output || [])
|
|
3267
|
-
.filter((e) => e != null)
|
|
3268
|
-
.map((entry) => {
|
|
3269
|
-
if (entry === null) {
|
|
3270
|
-
return null;
|
|
3271
|
-
}
|
|
3272
|
-
return de_ResultField(entry, context);
|
|
3273
|
-
});
|
|
3274
|
-
return retVal;
|
|
3275
|
-
};
|
|
3276
|
-
const de_SearchedLogStream = (output, context) => {
|
|
3277
|
-
return {
|
|
3278
|
-
logStreamName: __expectString(output.logStreamName),
|
|
3279
|
-
searchedCompletely: __expectBoolean(output.searchedCompletely),
|
|
3280
|
-
};
|
|
3281
|
-
};
|
|
3282
|
-
const de_SearchedLogStreams = (output, context) => {
|
|
3283
|
-
const retVal = (output || [])
|
|
3284
|
-
.filter((e) => e != null)
|
|
3285
|
-
.map((entry) => {
|
|
3286
|
-
if (entry === null) {
|
|
3287
|
-
return null;
|
|
3288
|
-
}
|
|
3289
|
-
return de_SearchedLogStream(entry, context);
|
|
3290
|
-
});
|
|
3291
|
-
return retVal;
|
|
3292
|
-
};
|
|
3293
|
-
const de_ServiceUnavailableException = (output, context) => {
|
|
3294
|
-
return {
|
|
3295
|
-
message: __expectString(output.message),
|
|
3296
|
-
};
|
|
3297
|
-
};
|
|
3298
|
-
const de_StartQueryResponse = (output, context) => {
|
|
3299
|
-
return {
|
|
3300
|
-
queryId: __expectString(output.queryId),
|
|
3301
|
-
};
|
|
3302
|
-
};
|
|
3303
|
-
const de_StopQueryResponse = (output, context) => {
|
|
3304
|
-
return {
|
|
3305
|
-
success: __expectBoolean(output.success),
|
|
3306
|
-
};
|
|
3307
|
-
};
|
|
3308
|
-
const de_SubscriptionFilter = (output, context) => {
|
|
3309
|
-
return {
|
|
3310
|
-
creationTime: __expectLong(output.creationTime),
|
|
3311
|
-
destinationArn: __expectString(output.destinationArn),
|
|
3312
|
-
distribution: __expectString(output.distribution),
|
|
3313
|
-
filterName: __expectString(output.filterName),
|
|
3314
|
-
filterPattern: __expectString(output.filterPattern),
|
|
3315
|
-
logGroupName: __expectString(output.logGroupName),
|
|
3316
|
-
roleArn: __expectString(output.roleArn),
|
|
3317
|
-
};
|
|
3318
|
-
};
|
|
3319
|
-
const de_SubscriptionFilters = (output, context) => {
|
|
3320
|
-
const retVal = (output || [])
|
|
3321
|
-
.filter((e) => e != null)
|
|
3322
|
-
.map((entry) => {
|
|
3323
|
-
if (entry === null) {
|
|
3324
|
-
return null;
|
|
3325
|
-
}
|
|
3326
|
-
return de_SubscriptionFilter(entry, context);
|
|
2305
|
+
return take(output, {
|
|
2306
|
+
bytesScanned: __limitedParseDouble,
|
|
2307
|
+
recordsMatched: __limitedParseDouble,
|
|
2308
|
+
recordsScanned: __limitedParseDouble,
|
|
3327
2309
|
});
|
|
3328
|
-
return retVal;
|
|
3329
|
-
};
|
|
3330
|
-
const de_Tags = (output, context) => {
|
|
3331
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3332
|
-
if (value === null) {
|
|
3333
|
-
return acc;
|
|
3334
|
-
}
|
|
3335
|
-
acc[key] = __expectString(value);
|
|
3336
|
-
return acc;
|
|
3337
|
-
}, {});
|
|
3338
|
-
};
|
|
3339
|
-
const de_TestMetricFilterResponse = (output, context) => {
|
|
3340
|
-
return {
|
|
3341
|
-
matches: output.matches != null ? de_MetricFilterMatches(output.matches, context) : undefined,
|
|
3342
|
-
};
|
|
3343
|
-
};
|
|
3344
|
-
const de_TooManyTagsException = (output, context) => {
|
|
3345
|
-
return {
|
|
3346
|
-
message: __expectString(output.message),
|
|
3347
|
-
resourceName: __expectString(output.resourceName),
|
|
3348
|
-
};
|
|
3349
|
-
};
|
|
3350
|
-
const de_UnrecognizedClientException = (output, context) => {
|
|
3351
|
-
return {
|
|
3352
|
-
message: __expectString(output.message),
|
|
3353
|
-
};
|
|
3354
2310
|
};
|
|
3355
2311
|
const deserializeMetadata = (output) => ({
|
|
3356
2312
|
httpStatusCode: output.statusCode,
|
|
@@ -3365,6 +2321,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
3365
2321
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
3366
2322
|
};
|
|
3367
2323
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2324
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
3368
2325
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
3369
2326
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
3370
2327
|
const contents = {
|