@aws-sdk/client-cloudwatch 3.310.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_query.js +118 -228
- package/dist-es/protocols/Aws_query.js +119 -229
- package/package.json +6 -6
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong,
|
|
2
|
+
import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { CloudWatchServiceException as __BaseException } from "../models/CloudWatchServiceException";
|
|
5
5
|
import { ConcurrentModificationException, DashboardInvalidInputError, DashboardNotFoundError, InternalServiceFault, InvalidFormatFault, InvalidNextToken, InvalidParameterCombinationException, InvalidParameterValueException, LimitExceededException, LimitExceededFault, MissingRequiredParameterException, ResourceNotFound, ResourceNotFoundException, } from "../models/models_0";
|
|
6
6
|
export const se_DeleteAlarmsCommand = async (input, context) => {
|
|
7
|
-
const headers =
|
|
8
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
9
|
-
};
|
|
7
|
+
const headers = SHARED_HEADERS;
|
|
10
8
|
let body;
|
|
11
9
|
body = buildFormUrlencodedString({
|
|
12
10
|
...se_DeleteAlarmsInput(input, context),
|
|
@@ -16,9 +14,7 @@ export const se_DeleteAlarmsCommand = async (input, context) => {
|
|
|
16
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
15
|
};
|
|
18
16
|
export const se_DeleteAnomalyDetectorCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
21
|
-
};
|
|
17
|
+
const headers = SHARED_HEADERS;
|
|
22
18
|
let body;
|
|
23
19
|
body = buildFormUrlencodedString({
|
|
24
20
|
...se_DeleteAnomalyDetectorInput(input, context),
|
|
@@ -28,9 +24,7 @@ export const se_DeleteAnomalyDetectorCommand = async (input, context) => {
|
|
|
28
24
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
25
|
};
|
|
30
26
|
export const se_DeleteDashboardsCommand = async (input, context) => {
|
|
31
|
-
const headers =
|
|
32
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
33
|
-
};
|
|
27
|
+
const headers = SHARED_HEADERS;
|
|
34
28
|
let body;
|
|
35
29
|
body = buildFormUrlencodedString({
|
|
36
30
|
...se_DeleteDashboardsInput(input, context),
|
|
@@ -40,9 +34,7 @@ export const se_DeleteDashboardsCommand = async (input, context) => {
|
|
|
40
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
35
|
};
|
|
42
36
|
export const se_DeleteInsightRulesCommand = async (input, context) => {
|
|
43
|
-
const headers =
|
|
44
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
45
|
-
};
|
|
37
|
+
const headers = SHARED_HEADERS;
|
|
46
38
|
let body;
|
|
47
39
|
body = buildFormUrlencodedString({
|
|
48
40
|
...se_DeleteInsightRulesInput(input, context),
|
|
@@ -52,9 +44,7 @@ export const se_DeleteInsightRulesCommand = async (input, context) => {
|
|
|
52
44
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
45
|
};
|
|
54
46
|
export const se_DeleteMetricStreamCommand = async (input, context) => {
|
|
55
|
-
const headers =
|
|
56
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
57
|
-
};
|
|
47
|
+
const headers = SHARED_HEADERS;
|
|
58
48
|
let body;
|
|
59
49
|
body = buildFormUrlencodedString({
|
|
60
50
|
...se_DeleteMetricStreamInput(input, context),
|
|
@@ -64,9 +54,7 @@ export const se_DeleteMetricStreamCommand = async (input, context) => {
|
|
|
64
54
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
55
|
};
|
|
66
56
|
export const se_DescribeAlarmHistoryCommand = async (input, context) => {
|
|
67
|
-
const headers =
|
|
68
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
69
|
-
};
|
|
57
|
+
const headers = SHARED_HEADERS;
|
|
70
58
|
let body;
|
|
71
59
|
body = buildFormUrlencodedString({
|
|
72
60
|
...se_DescribeAlarmHistoryInput(input, context),
|
|
@@ -76,9 +64,7 @@ export const se_DescribeAlarmHistoryCommand = async (input, context) => {
|
|
|
76
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
65
|
};
|
|
78
66
|
export const se_DescribeAlarmsCommand = async (input, context) => {
|
|
79
|
-
const headers =
|
|
80
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
81
|
-
};
|
|
67
|
+
const headers = SHARED_HEADERS;
|
|
82
68
|
let body;
|
|
83
69
|
body = buildFormUrlencodedString({
|
|
84
70
|
...se_DescribeAlarmsInput(input, context),
|
|
@@ -88,9 +74,7 @@ export const se_DescribeAlarmsCommand = async (input, context) => {
|
|
|
88
74
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
75
|
};
|
|
90
76
|
export const se_DescribeAlarmsForMetricCommand = async (input, context) => {
|
|
91
|
-
const headers =
|
|
92
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
93
|
-
};
|
|
77
|
+
const headers = SHARED_HEADERS;
|
|
94
78
|
let body;
|
|
95
79
|
body = buildFormUrlencodedString({
|
|
96
80
|
...se_DescribeAlarmsForMetricInput(input, context),
|
|
@@ -100,9 +84,7 @@ export const se_DescribeAlarmsForMetricCommand = async (input, context) => {
|
|
|
100
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
85
|
};
|
|
102
86
|
export const se_DescribeAnomalyDetectorsCommand = async (input, context) => {
|
|
103
|
-
const headers =
|
|
104
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
105
|
-
};
|
|
87
|
+
const headers = SHARED_HEADERS;
|
|
106
88
|
let body;
|
|
107
89
|
body = buildFormUrlencodedString({
|
|
108
90
|
...se_DescribeAnomalyDetectorsInput(input, context),
|
|
@@ -112,9 +94,7 @@ export const se_DescribeAnomalyDetectorsCommand = async (input, context) => {
|
|
|
112
94
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
95
|
};
|
|
114
96
|
export const se_DescribeInsightRulesCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
117
|
-
};
|
|
97
|
+
const headers = SHARED_HEADERS;
|
|
118
98
|
let body;
|
|
119
99
|
body = buildFormUrlencodedString({
|
|
120
100
|
...se_DescribeInsightRulesInput(input, context),
|
|
@@ -124,9 +104,7 @@ export const se_DescribeInsightRulesCommand = async (input, context) => {
|
|
|
124
104
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
105
|
};
|
|
126
106
|
export const se_DisableAlarmActionsCommand = async (input, context) => {
|
|
127
|
-
const headers =
|
|
128
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
129
|
-
};
|
|
107
|
+
const headers = SHARED_HEADERS;
|
|
130
108
|
let body;
|
|
131
109
|
body = buildFormUrlencodedString({
|
|
132
110
|
...se_DisableAlarmActionsInput(input, context),
|
|
@@ -136,9 +114,7 @@ export const se_DisableAlarmActionsCommand = async (input, context) => {
|
|
|
136
114
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
115
|
};
|
|
138
116
|
export const se_DisableInsightRulesCommand = async (input, context) => {
|
|
139
|
-
const headers =
|
|
140
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
141
|
-
};
|
|
117
|
+
const headers = SHARED_HEADERS;
|
|
142
118
|
let body;
|
|
143
119
|
body = buildFormUrlencodedString({
|
|
144
120
|
...se_DisableInsightRulesInput(input, context),
|
|
@@ -148,9 +124,7 @@ export const se_DisableInsightRulesCommand = async (input, context) => {
|
|
|
148
124
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
125
|
};
|
|
150
126
|
export const se_EnableAlarmActionsCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
153
|
-
};
|
|
127
|
+
const headers = SHARED_HEADERS;
|
|
154
128
|
let body;
|
|
155
129
|
body = buildFormUrlencodedString({
|
|
156
130
|
...se_EnableAlarmActionsInput(input, context),
|
|
@@ -160,9 +134,7 @@ export const se_EnableAlarmActionsCommand = async (input, context) => {
|
|
|
160
134
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
135
|
};
|
|
162
136
|
export const se_EnableInsightRulesCommand = async (input, context) => {
|
|
163
|
-
const headers =
|
|
164
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
165
|
-
};
|
|
137
|
+
const headers = SHARED_HEADERS;
|
|
166
138
|
let body;
|
|
167
139
|
body = buildFormUrlencodedString({
|
|
168
140
|
...se_EnableInsightRulesInput(input, context),
|
|
@@ -172,9 +144,7 @@ export const se_EnableInsightRulesCommand = async (input, context) => {
|
|
|
172
144
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
173
145
|
};
|
|
174
146
|
export const se_GetDashboardCommand = async (input, context) => {
|
|
175
|
-
const headers =
|
|
176
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
177
|
-
};
|
|
147
|
+
const headers = SHARED_HEADERS;
|
|
178
148
|
let body;
|
|
179
149
|
body = buildFormUrlencodedString({
|
|
180
150
|
...se_GetDashboardInput(input, context),
|
|
@@ -184,9 +154,7 @@ export const se_GetDashboardCommand = async (input, context) => {
|
|
|
184
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
155
|
};
|
|
186
156
|
export const se_GetInsightRuleReportCommand = async (input, context) => {
|
|
187
|
-
const headers =
|
|
188
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
189
|
-
};
|
|
157
|
+
const headers = SHARED_HEADERS;
|
|
190
158
|
let body;
|
|
191
159
|
body = buildFormUrlencodedString({
|
|
192
160
|
...se_GetInsightRuleReportInput(input, context),
|
|
@@ -196,9 +164,7 @@ export const se_GetInsightRuleReportCommand = async (input, context) => {
|
|
|
196
164
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
165
|
};
|
|
198
166
|
export const se_GetMetricDataCommand = async (input, context) => {
|
|
199
|
-
const headers =
|
|
200
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
201
|
-
};
|
|
167
|
+
const headers = SHARED_HEADERS;
|
|
202
168
|
let body;
|
|
203
169
|
body = buildFormUrlencodedString({
|
|
204
170
|
...se_GetMetricDataInput(input, context),
|
|
@@ -208,9 +174,7 @@ export const se_GetMetricDataCommand = async (input, context) => {
|
|
|
208
174
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
175
|
};
|
|
210
176
|
export const se_GetMetricStatisticsCommand = async (input, context) => {
|
|
211
|
-
const headers =
|
|
212
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
213
|
-
};
|
|
177
|
+
const headers = SHARED_HEADERS;
|
|
214
178
|
let body;
|
|
215
179
|
body = buildFormUrlencodedString({
|
|
216
180
|
...se_GetMetricStatisticsInput(input, context),
|
|
@@ -220,9 +184,7 @@ export const se_GetMetricStatisticsCommand = async (input, context) => {
|
|
|
220
184
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
185
|
};
|
|
222
186
|
export const se_GetMetricStreamCommand = async (input, context) => {
|
|
223
|
-
const headers =
|
|
224
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
225
|
-
};
|
|
187
|
+
const headers = SHARED_HEADERS;
|
|
226
188
|
let body;
|
|
227
189
|
body = buildFormUrlencodedString({
|
|
228
190
|
...se_GetMetricStreamInput(input, context),
|
|
@@ -232,9 +194,7 @@ export const se_GetMetricStreamCommand = async (input, context) => {
|
|
|
232
194
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
233
195
|
};
|
|
234
196
|
export const se_GetMetricWidgetImageCommand = async (input, context) => {
|
|
235
|
-
const headers =
|
|
236
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
237
|
-
};
|
|
197
|
+
const headers = SHARED_HEADERS;
|
|
238
198
|
let body;
|
|
239
199
|
body = buildFormUrlencodedString({
|
|
240
200
|
...se_GetMetricWidgetImageInput(input, context),
|
|
@@ -244,9 +204,7 @@ export const se_GetMetricWidgetImageCommand = async (input, context) => {
|
|
|
244
204
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
205
|
};
|
|
246
206
|
export const se_ListDashboardsCommand = async (input, context) => {
|
|
247
|
-
const headers =
|
|
248
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
249
|
-
};
|
|
207
|
+
const headers = SHARED_HEADERS;
|
|
250
208
|
let body;
|
|
251
209
|
body = buildFormUrlencodedString({
|
|
252
210
|
...se_ListDashboardsInput(input, context),
|
|
@@ -256,9 +214,7 @@ export const se_ListDashboardsCommand = async (input, context) => {
|
|
|
256
214
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
215
|
};
|
|
258
216
|
export const se_ListManagedInsightRulesCommand = async (input, context) => {
|
|
259
|
-
const headers =
|
|
260
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
261
|
-
};
|
|
217
|
+
const headers = SHARED_HEADERS;
|
|
262
218
|
let body;
|
|
263
219
|
body = buildFormUrlencodedString({
|
|
264
220
|
...se_ListManagedInsightRulesInput(input, context),
|
|
@@ -268,9 +224,7 @@ export const se_ListManagedInsightRulesCommand = async (input, context) => {
|
|
|
268
224
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
269
225
|
};
|
|
270
226
|
export const se_ListMetricsCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
273
|
-
};
|
|
227
|
+
const headers = SHARED_HEADERS;
|
|
274
228
|
let body;
|
|
275
229
|
body = buildFormUrlencodedString({
|
|
276
230
|
...se_ListMetricsInput(input, context),
|
|
@@ -280,9 +234,7 @@ export const se_ListMetricsCommand = async (input, context) => {
|
|
|
280
234
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
235
|
};
|
|
282
236
|
export const se_ListMetricStreamsCommand = async (input, context) => {
|
|
283
|
-
const headers =
|
|
284
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
285
|
-
};
|
|
237
|
+
const headers = SHARED_HEADERS;
|
|
286
238
|
let body;
|
|
287
239
|
body = buildFormUrlencodedString({
|
|
288
240
|
...se_ListMetricStreamsInput(input, context),
|
|
@@ -292,9 +244,7 @@ export const se_ListMetricStreamsCommand = async (input, context) => {
|
|
|
292
244
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
245
|
};
|
|
294
246
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
295
|
-
const headers =
|
|
296
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
297
|
-
};
|
|
247
|
+
const headers = SHARED_HEADERS;
|
|
298
248
|
let body;
|
|
299
249
|
body = buildFormUrlencodedString({
|
|
300
250
|
...se_ListTagsForResourceInput(input, context),
|
|
@@ -304,9 +254,7 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
304
254
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
305
255
|
};
|
|
306
256
|
export const se_PutAnomalyDetectorCommand = async (input, context) => {
|
|
307
|
-
const headers =
|
|
308
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
309
|
-
};
|
|
257
|
+
const headers = SHARED_HEADERS;
|
|
310
258
|
let body;
|
|
311
259
|
body = buildFormUrlencodedString({
|
|
312
260
|
...se_PutAnomalyDetectorInput(input, context),
|
|
@@ -316,9 +264,7 @@ export const se_PutAnomalyDetectorCommand = async (input, context) => {
|
|
|
316
264
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
317
265
|
};
|
|
318
266
|
export const se_PutCompositeAlarmCommand = async (input, context) => {
|
|
319
|
-
const headers =
|
|
320
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
321
|
-
};
|
|
267
|
+
const headers = SHARED_HEADERS;
|
|
322
268
|
let body;
|
|
323
269
|
body = buildFormUrlencodedString({
|
|
324
270
|
...se_PutCompositeAlarmInput(input, context),
|
|
@@ -328,9 +274,7 @@ export const se_PutCompositeAlarmCommand = async (input, context) => {
|
|
|
328
274
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
329
275
|
};
|
|
330
276
|
export const se_PutDashboardCommand = async (input, context) => {
|
|
331
|
-
const headers =
|
|
332
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
333
|
-
};
|
|
277
|
+
const headers = SHARED_HEADERS;
|
|
334
278
|
let body;
|
|
335
279
|
body = buildFormUrlencodedString({
|
|
336
280
|
...se_PutDashboardInput(input, context),
|
|
@@ -340,9 +284,7 @@ export const se_PutDashboardCommand = async (input, context) => {
|
|
|
340
284
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
341
285
|
};
|
|
342
286
|
export const se_PutInsightRuleCommand = async (input, context) => {
|
|
343
|
-
const headers =
|
|
344
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
345
|
-
};
|
|
287
|
+
const headers = SHARED_HEADERS;
|
|
346
288
|
let body;
|
|
347
289
|
body = buildFormUrlencodedString({
|
|
348
290
|
...se_PutInsightRuleInput(input, context),
|
|
@@ -352,9 +294,7 @@ export const se_PutInsightRuleCommand = async (input, context) => {
|
|
|
352
294
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
353
295
|
};
|
|
354
296
|
export const se_PutManagedInsightRulesCommand = async (input, context) => {
|
|
355
|
-
const headers =
|
|
356
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
357
|
-
};
|
|
297
|
+
const headers = SHARED_HEADERS;
|
|
358
298
|
let body;
|
|
359
299
|
body = buildFormUrlencodedString({
|
|
360
300
|
...se_PutManagedInsightRulesInput(input, context),
|
|
@@ -364,9 +304,7 @@ export const se_PutManagedInsightRulesCommand = async (input, context) => {
|
|
|
364
304
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
365
305
|
};
|
|
366
306
|
export const se_PutMetricAlarmCommand = async (input, context) => {
|
|
367
|
-
const headers =
|
|
368
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
369
|
-
};
|
|
307
|
+
const headers = SHARED_HEADERS;
|
|
370
308
|
let body;
|
|
371
309
|
body = buildFormUrlencodedString({
|
|
372
310
|
...se_PutMetricAlarmInput(input, context),
|
|
@@ -376,9 +314,7 @@ export const se_PutMetricAlarmCommand = async (input, context) => {
|
|
|
376
314
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
377
315
|
};
|
|
378
316
|
export const se_PutMetricDataCommand = async (input, context) => {
|
|
379
|
-
const headers =
|
|
380
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
381
|
-
};
|
|
317
|
+
const headers = SHARED_HEADERS;
|
|
382
318
|
let body;
|
|
383
319
|
body = buildFormUrlencodedString({
|
|
384
320
|
...se_PutMetricDataInput(input, context),
|
|
@@ -388,9 +324,7 @@ export const se_PutMetricDataCommand = async (input, context) => {
|
|
|
388
324
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
389
325
|
};
|
|
390
326
|
export const se_PutMetricStreamCommand = async (input, context) => {
|
|
391
|
-
const headers =
|
|
392
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
393
|
-
};
|
|
327
|
+
const headers = SHARED_HEADERS;
|
|
394
328
|
let body;
|
|
395
329
|
body = buildFormUrlencodedString({
|
|
396
330
|
...se_PutMetricStreamInput(input, context),
|
|
@@ -400,9 +334,7 @@ export const se_PutMetricStreamCommand = async (input, context) => {
|
|
|
400
334
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
401
335
|
};
|
|
402
336
|
export const se_SetAlarmStateCommand = async (input, context) => {
|
|
403
|
-
const headers =
|
|
404
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
405
|
-
};
|
|
337
|
+
const headers = SHARED_HEADERS;
|
|
406
338
|
let body;
|
|
407
339
|
body = buildFormUrlencodedString({
|
|
408
340
|
...se_SetAlarmStateInput(input, context),
|
|
@@ -412,9 +344,7 @@ export const se_SetAlarmStateCommand = async (input, context) => {
|
|
|
412
344
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
413
345
|
};
|
|
414
346
|
export const se_StartMetricStreamsCommand = async (input, context) => {
|
|
415
|
-
const headers =
|
|
416
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
417
|
-
};
|
|
347
|
+
const headers = SHARED_HEADERS;
|
|
418
348
|
let body;
|
|
419
349
|
body = buildFormUrlencodedString({
|
|
420
350
|
...se_StartMetricStreamsInput(input, context),
|
|
@@ -424,9 +354,7 @@ export const se_StartMetricStreamsCommand = async (input, context) => {
|
|
|
424
354
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
425
355
|
};
|
|
426
356
|
export const se_StopMetricStreamsCommand = async (input, context) => {
|
|
427
|
-
const headers =
|
|
428
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
429
|
-
};
|
|
357
|
+
const headers = SHARED_HEADERS;
|
|
430
358
|
let body;
|
|
431
359
|
body = buildFormUrlencodedString({
|
|
432
360
|
...se_StopMetricStreamsInput(input, context),
|
|
@@ -436,9 +364,7 @@ export const se_StopMetricStreamsCommand = async (input, context) => {
|
|
|
436
364
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
437
365
|
};
|
|
438
366
|
export const se_TagResourceCommand = async (input, context) => {
|
|
439
|
-
const headers =
|
|
440
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
441
|
-
};
|
|
367
|
+
const headers = SHARED_HEADERS;
|
|
442
368
|
let body;
|
|
443
369
|
body = buildFormUrlencodedString({
|
|
444
370
|
...se_TagResourceInput(input, context),
|
|
@@ -448,9 +374,7 @@ export const se_TagResourceCommand = async (input, context) => {
|
|
|
448
374
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
449
375
|
};
|
|
450
376
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
451
|
-
const headers =
|
|
452
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
453
|
-
};
|
|
377
|
+
const headers = SHARED_HEADERS;
|
|
454
378
|
let body;
|
|
455
379
|
body = buildFormUrlencodedString({
|
|
456
380
|
...se_UntagResourceInput(input, context),
|
|
@@ -467,7 +391,7 @@ export const de_DeleteAlarmsCommand = async (output, context) => {
|
|
|
467
391
|
const response = {
|
|
468
392
|
$metadata: deserializeMetadata(output),
|
|
469
393
|
};
|
|
470
|
-
return
|
|
394
|
+
return response;
|
|
471
395
|
};
|
|
472
396
|
const de_DeleteAlarmsCommandError = async (output, context) => {
|
|
473
397
|
const parsedOutput = {
|
|
@@ -481,10 +405,9 @@ const de_DeleteAlarmsCommandError = async (output, context) => {
|
|
|
481
405
|
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
482
406
|
default:
|
|
483
407
|
const parsedBody = parsedOutput.body;
|
|
484
|
-
throwDefaultError({
|
|
408
|
+
return throwDefaultError({
|
|
485
409
|
output,
|
|
486
410
|
parsedBody: parsedBody.Error,
|
|
487
|
-
exceptionCtor: __BaseException,
|
|
488
411
|
errorCode,
|
|
489
412
|
});
|
|
490
413
|
}
|
|
@@ -500,7 +423,7 @@ export const de_DeleteAnomalyDetectorCommand = async (output, context) => {
|
|
|
500
423
|
$metadata: deserializeMetadata(output),
|
|
501
424
|
...contents,
|
|
502
425
|
};
|
|
503
|
-
return
|
|
426
|
+
return response;
|
|
504
427
|
};
|
|
505
428
|
const de_DeleteAnomalyDetectorCommandError = async (output, context) => {
|
|
506
429
|
const parsedOutput = {
|
|
@@ -526,10 +449,9 @@ const de_DeleteAnomalyDetectorCommandError = async (output, context) => {
|
|
|
526
449
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
527
450
|
default:
|
|
528
451
|
const parsedBody = parsedOutput.body;
|
|
529
|
-
throwDefaultError({
|
|
452
|
+
return throwDefaultError({
|
|
530
453
|
output,
|
|
531
454
|
parsedBody: parsedBody.Error,
|
|
532
|
-
exceptionCtor: __BaseException,
|
|
533
455
|
errorCode,
|
|
534
456
|
});
|
|
535
457
|
}
|
|
@@ -545,7 +467,7 @@ export const de_DeleteDashboardsCommand = async (output, context) => {
|
|
|
545
467
|
$metadata: deserializeMetadata(output),
|
|
546
468
|
...contents,
|
|
547
469
|
};
|
|
548
|
-
return
|
|
470
|
+
return response;
|
|
549
471
|
};
|
|
550
472
|
const de_DeleteDashboardsCommandError = async (output, context) => {
|
|
551
473
|
const parsedOutput = {
|
|
@@ -565,10 +487,9 @@ const de_DeleteDashboardsCommandError = async (output, context) => {
|
|
|
565
487
|
throw await de_DashboardNotFoundErrorRes(parsedOutput, context);
|
|
566
488
|
default:
|
|
567
489
|
const parsedBody = parsedOutput.body;
|
|
568
|
-
throwDefaultError({
|
|
490
|
+
return throwDefaultError({
|
|
569
491
|
output,
|
|
570
492
|
parsedBody: parsedBody.Error,
|
|
571
|
-
exceptionCtor: __BaseException,
|
|
572
493
|
errorCode,
|
|
573
494
|
});
|
|
574
495
|
}
|
|
@@ -584,7 +505,7 @@ export const de_DeleteInsightRulesCommand = async (output, context) => {
|
|
|
584
505
|
$metadata: deserializeMetadata(output),
|
|
585
506
|
...contents,
|
|
586
507
|
};
|
|
587
|
-
return
|
|
508
|
+
return response;
|
|
588
509
|
};
|
|
589
510
|
const de_DeleteInsightRulesCommandError = async (output, context) => {
|
|
590
511
|
const parsedOutput = {
|
|
@@ -601,10 +522,9 @@ const de_DeleteInsightRulesCommandError = async (output, context) => {
|
|
|
601
522
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
602
523
|
default:
|
|
603
524
|
const parsedBody = parsedOutput.body;
|
|
604
|
-
throwDefaultError({
|
|
525
|
+
return throwDefaultError({
|
|
605
526
|
output,
|
|
606
527
|
parsedBody: parsedBody.Error,
|
|
607
|
-
exceptionCtor: __BaseException,
|
|
608
528
|
errorCode,
|
|
609
529
|
});
|
|
610
530
|
}
|
|
@@ -620,7 +540,7 @@ export const de_DeleteMetricStreamCommand = async (output, context) => {
|
|
|
620
540
|
$metadata: deserializeMetadata(output),
|
|
621
541
|
...contents,
|
|
622
542
|
};
|
|
623
|
-
return
|
|
543
|
+
return response;
|
|
624
544
|
};
|
|
625
545
|
const de_DeleteMetricStreamCommandError = async (output, context) => {
|
|
626
546
|
const parsedOutput = {
|
|
@@ -640,10 +560,9 @@ const de_DeleteMetricStreamCommandError = async (output, context) => {
|
|
|
640
560
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
641
561
|
default:
|
|
642
562
|
const parsedBody = parsedOutput.body;
|
|
643
|
-
throwDefaultError({
|
|
563
|
+
return throwDefaultError({
|
|
644
564
|
output,
|
|
645
565
|
parsedBody: parsedBody.Error,
|
|
646
|
-
exceptionCtor: __BaseException,
|
|
647
566
|
errorCode,
|
|
648
567
|
});
|
|
649
568
|
}
|
|
@@ -659,7 +578,7 @@ export const de_DescribeAlarmHistoryCommand = async (output, context) => {
|
|
|
659
578
|
$metadata: deserializeMetadata(output),
|
|
660
579
|
...contents,
|
|
661
580
|
};
|
|
662
|
-
return
|
|
581
|
+
return response;
|
|
663
582
|
};
|
|
664
583
|
const de_DescribeAlarmHistoryCommandError = async (output, context) => {
|
|
665
584
|
const parsedOutput = {
|
|
@@ -673,10 +592,9 @@ const de_DescribeAlarmHistoryCommandError = async (output, context) => {
|
|
|
673
592
|
throw await de_InvalidNextTokenRes(parsedOutput, context);
|
|
674
593
|
default:
|
|
675
594
|
const parsedBody = parsedOutput.body;
|
|
676
|
-
throwDefaultError({
|
|
595
|
+
return throwDefaultError({
|
|
677
596
|
output,
|
|
678
597
|
parsedBody: parsedBody.Error,
|
|
679
|
-
exceptionCtor: __BaseException,
|
|
680
598
|
errorCode,
|
|
681
599
|
});
|
|
682
600
|
}
|
|
@@ -692,7 +610,7 @@ export const de_DescribeAlarmsCommand = async (output, context) => {
|
|
|
692
610
|
$metadata: deserializeMetadata(output),
|
|
693
611
|
...contents,
|
|
694
612
|
};
|
|
695
|
-
return
|
|
613
|
+
return response;
|
|
696
614
|
};
|
|
697
615
|
const de_DescribeAlarmsCommandError = async (output, context) => {
|
|
698
616
|
const parsedOutput = {
|
|
@@ -706,10 +624,9 @@ const de_DescribeAlarmsCommandError = async (output, context) => {
|
|
|
706
624
|
throw await de_InvalidNextTokenRes(parsedOutput, context);
|
|
707
625
|
default:
|
|
708
626
|
const parsedBody = parsedOutput.body;
|
|
709
|
-
throwDefaultError({
|
|
627
|
+
return throwDefaultError({
|
|
710
628
|
output,
|
|
711
629
|
parsedBody: parsedBody.Error,
|
|
712
|
-
exceptionCtor: __BaseException,
|
|
713
630
|
errorCode,
|
|
714
631
|
});
|
|
715
632
|
}
|
|
@@ -725,7 +642,7 @@ export const de_DescribeAlarmsForMetricCommand = async (output, context) => {
|
|
|
725
642
|
$metadata: deserializeMetadata(output),
|
|
726
643
|
...contents,
|
|
727
644
|
};
|
|
728
|
-
return
|
|
645
|
+
return response;
|
|
729
646
|
};
|
|
730
647
|
const de_DescribeAlarmsForMetricCommandError = async (output, context) => {
|
|
731
648
|
const parsedOutput = {
|
|
@@ -734,10 +651,9 @@ const de_DescribeAlarmsForMetricCommandError = async (output, context) => {
|
|
|
734
651
|
};
|
|
735
652
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
736
653
|
const parsedBody = parsedOutput.body;
|
|
737
|
-
throwDefaultError({
|
|
654
|
+
return throwDefaultError({
|
|
738
655
|
output,
|
|
739
656
|
parsedBody: parsedBody.Error,
|
|
740
|
-
exceptionCtor: __BaseException,
|
|
741
657
|
errorCode,
|
|
742
658
|
});
|
|
743
659
|
};
|
|
@@ -752,7 +668,7 @@ export const de_DescribeAnomalyDetectorsCommand = async (output, context) => {
|
|
|
752
668
|
$metadata: deserializeMetadata(output),
|
|
753
669
|
...contents,
|
|
754
670
|
};
|
|
755
|
-
return
|
|
671
|
+
return response;
|
|
756
672
|
};
|
|
757
673
|
const de_DescribeAnomalyDetectorsCommandError = async (output, context) => {
|
|
758
674
|
const parsedOutput = {
|
|
@@ -775,10 +691,9 @@ const de_DescribeAnomalyDetectorsCommandError = async (output, context) => {
|
|
|
775
691
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
776
692
|
default:
|
|
777
693
|
const parsedBody = parsedOutput.body;
|
|
778
|
-
throwDefaultError({
|
|
694
|
+
return throwDefaultError({
|
|
779
695
|
output,
|
|
780
696
|
parsedBody: parsedBody.Error,
|
|
781
|
-
exceptionCtor: __BaseException,
|
|
782
697
|
errorCode,
|
|
783
698
|
});
|
|
784
699
|
}
|
|
@@ -794,7 +709,7 @@ export const de_DescribeInsightRulesCommand = async (output, context) => {
|
|
|
794
709
|
$metadata: deserializeMetadata(output),
|
|
795
710
|
...contents,
|
|
796
711
|
};
|
|
797
|
-
return
|
|
712
|
+
return response;
|
|
798
713
|
};
|
|
799
714
|
const de_DescribeInsightRulesCommandError = async (output, context) => {
|
|
800
715
|
const parsedOutput = {
|
|
@@ -808,10 +723,9 @@ const de_DescribeInsightRulesCommandError = async (output, context) => {
|
|
|
808
723
|
throw await de_InvalidNextTokenRes(parsedOutput, context);
|
|
809
724
|
default:
|
|
810
725
|
const parsedBody = parsedOutput.body;
|
|
811
|
-
throwDefaultError({
|
|
726
|
+
return throwDefaultError({
|
|
812
727
|
output,
|
|
813
728
|
parsedBody: parsedBody.Error,
|
|
814
|
-
exceptionCtor: __BaseException,
|
|
815
729
|
errorCode,
|
|
816
730
|
});
|
|
817
731
|
}
|
|
@@ -824,7 +738,7 @@ export const de_DisableAlarmActionsCommand = async (output, context) => {
|
|
|
824
738
|
const response = {
|
|
825
739
|
$metadata: deserializeMetadata(output),
|
|
826
740
|
};
|
|
827
|
-
return
|
|
741
|
+
return response;
|
|
828
742
|
};
|
|
829
743
|
const de_DisableAlarmActionsCommandError = async (output, context) => {
|
|
830
744
|
const parsedOutput = {
|
|
@@ -833,10 +747,9 @@ const de_DisableAlarmActionsCommandError = async (output, context) => {
|
|
|
833
747
|
};
|
|
834
748
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
835
749
|
const parsedBody = parsedOutput.body;
|
|
836
|
-
throwDefaultError({
|
|
750
|
+
return throwDefaultError({
|
|
837
751
|
output,
|
|
838
752
|
parsedBody: parsedBody.Error,
|
|
839
|
-
exceptionCtor: __BaseException,
|
|
840
753
|
errorCode,
|
|
841
754
|
});
|
|
842
755
|
};
|
|
@@ -851,7 +764,7 @@ export const de_DisableInsightRulesCommand = async (output, context) => {
|
|
|
851
764
|
$metadata: deserializeMetadata(output),
|
|
852
765
|
...contents,
|
|
853
766
|
};
|
|
854
|
-
return
|
|
767
|
+
return response;
|
|
855
768
|
};
|
|
856
769
|
const de_DisableInsightRulesCommandError = async (output, context) => {
|
|
857
770
|
const parsedOutput = {
|
|
@@ -868,10 +781,9 @@ const de_DisableInsightRulesCommandError = async (output, context) => {
|
|
|
868
781
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
869
782
|
default:
|
|
870
783
|
const parsedBody = parsedOutput.body;
|
|
871
|
-
throwDefaultError({
|
|
784
|
+
return throwDefaultError({
|
|
872
785
|
output,
|
|
873
786
|
parsedBody: parsedBody.Error,
|
|
874
|
-
exceptionCtor: __BaseException,
|
|
875
787
|
errorCode,
|
|
876
788
|
});
|
|
877
789
|
}
|
|
@@ -884,7 +796,7 @@ export const de_EnableAlarmActionsCommand = async (output, context) => {
|
|
|
884
796
|
const response = {
|
|
885
797
|
$metadata: deserializeMetadata(output),
|
|
886
798
|
};
|
|
887
|
-
return
|
|
799
|
+
return response;
|
|
888
800
|
};
|
|
889
801
|
const de_EnableAlarmActionsCommandError = async (output, context) => {
|
|
890
802
|
const parsedOutput = {
|
|
@@ -893,10 +805,9 @@ const de_EnableAlarmActionsCommandError = async (output, context) => {
|
|
|
893
805
|
};
|
|
894
806
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
895
807
|
const parsedBody = parsedOutput.body;
|
|
896
|
-
throwDefaultError({
|
|
808
|
+
return throwDefaultError({
|
|
897
809
|
output,
|
|
898
810
|
parsedBody: parsedBody.Error,
|
|
899
|
-
exceptionCtor: __BaseException,
|
|
900
811
|
errorCode,
|
|
901
812
|
});
|
|
902
813
|
};
|
|
@@ -911,7 +822,7 @@ export const de_EnableInsightRulesCommand = async (output, context) => {
|
|
|
911
822
|
$metadata: deserializeMetadata(output),
|
|
912
823
|
...contents,
|
|
913
824
|
};
|
|
914
|
-
return
|
|
825
|
+
return response;
|
|
915
826
|
};
|
|
916
827
|
const de_EnableInsightRulesCommandError = async (output, context) => {
|
|
917
828
|
const parsedOutput = {
|
|
@@ -931,10 +842,9 @@ const de_EnableInsightRulesCommandError = async (output, context) => {
|
|
|
931
842
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
932
843
|
default:
|
|
933
844
|
const parsedBody = parsedOutput.body;
|
|
934
|
-
throwDefaultError({
|
|
845
|
+
return throwDefaultError({
|
|
935
846
|
output,
|
|
936
847
|
parsedBody: parsedBody.Error,
|
|
937
|
-
exceptionCtor: __BaseException,
|
|
938
848
|
errorCode,
|
|
939
849
|
});
|
|
940
850
|
}
|
|
@@ -950,7 +860,7 @@ export const de_GetDashboardCommand = async (output, context) => {
|
|
|
950
860
|
$metadata: deserializeMetadata(output),
|
|
951
861
|
...contents,
|
|
952
862
|
};
|
|
953
|
-
return
|
|
863
|
+
return response;
|
|
954
864
|
};
|
|
955
865
|
const de_GetDashboardCommandError = async (output, context) => {
|
|
956
866
|
const parsedOutput = {
|
|
@@ -970,10 +880,9 @@ const de_GetDashboardCommandError = async (output, context) => {
|
|
|
970
880
|
throw await de_DashboardNotFoundErrorRes(parsedOutput, context);
|
|
971
881
|
default:
|
|
972
882
|
const parsedBody = parsedOutput.body;
|
|
973
|
-
throwDefaultError({
|
|
883
|
+
return throwDefaultError({
|
|
974
884
|
output,
|
|
975
885
|
parsedBody: parsedBody.Error,
|
|
976
|
-
exceptionCtor: __BaseException,
|
|
977
886
|
errorCode,
|
|
978
887
|
});
|
|
979
888
|
}
|
|
@@ -989,7 +898,7 @@ export const de_GetInsightRuleReportCommand = async (output, context) => {
|
|
|
989
898
|
$metadata: deserializeMetadata(output),
|
|
990
899
|
...contents,
|
|
991
900
|
};
|
|
992
|
-
return
|
|
901
|
+
return response;
|
|
993
902
|
};
|
|
994
903
|
const de_GetInsightRuleReportCommandError = async (output, context) => {
|
|
995
904
|
const parsedOutput = {
|
|
@@ -1009,10 +918,9 @@ const de_GetInsightRuleReportCommandError = async (output, context) => {
|
|
|
1009
918
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1010
919
|
default:
|
|
1011
920
|
const parsedBody = parsedOutput.body;
|
|
1012
|
-
throwDefaultError({
|
|
921
|
+
return throwDefaultError({
|
|
1013
922
|
output,
|
|
1014
923
|
parsedBody: parsedBody.Error,
|
|
1015
|
-
exceptionCtor: __BaseException,
|
|
1016
924
|
errorCode,
|
|
1017
925
|
});
|
|
1018
926
|
}
|
|
@@ -1028,7 +936,7 @@ export const de_GetMetricDataCommand = async (output, context) => {
|
|
|
1028
936
|
$metadata: deserializeMetadata(output),
|
|
1029
937
|
...contents,
|
|
1030
938
|
};
|
|
1031
|
-
return
|
|
939
|
+
return response;
|
|
1032
940
|
};
|
|
1033
941
|
const de_GetMetricDataCommandError = async (output, context) => {
|
|
1034
942
|
const parsedOutput = {
|
|
@@ -1042,10 +950,9 @@ const de_GetMetricDataCommandError = async (output, context) => {
|
|
|
1042
950
|
throw await de_InvalidNextTokenRes(parsedOutput, context);
|
|
1043
951
|
default:
|
|
1044
952
|
const parsedBody = parsedOutput.body;
|
|
1045
|
-
throwDefaultError({
|
|
953
|
+
return throwDefaultError({
|
|
1046
954
|
output,
|
|
1047
955
|
parsedBody: parsedBody.Error,
|
|
1048
|
-
exceptionCtor: __BaseException,
|
|
1049
956
|
errorCode,
|
|
1050
957
|
});
|
|
1051
958
|
}
|
|
@@ -1061,7 +968,7 @@ export const de_GetMetricStatisticsCommand = async (output, context) => {
|
|
|
1061
968
|
$metadata: deserializeMetadata(output),
|
|
1062
969
|
...contents,
|
|
1063
970
|
};
|
|
1064
|
-
return
|
|
971
|
+
return response;
|
|
1065
972
|
};
|
|
1066
973
|
const de_GetMetricStatisticsCommandError = async (output, context) => {
|
|
1067
974
|
const parsedOutput = {
|
|
@@ -1084,10 +991,9 @@ const de_GetMetricStatisticsCommandError = async (output, context) => {
|
|
|
1084
991
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1085
992
|
default:
|
|
1086
993
|
const parsedBody = parsedOutput.body;
|
|
1087
|
-
throwDefaultError({
|
|
994
|
+
return throwDefaultError({
|
|
1088
995
|
output,
|
|
1089
996
|
parsedBody: parsedBody.Error,
|
|
1090
|
-
exceptionCtor: __BaseException,
|
|
1091
997
|
errorCode,
|
|
1092
998
|
});
|
|
1093
999
|
}
|
|
@@ -1103,7 +1009,7 @@ export const de_GetMetricStreamCommand = async (output, context) => {
|
|
|
1103
1009
|
$metadata: deserializeMetadata(output),
|
|
1104
1010
|
...contents,
|
|
1105
1011
|
};
|
|
1106
|
-
return
|
|
1012
|
+
return response;
|
|
1107
1013
|
};
|
|
1108
1014
|
const de_GetMetricStreamCommandError = async (output, context) => {
|
|
1109
1015
|
const parsedOutput = {
|
|
@@ -1129,10 +1035,9 @@ const de_GetMetricStreamCommandError = async (output, context) => {
|
|
|
1129
1035
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1130
1036
|
default:
|
|
1131
1037
|
const parsedBody = parsedOutput.body;
|
|
1132
|
-
throwDefaultError({
|
|
1038
|
+
return throwDefaultError({
|
|
1133
1039
|
output,
|
|
1134
1040
|
parsedBody: parsedBody.Error,
|
|
1135
|
-
exceptionCtor: __BaseException,
|
|
1136
1041
|
errorCode,
|
|
1137
1042
|
});
|
|
1138
1043
|
}
|
|
@@ -1148,7 +1053,7 @@ export const de_GetMetricWidgetImageCommand = async (output, context) => {
|
|
|
1148
1053
|
$metadata: deserializeMetadata(output),
|
|
1149
1054
|
...contents,
|
|
1150
1055
|
};
|
|
1151
|
-
return
|
|
1056
|
+
return response;
|
|
1152
1057
|
};
|
|
1153
1058
|
const de_GetMetricWidgetImageCommandError = async (output, context) => {
|
|
1154
1059
|
const parsedOutput = {
|
|
@@ -1157,10 +1062,9 @@ const de_GetMetricWidgetImageCommandError = async (output, context) => {
|
|
|
1157
1062
|
};
|
|
1158
1063
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
1159
1064
|
const parsedBody = parsedOutput.body;
|
|
1160
|
-
throwDefaultError({
|
|
1065
|
+
return throwDefaultError({
|
|
1161
1066
|
output,
|
|
1162
1067
|
parsedBody: parsedBody.Error,
|
|
1163
|
-
exceptionCtor: __BaseException,
|
|
1164
1068
|
errorCode,
|
|
1165
1069
|
});
|
|
1166
1070
|
};
|
|
@@ -1175,7 +1079,7 @@ export const de_ListDashboardsCommand = async (output, context) => {
|
|
|
1175
1079
|
$metadata: deserializeMetadata(output),
|
|
1176
1080
|
...contents,
|
|
1177
1081
|
};
|
|
1178
|
-
return
|
|
1082
|
+
return response;
|
|
1179
1083
|
};
|
|
1180
1084
|
const de_ListDashboardsCommandError = async (output, context) => {
|
|
1181
1085
|
const parsedOutput = {
|
|
@@ -1192,10 +1096,9 @@ const de_ListDashboardsCommandError = async (output, context) => {
|
|
|
1192
1096
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1193
1097
|
default:
|
|
1194
1098
|
const parsedBody = parsedOutput.body;
|
|
1195
|
-
throwDefaultError({
|
|
1099
|
+
return throwDefaultError({
|
|
1196
1100
|
output,
|
|
1197
1101
|
parsedBody: parsedBody.Error,
|
|
1198
|
-
exceptionCtor: __BaseException,
|
|
1199
1102
|
errorCode,
|
|
1200
1103
|
});
|
|
1201
1104
|
}
|
|
@@ -1211,7 +1114,7 @@ export const de_ListManagedInsightRulesCommand = async (output, context) => {
|
|
|
1211
1114
|
$metadata: deserializeMetadata(output),
|
|
1212
1115
|
...contents,
|
|
1213
1116
|
};
|
|
1214
|
-
return
|
|
1117
|
+
return response;
|
|
1215
1118
|
};
|
|
1216
1119
|
const de_ListManagedInsightRulesCommandError = async (output, context) => {
|
|
1217
1120
|
const parsedOutput = {
|
|
@@ -1231,10 +1134,9 @@ const de_ListManagedInsightRulesCommandError = async (output, context) => {
|
|
|
1231
1134
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1232
1135
|
default:
|
|
1233
1136
|
const parsedBody = parsedOutput.body;
|
|
1234
|
-
throwDefaultError({
|
|
1137
|
+
return throwDefaultError({
|
|
1235
1138
|
output,
|
|
1236
1139
|
parsedBody: parsedBody.Error,
|
|
1237
|
-
exceptionCtor: __BaseException,
|
|
1238
1140
|
errorCode,
|
|
1239
1141
|
});
|
|
1240
1142
|
}
|
|
@@ -1250,7 +1152,7 @@ export const de_ListMetricsCommand = async (output, context) => {
|
|
|
1250
1152
|
$metadata: deserializeMetadata(output),
|
|
1251
1153
|
...contents,
|
|
1252
1154
|
};
|
|
1253
|
-
return
|
|
1155
|
+
return response;
|
|
1254
1156
|
};
|
|
1255
1157
|
const de_ListMetricsCommandError = async (output, context) => {
|
|
1256
1158
|
const parsedOutput = {
|
|
@@ -1267,10 +1169,9 @@ const de_ListMetricsCommandError = async (output, context) => {
|
|
|
1267
1169
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
1268
1170
|
default:
|
|
1269
1171
|
const parsedBody = parsedOutput.body;
|
|
1270
|
-
throwDefaultError({
|
|
1172
|
+
return throwDefaultError({
|
|
1271
1173
|
output,
|
|
1272
1174
|
parsedBody: parsedBody.Error,
|
|
1273
|
-
exceptionCtor: __BaseException,
|
|
1274
1175
|
errorCode,
|
|
1275
1176
|
});
|
|
1276
1177
|
}
|
|
@@ -1286,7 +1187,7 @@ export const de_ListMetricStreamsCommand = async (output, context) => {
|
|
|
1286
1187
|
$metadata: deserializeMetadata(output),
|
|
1287
1188
|
...contents,
|
|
1288
1189
|
};
|
|
1289
|
-
return
|
|
1190
|
+
return response;
|
|
1290
1191
|
};
|
|
1291
1192
|
const de_ListMetricStreamsCommandError = async (output, context) => {
|
|
1292
1193
|
const parsedOutput = {
|
|
@@ -1309,10 +1210,9 @@ const de_ListMetricStreamsCommandError = async (output, context) => {
|
|
|
1309
1210
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1310
1211
|
default:
|
|
1311
1212
|
const parsedBody = parsedOutput.body;
|
|
1312
|
-
throwDefaultError({
|
|
1213
|
+
return throwDefaultError({
|
|
1313
1214
|
output,
|
|
1314
1215
|
parsedBody: parsedBody.Error,
|
|
1315
|
-
exceptionCtor: __BaseException,
|
|
1316
1216
|
errorCode,
|
|
1317
1217
|
});
|
|
1318
1218
|
}
|
|
@@ -1328,7 +1228,7 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
1328
1228
|
$metadata: deserializeMetadata(output),
|
|
1329
1229
|
...contents,
|
|
1330
1230
|
};
|
|
1331
|
-
return
|
|
1231
|
+
return response;
|
|
1332
1232
|
};
|
|
1333
1233
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1334
1234
|
const parsedOutput = {
|
|
@@ -1348,10 +1248,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1348
1248
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1349
1249
|
default:
|
|
1350
1250
|
const parsedBody = parsedOutput.body;
|
|
1351
|
-
throwDefaultError({
|
|
1251
|
+
return throwDefaultError({
|
|
1352
1252
|
output,
|
|
1353
1253
|
parsedBody: parsedBody.Error,
|
|
1354
|
-
exceptionCtor: __BaseException,
|
|
1355
1254
|
errorCode,
|
|
1356
1255
|
});
|
|
1357
1256
|
}
|
|
@@ -1367,7 +1266,7 @@ export const de_PutAnomalyDetectorCommand = async (output, context) => {
|
|
|
1367
1266
|
$metadata: deserializeMetadata(output),
|
|
1368
1267
|
...contents,
|
|
1369
1268
|
};
|
|
1370
|
-
return
|
|
1269
|
+
return response;
|
|
1371
1270
|
};
|
|
1372
1271
|
const de_PutAnomalyDetectorCommandError = async (output, context) => {
|
|
1373
1272
|
const parsedOutput = {
|
|
@@ -1393,10 +1292,9 @@ const de_PutAnomalyDetectorCommandError = async (output, context) => {
|
|
|
1393
1292
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1394
1293
|
default:
|
|
1395
1294
|
const parsedBody = parsedOutput.body;
|
|
1396
|
-
throwDefaultError({
|
|
1295
|
+
return throwDefaultError({
|
|
1397
1296
|
output,
|
|
1398
1297
|
parsedBody: parsedBody.Error,
|
|
1399
|
-
exceptionCtor: __BaseException,
|
|
1400
1298
|
errorCode,
|
|
1401
1299
|
});
|
|
1402
1300
|
}
|
|
@@ -1409,7 +1307,7 @@ export const de_PutCompositeAlarmCommand = async (output, context) => {
|
|
|
1409
1307
|
const response = {
|
|
1410
1308
|
$metadata: deserializeMetadata(output),
|
|
1411
1309
|
};
|
|
1412
|
-
return
|
|
1310
|
+
return response;
|
|
1413
1311
|
};
|
|
1414
1312
|
const de_PutCompositeAlarmCommandError = async (output, context) => {
|
|
1415
1313
|
const parsedOutput = {
|
|
@@ -1423,10 +1321,9 @@ const de_PutCompositeAlarmCommandError = async (output, context) => {
|
|
|
1423
1321
|
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
1424
1322
|
default:
|
|
1425
1323
|
const parsedBody = parsedOutput.body;
|
|
1426
|
-
throwDefaultError({
|
|
1324
|
+
return throwDefaultError({
|
|
1427
1325
|
output,
|
|
1428
1326
|
parsedBody: parsedBody.Error,
|
|
1429
|
-
exceptionCtor: __BaseException,
|
|
1430
1327
|
errorCode,
|
|
1431
1328
|
});
|
|
1432
1329
|
}
|
|
@@ -1442,7 +1339,7 @@ export const de_PutDashboardCommand = async (output, context) => {
|
|
|
1442
1339
|
$metadata: deserializeMetadata(output),
|
|
1443
1340
|
...contents,
|
|
1444
1341
|
};
|
|
1445
|
-
return
|
|
1342
|
+
return response;
|
|
1446
1343
|
};
|
|
1447
1344
|
const de_PutDashboardCommandError = async (output, context) => {
|
|
1448
1345
|
const parsedOutput = {
|
|
@@ -1459,10 +1356,9 @@ const de_PutDashboardCommandError = async (output, context) => {
|
|
|
1459
1356
|
throw await de_DashboardInvalidInputErrorRes(parsedOutput, context);
|
|
1460
1357
|
default:
|
|
1461
1358
|
const parsedBody = parsedOutput.body;
|
|
1462
|
-
throwDefaultError({
|
|
1359
|
+
return throwDefaultError({
|
|
1463
1360
|
output,
|
|
1464
1361
|
parsedBody: parsedBody.Error,
|
|
1465
|
-
exceptionCtor: __BaseException,
|
|
1466
1362
|
errorCode,
|
|
1467
1363
|
});
|
|
1468
1364
|
}
|
|
@@ -1478,7 +1374,7 @@ export const de_PutInsightRuleCommand = async (output, context) => {
|
|
|
1478
1374
|
$metadata: deserializeMetadata(output),
|
|
1479
1375
|
...contents,
|
|
1480
1376
|
};
|
|
1481
|
-
return
|
|
1377
|
+
return response;
|
|
1482
1378
|
};
|
|
1483
1379
|
const de_PutInsightRuleCommandError = async (output, context) => {
|
|
1484
1380
|
const parsedOutput = {
|
|
@@ -1498,10 +1394,9 @@ const de_PutInsightRuleCommandError = async (output, context) => {
|
|
|
1498
1394
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1499
1395
|
default:
|
|
1500
1396
|
const parsedBody = parsedOutput.body;
|
|
1501
|
-
throwDefaultError({
|
|
1397
|
+
return throwDefaultError({
|
|
1502
1398
|
output,
|
|
1503
1399
|
parsedBody: parsedBody.Error,
|
|
1504
|
-
exceptionCtor: __BaseException,
|
|
1505
1400
|
errorCode,
|
|
1506
1401
|
});
|
|
1507
1402
|
}
|
|
@@ -1517,7 +1412,7 @@ export const de_PutManagedInsightRulesCommand = async (output, context) => {
|
|
|
1517
1412
|
$metadata: deserializeMetadata(output),
|
|
1518
1413
|
...contents,
|
|
1519
1414
|
};
|
|
1520
|
-
return
|
|
1415
|
+
return response;
|
|
1521
1416
|
};
|
|
1522
1417
|
const de_PutManagedInsightRulesCommandError = async (output, context) => {
|
|
1523
1418
|
const parsedOutput = {
|
|
@@ -1534,10 +1429,9 @@ const de_PutManagedInsightRulesCommandError = async (output, context) => {
|
|
|
1534
1429
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1535
1430
|
default:
|
|
1536
1431
|
const parsedBody = parsedOutput.body;
|
|
1537
|
-
throwDefaultError({
|
|
1432
|
+
return throwDefaultError({
|
|
1538
1433
|
output,
|
|
1539
1434
|
parsedBody: parsedBody.Error,
|
|
1540
|
-
exceptionCtor: __BaseException,
|
|
1541
1435
|
errorCode,
|
|
1542
1436
|
});
|
|
1543
1437
|
}
|
|
@@ -1550,7 +1444,7 @@ export const de_PutMetricAlarmCommand = async (output, context) => {
|
|
|
1550
1444
|
const response = {
|
|
1551
1445
|
$metadata: deserializeMetadata(output),
|
|
1552
1446
|
};
|
|
1553
|
-
return
|
|
1447
|
+
return response;
|
|
1554
1448
|
};
|
|
1555
1449
|
const de_PutMetricAlarmCommandError = async (output, context) => {
|
|
1556
1450
|
const parsedOutput = {
|
|
@@ -1564,10 +1458,9 @@ const de_PutMetricAlarmCommandError = async (output, context) => {
|
|
|
1564
1458
|
throw await de_LimitExceededFaultRes(parsedOutput, context);
|
|
1565
1459
|
default:
|
|
1566
1460
|
const parsedBody = parsedOutput.body;
|
|
1567
|
-
throwDefaultError({
|
|
1461
|
+
return throwDefaultError({
|
|
1568
1462
|
output,
|
|
1569
1463
|
parsedBody: parsedBody.Error,
|
|
1570
|
-
exceptionCtor: __BaseException,
|
|
1571
1464
|
errorCode,
|
|
1572
1465
|
});
|
|
1573
1466
|
}
|
|
@@ -1580,7 +1473,7 @@ export const de_PutMetricDataCommand = async (output, context) => {
|
|
|
1580
1473
|
const response = {
|
|
1581
1474
|
$metadata: deserializeMetadata(output),
|
|
1582
1475
|
};
|
|
1583
|
-
return
|
|
1476
|
+
return response;
|
|
1584
1477
|
};
|
|
1585
1478
|
const de_PutMetricDataCommandError = async (output, context) => {
|
|
1586
1479
|
const parsedOutput = {
|
|
@@ -1603,10 +1496,9 @@ const de_PutMetricDataCommandError = async (output, context) => {
|
|
|
1603
1496
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1604
1497
|
default:
|
|
1605
1498
|
const parsedBody = parsedOutput.body;
|
|
1606
|
-
throwDefaultError({
|
|
1499
|
+
return throwDefaultError({
|
|
1607
1500
|
output,
|
|
1608
1501
|
parsedBody: parsedBody.Error,
|
|
1609
|
-
exceptionCtor: __BaseException,
|
|
1610
1502
|
errorCode,
|
|
1611
1503
|
});
|
|
1612
1504
|
}
|
|
@@ -1622,7 +1514,7 @@ export const de_PutMetricStreamCommand = async (output, context) => {
|
|
|
1622
1514
|
$metadata: deserializeMetadata(output),
|
|
1623
1515
|
...contents,
|
|
1624
1516
|
};
|
|
1625
|
-
return
|
|
1517
|
+
return response;
|
|
1626
1518
|
};
|
|
1627
1519
|
const de_PutMetricStreamCommandError = async (output, context) => {
|
|
1628
1520
|
const parsedOutput = {
|
|
@@ -1648,10 +1540,9 @@ const de_PutMetricStreamCommandError = async (output, context) => {
|
|
|
1648
1540
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1649
1541
|
default:
|
|
1650
1542
|
const parsedBody = parsedOutput.body;
|
|
1651
|
-
throwDefaultError({
|
|
1543
|
+
return throwDefaultError({
|
|
1652
1544
|
output,
|
|
1653
1545
|
parsedBody: parsedBody.Error,
|
|
1654
|
-
exceptionCtor: __BaseException,
|
|
1655
1546
|
errorCode,
|
|
1656
1547
|
});
|
|
1657
1548
|
}
|
|
@@ -1664,7 +1555,7 @@ export const de_SetAlarmStateCommand = async (output, context) => {
|
|
|
1664
1555
|
const response = {
|
|
1665
1556
|
$metadata: deserializeMetadata(output),
|
|
1666
1557
|
};
|
|
1667
|
-
return
|
|
1558
|
+
return response;
|
|
1668
1559
|
};
|
|
1669
1560
|
const de_SetAlarmStateCommandError = async (output, context) => {
|
|
1670
1561
|
const parsedOutput = {
|
|
@@ -1681,10 +1572,9 @@ const de_SetAlarmStateCommandError = async (output, context) => {
|
|
|
1681
1572
|
throw await de_ResourceNotFoundRes(parsedOutput, context);
|
|
1682
1573
|
default:
|
|
1683
1574
|
const parsedBody = parsedOutput.body;
|
|
1684
|
-
throwDefaultError({
|
|
1575
|
+
return throwDefaultError({
|
|
1685
1576
|
output,
|
|
1686
1577
|
parsedBody: parsedBody.Error,
|
|
1687
|
-
exceptionCtor: __BaseException,
|
|
1688
1578
|
errorCode,
|
|
1689
1579
|
});
|
|
1690
1580
|
}
|
|
@@ -1700,7 +1590,7 @@ export const de_StartMetricStreamsCommand = async (output, context) => {
|
|
|
1700
1590
|
$metadata: deserializeMetadata(output),
|
|
1701
1591
|
...contents,
|
|
1702
1592
|
};
|
|
1703
|
-
return
|
|
1593
|
+
return response;
|
|
1704
1594
|
};
|
|
1705
1595
|
const de_StartMetricStreamsCommandError = async (output, context) => {
|
|
1706
1596
|
const parsedOutput = {
|
|
@@ -1720,10 +1610,9 @@ const de_StartMetricStreamsCommandError = async (output, context) => {
|
|
|
1720
1610
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1721
1611
|
default:
|
|
1722
1612
|
const parsedBody = parsedOutput.body;
|
|
1723
|
-
throwDefaultError({
|
|
1613
|
+
return throwDefaultError({
|
|
1724
1614
|
output,
|
|
1725
1615
|
parsedBody: parsedBody.Error,
|
|
1726
|
-
exceptionCtor: __BaseException,
|
|
1727
1616
|
errorCode,
|
|
1728
1617
|
});
|
|
1729
1618
|
}
|
|
@@ -1739,7 +1628,7 @@ export const de_StopMetricStreamsCommand = async (output, context) => {
|
|
|
1739
1628
|
$metadata: deserializeMetadata(output),
|
|
1740
1629
|
...contents,
|
|
1741
1630
|
};
|
|
1742
|
-
return
|
|
1631
|
+
return response;
|
|
1743
1632
|
};
|
|
1744
1633
|
const de_StopMetricStreamsCommandError = async (output, context) => {
|
|
1745
1634
|
const parsedOutput = {
|
|
@@ -1759,10 +1648,9 @@ const de_StopMetricStreamsCommandError = async (output, context) => {
|
|
|
1759
1648
|
throw await de_MissingRequiredParameterExceptionRes(parsedOutput, context);
|
|
1760
1649
|
default:
|
|
1761
1650
|
const parsedBody = parsedOutput.body;
|
|
1762
|
-
throwDefaultError({
|
|
1651
|
+
return throwDefaultError({
|
|
1763
1652
|
output,
|
|
1764
1653
|
parsedBody: parsedBody.Error,
|
|
1765
|
-
exceptionCtor: __BaseException,
|
|
1766
1654
|
errorCode,
|
|
1767
1655
|
});
|
|
1768
1656
|
}
|
|
@@ -1778,7 +1666,7 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1778
1666
|
$metadata: deserializeMetadata(output),
|
|
1779
1667
|
...contents,
|
|
1780
1668
|
};
|
|
1781
|
-
return
|
|
1669
|
+
return response;
|
|
1782
1670
|
};
|
|
1783
1671
|
const de_TagResourceCommandError = async (output, context) => {
|
|
1784
1672
|
const parsedOutput = {
|
|
@@ -1801,10 +1689,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
1801
1689
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1802
1690
|
default:
|
|
1803
1691
|
const parsedBody = parsedOutput.body;
|
|
1804
|
-
throwDefaultError({
|
|
1692
|
+
return throwDefaultError({
|
|
1805
1693
|
output,
|
|
1806
1694
|
parsedBody: parsedBody.Error,
|
|
1807
|
-
exceptionCtor: __BaseException,
|
|
1808
1695
|
errorCode,
|
|
1809
1696
|
});
|
|
1810
1697
|
}
|
|
@@ -1820,7 +1707,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1820
1707
|
$metadata: deserializeMetadata(output),
|
|
1821
1708
|
...contents,
|
|
1822
1709
|
};
|
|
1823
|
-
return
|
|
1710
|
+
return response;
|
|
1824
1711
|
};
|
|
1825
1712
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
1826
1713
|
const parsedOutput = {
|
|
@@ -1843,10 +1730,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1843
1730
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1844
1731
|
default:
|
|
1845
1732
|
const parsedBody = parsedOutput.body;
|
|
1846
|
-
throwDefaultError({
|
|
1733
|
+
return throwDefaultError({
|
|
1847
1734
|
output,
|
|
1848
1735
|
parsedBody: parsedBody.Error,
|
|
1849
|
-
exceptionCtor: __BaseException,
|
|
1850
1736
|
errorCode,
|
|
1851
1737
|
});
|
|
1852
1738
|
}
|
|
@@ -4864,6 +4750,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
4864
4750
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4865
4751
|
};
|
|
4866
4752
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4753
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
4867
4754
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
4868
4755
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
4869
4756
|
const contents = {
|
|
@@ -4882,6 +4769,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4882
4769
|
}
|
|
4883
4770
|
return new __HttpRequest(contents);
|
|
4884
4771
|
};
|
|
4772
|
+
const SHARED_HEADERS = {
|
|
4773
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4774
|
+
};
|
|
4885
4775
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4886
4776
|
if (encoded.length) {
|
|
4887
4777
|
const parser = new XMLParser({
|