@aws-sdk/client-cloudwatch 3.310.0 → 3.312.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 +41 -114
- package/dist-es/protocols/Aws_query.js +41 -114
- package/package.json +2 -2
|
@@ -8,9 +8,7 @@ const fast_xml_parser_1 = require("fast-xml-parser");
|
|
|
8
8
|
const CloudWatchServiceException_1 = require("../models/CloudWatchServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_DeleteAlarmsCommand = async (input, context) => {
|
|
11
|
-
const headers =
|
|
12
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
13
|
-
};
|
|
11
|
+
const headers = SHARED_HEADERS;
|
|
14
12
|
let body;
|
|
15
13
|
body = buildFormUrlencodedString({
|
|
16
14
|
...se_DeleteAlarmsInput(input, context),
|
|
@@ -21,9 +19,7 @@ const se_DeleteAlarmsCommand = async (input, context) => {
|
|
|
21
19
|
};
|
|
22
20
|
exports.se_DeleteAlarmsCommand = se_DeleteAlarmsCommand;
|
|
23
21
|
const se_DeleteAnomalyDetectorCommand = async (input, context) => {
|
|
24
|
-
const headers =
|
|
25
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
26
|
-
};
|
|
22
|
+
const headers = SHARED_HEADERS;
|
|
27
23
|
let body;
|
|
28
24
|
body = buildFormUrlencodedString({
|
|
29
25
|
...se_DeleteAnomalyDetectorInput(input, context),
|
|
@@ -34,9 +30,7 @@ const se_DeleteAnomalyDetectorCommand = async (input, context) => {
|
|
|
34
30
|
};
|
|
35
31
|
exports.se_DeleteAnomalyDetectorCommand = se_DeleteAnomalyDetectorCommand;
|
|
36
32
|
const se_DeleteDashboardsCommand = async (input, context) => {
|
|
37
|
-
const headers =
|
|
38
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
39
|
-
};
|
|
33
|
+
const headers = SHARED_HEADERS;
|
|
40
34
|
let body;
|
|
41
35
|
body = buildFormUrlencodedString({
|
|
42
36
|
...se_DeleteDashboardsInput(input, context),
|
|
@@ -47,9 +41,7 @@ const se_DeleteDashboardsCommand = async (input, context) => {
|
|
|
47
41
|
};
|
|
48
42
|
exports.se_DeleteDashboardsCommand = se_DeleteDashboardsCommand;
|
|
49
43
|
const se_DeleteInsightRulesCommand = async (input, context) => {
|
|
50
|
-
const headers =
|
|
51
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
52
|
-
};
|
|
44
|
+
const headers = SHARED_HEADERS;
|
|
53
45
|
let body;
|
|
54
46
|
body = buildFormUrlencodedString({
|
|
55
47
|
...se_DeleteInsightRulesInput(input, context),
|
|
@@ -60,9 +52,7 @@ const se_DeleteInsightRulesCommand = async (input, context) => {
|
|
|
60
52
|
};
|
|
61
53
|
exports.se_DeleteInsightRulesCommand = se_DeleteInsightRulesCommand;
|
|
62
54
|
const se_DeleteMetricStreamCommand = async (input, context) => {
|
|
63
|
-
const headers =
|
|
64
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
65
|
-
};
|
|
55
|
+
const headers = SHARED_HEADERS;
|
|
66
56
|
let body;
|
|
67
57
|
body = buildFormUrlencodedString({
|
|
68
58
|
...se_DeleteMetricStreamInput(input, context),
|
|
@@ -73,9 +63,7 @@ const se_DeleteMetricStreamCommand = async (input, context) => {
|
|
|
73
63
|
};
|
|
74
64
|
exports.se_DeleteMetricStreamCommand = se_DeleteMetricStreamCommand;
|
|
75
65
|
const se_DescribeAlarmHistoryCommand = async (input, context) => {
|
|
76
|
-
const headers =
|
|
77
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
78
|
-
};
|
|
66
|
+
const headers = SHARED_HEADERS;
|
|
79
67
|
let body;
|
|
80
68
|
body = buildFormUrlencodedString({
|
|
81
69
|
...se_DescribeAlarmHistoryInput(input, context),
|
|
@@ -86,9 +74,7 @@ const se_DescribeAlarmHistoryCommand = async (input, context) => {
|
|
|
86
74
|
};
|
|
87
75
|
exports.se_DescribeAlarmHistoryCommand = se_DescribeAlarmHistoryCommand;
|
|
88
76
|
const se_DescribeAlarmsCommand = async (input, context) => {
|
|
89
|
-
const headers =
|
|
90
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
91
|
-
};
|
|
77
|
+
const headers = SHARED_HEADERS;
|
|
92
78
|
let body;
|
|
93
79
|
body = buildFormUrlencodedString({
|
|
94
80
|
...se_DescribeAlarmsInput(input, context),
|
|
@@ -99,9 +85,7 @@ const se_DescribeAlarmsCommand = async (input, context) => {
|
|
|
99
85
|
};
|
|
100
86
|
exports.se_DescribeAlarmsCommand = se_DescribeAlarmsCommand;
|
|
101
87
|
const se_DescribeAlarmsForMetricCommand = async (input, context) => {
|
|
102
|
-
const headers =
|
|
103
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
104
|
-
};
|
|
88
|
+
const headers = SHARED_HEADERS;
|
|
105
89
|
let body;
|
|
106
90
|
body = buildFormUrlencodedString({
|
|
107
91
|
...se_DescribeAlarmsForMetricInput(input, context),
|
|
@@ -112,9 +96,7 @@ const se_DescribeAlarmsForMetricCommand = async (input, context) => {
|
|
|
112
96
|
};
|
|
113
97
|
exports.se_DescribeAlarmsForMetricCommand = se_DescribeAlarmsForMetricCommand;
|
|
114
98
|
const se_DescribeAnomalyDetectorsCommand = async (input, context) => {
|
|
115
|
-
const headers =
|
|
116
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
117
|
-
};
|
|
99
|
+
const headers = SHARED_HEADERS;
|
|
118
100
|
let body;
|
|
119
101
|
body = buildFormUrlencodedString({
|
|
120
102
|
...se_DescribeAnomalyDetectorsInput(input, context),
|
|
@@ -125,9 +107,7 @@ const se_DescribeAnomalyDetectorsCommand = async (input, context) => {
|
|
|
125
107
|
};
|
|
126
108
|
exports.se_DescribeAnomalyDetectorsCommand = se_DescribeAnomalyDetectorsCommand;
|
|
127
109
|
const se_DescribeInsightRulesCommand = async (input, context) => {
|
|
128
|
-
const headers =
|
|
129
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
130
|
-
};
|
|
110
|
+
const headers = SHARED_HEADERS;
|
|
131
111
|
let body;
|
|
132
112
|
body = buildFormUrlencodedString({
|
|
133
113
|
...se_DescribeInsightRulesInput(input, context),
|
|
@@ -138,9 +118,7 @@ const se_DescribeInsightRulesCommand = async (input, context) => {
|
|
|
138
118
|
};
|
|
139
119
|
exports.se_DescribeInsightRulesCommand = se_DescribeInsightRulesCommand;
|
|
140
120
|
const se_DisableAlarmActionsCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
143
|
-
};
|
|
121
|
+
const headers = SHARED_HEADERS;
|
|
144
122
|
let body;
|
|
145
123
|
body = buildFormUrlencodedString({
|
|
146
124
|
...se_DisableAlarmActionsInput(input, context),
|
|
@@ -151,9 +129,7 @@ const se_DisableAlarmActionsCommand = async (input, context) => {
|
|
|
151
129
|
};
|
|
152
130
|
exports.se_DisableAlarmActionsCommand = se_DisableAlarmActionsCommand;
|
|
153
131
|
const se_DisableInsightRulesCommand = async (input, context) => {
|
|
154
|
-
const headers =
|
|
155
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
156
|
-
};
|
|
132
|
+
const headers = SHARED_HEADERS;
|
|
157
133
|
let body;
|
|
158
134
|
body = buildFormUrlencodedString({
|
|
159
135
|
...se_DisableInsightRulesInput(input, context),
|
|
@@ -164,9 +140,7 @@ const se_DisableInsightRulesCommand = async (input, context) => {
|
|
|
164
140
|
};
|
|
165
141
|
exports.se_DisableInsightRulesCommand = se_DisableInsightRulesCommand;
|
|
166
142
|
const se_EnableAlarmActionsCommand = async (input, context) => {
|
|
167
|
-
const headers =
|
|
168
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
169
|
-
};
|
|
143
|
+
const headers = SHARED_HEADERS;
|
|
170
144
|
let body;
|
|
171
145
|
body = buildFormUrlencodedString({
|
|
172
146
|
...se_EnableAlarmActionsInput(input, context),
|
|
@@ -177,9 +151,7 @@ const se_EnableAlarmActionsCommand = async (input, context) => {
|
|
|
177
151
|
};
|
|
178
152
|
exports.se_EnableAlarmActionsCommand = se_EnableAlarmActionsCommand;
|
|
179
153
|
const se_EnableInsightRulesCommand = async (input, context) => {
|
|
180
|
-
const headers =
|
|
181
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
182
|
-
};
|
|
154
|
+
const headers = SHARED_HEADERS;
|
|
183
155
|
let body;
|
|
184
156
|
body = buildFormUrlencodedString({
|
|
185
157
|
...se_EnableInsightRulesInput(input, context),
|
|
@@ -190,9 +162,7 @@ const se_EnableInsightRulesCommand = async (input, context) => {
|
|
|
190
162
|
};
|
|
191
163
|
exports.se_EnableInsightRulesCommand = se_EnableInsightRulesCommand;
|
|
192
164
|
const se_GetDashboardCommand = async (input, context) => {
|
|
193
|
-
const headers =
|
|
194
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
195
|
-
};
|
|
165
|
+
const headers = SHARED_HEADERS;
|
|
196
166
|
let body;
|
|
197
167
|
body = buildFormUrlencodedString({
|
|
198
168
|
...se_GetDashboardInput(input, context),
|
|
@@ -203,9 +173,7 @@ const se_GetDashboardCommand = async (input, context) => {
|
|
|
203
173
|
};
|
|
204
174
|
exports.se_GetDashboardCommand = se_GetDashboardCommand;
|
|
205
175
|
const se_GetInsightRuleReportCommand = async (input, context) => {
|
|
206
|
-
const headers =
|
|
207
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
208
|
-
};
|
|
176
|
+
const headers = SHARED_HEADERS;
|
|
209
177
|
let body;
|
|
210
178
|
body = buildFormUrlencodedString({
|
|
211
179
|
...se_GetInsightRuleReportInput(input, context),
|
|
@@ -216,9 +184,7 @@ const se_GetInsightRuleReportCommand = async (input, context) => {
|
|
|
216
184
|
};
|
|
217
185
|
exports.se_GetInsightRuleReportCommand = se_GetInsightRuleReportCommand;
|
|
218
186
|
const se_GetMetricDataCommand = async (input, context) => {
|
|
219
|
-
const headers =
|
|
220
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
221
|
-
};
|
|
187
|
+
const headers = SHARED_HEADERS;
|
|
222
188
|
let body;
|
|
223
189
|
body = buildFormUrlencodedString({
|
|
224
190
|
...se_GetMetricDataInput(input, context),
|
|
@@ -229,9 +195,7 @@ const se_GetMetricDataCommand = async (input, context) => {
|
|
|
229
195
|
};
|
|
230
196
|
exports.se_GetMetricDataCommand = se_GetMetricDataCommand;
|
|
231
197
|
const se_GetMetricStatisticsCommand = async (input, context) => {
|
|
232
|
-
const headers =
|
|
233
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
234
|
-
};
|
|
198
|
+
const headers = SHARED_HEADERS;
|
|
235
199
|
let body;
|
|
236
200
|
body = buildFormUrlencodedString({
|
|
237
201
|
...se_GetMetricStatisticsInput(input, context),
|
|
@@ -242,9 +206,7 @@ const se_GetMetricStatisticsCommand = async (input, context) => {
|
|
|
242
206
|
};
|
|
243
207
|
exports.se_GetMetricStatisticsCommand = se_GetMetricStatisticsCommand;
|
|
244
208
|
const se_GetMetricStreamCommand = async (input, context) => {
|
|
245
|
-
const headers =
|
|
246
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
247
|
-
};
|
|
209
|
+
const headers = SHARED_HEADERS;
|
|
248
210
|
let body;
|
|
249
211
|
body = buildFormUrlencodedString({
|
|
250
212
|
...se_GetMetricStreamInput(input, context),
|
|
@@ -255,9 +217,7 @@ const se_GetMetricStreamCommand = async (input, context) => {
|
|
|
255
217
|
};
|
|
256
218
|
exports.se_GetMetricStreamCommand = se_GetMetricStreamCommand;
|
|
257
219
|
const se_GetMetricWidgetImageCommand = async (input, context) => {
|
|
258
|
-
const headers =
|
|
259
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
260
|
-
};
|
|
220
|
+
const headers = SHARED_HEADERS;
|
|
261
221
|
let body;
|
|
262
222
|
body = buildFormUrlencodedString({
|
|
263
223
|
...se_GetMetricWidgetImageInput(input, context),
|
|
@@ -268,9 +228,7 @@ const se_GetMetricWidgetImageCommand = async (input, context) => {
|
|
|
268
228
|
};
|
|
269
229
|
exports.se_GetMetricWidgetImageCommand = se_GetMetricWidgetImageCommand;
|
|
270
230
|
const se_ListDashboardsCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
273
|
-
};
|
|
231
|
+
const headers = SHARED_HEADERS;
|
|
274
232
|
let body;
|
|
275
233
|
body = buildFormUrlencodedString({
|
|
276
234
|
...se_ListDashboardsInput(input, context),
|
|
@@ -281,9 +239,7 @@ const se_ListDashboardsCommand = async (input, context) => {
|
|
|
281
239
|
};
|
|
282
240
|
exports.se_ListDashboardsCommand = se_ListDashboardsCommand;
|
|
283
241
|
const se_ListManagedInsightRulesCommand = async (input, context) => {
|
|
284
|
-
const headers =
|
|
285
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
286
|
-
};
|
|
242
|
+
const headers = SHARED_HEADERS;
|
|
287
243
|
let body;
|
|
288
244
|
body = buildFormUrlencodedString({
|
|
289
245
|
...se_ListManagedInsightRulesInput(input, context),
|
|
@@ -294,9 +250,7 @@ const se_ListManagedInsightRulesCommand = async (input, context) => {
|
|
|
294
250
|
};
|
|
295
251
|
exports.se_ListManagedInsightRulesCommand = se_ListManagedInsightRulesCommand;
|
|
296
252
|
const se_ListMetricsCommand = async (input, context) => {
|
|
297
|
-
const headers =
|
|
298
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
299
|
-
};
|
|
253
|
+
const headers = SHARED_HEADERS;
|
|
300
254
|
let body;
|
|
301
255
|
body = buildFormUrlencodedString({
|
|
302
256
|
...se_ListMetricsInput(input, context),
|
|
@@ -307,9 +261,7 @@ const se_ListMetricsCommand = async (input, context) => {
|
|
|
307
261
|
};
|
|
308
262
|
exports.se_ListMetricsCommand = se_ListMetricsCommand;
|
|
309
263
|
const se_ListMetricStreamsCommand = async (input, context) => {
|
|
310
|
-
const headers =
|
|
311
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
312
|
-
};
|
|
264
|
+
const headers = SHARED_HEADERS;
|
|
313
265
|
let body;
|
|
314
266
|
body = buildFormUrlencodedString({
|
|
315
267
|
...se_ListMetricStreamsInput(input, context),
|
|
@@ -320,9 +272,7 @@ const se_ListMetricStreamsCommand = async (input, context) => {
|
|
|
320
272
|
};
|
|
321
273
|
exports.se_ListMetricStreamsCommand = se_ListMetricStreamsCommand;
|
|
322
274
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
323
|
-
const headers =
|
|
324
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
325
|
-
};
|
|
275
|
+
const headers = SHARED_HEADERS;
|
|
326
276
|
let body;
|
|
327
277
|
body = buildFormUrlencodedString({
|
|
328
278
|
...se_ListTagsForResourceInput(input, context),
|
|
@@ -333,9 +283,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
333
283
|
};
|
|
334
284
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
335
285
|
const se_PutAnomalyDetectorCommand = async (input, context) => {
|
|
336
|
-
const headers =
|
|
337
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
338
|
-
};
|
|
286
|
+
const headers = SHARED_HEADERS;
|
|
339
287
|
let body;
|
|
340
288
|
body = buildFormUrlencodedString({
|
|
341
289
|
...se_PutAnomalyDetectorInput(input, context),
|
|
@@ -346,9 +294,7 @@ const se_PutAnomalyDetectorCommand = async (input, context) => {
|
|
|
346
294
|
};
|
|
347
295
|
exports.se_PutAnomalyDetectorCommand = se_PutAnomalyDetectorCommand;
|
|
348
296
|
const se_PutCompositeAlarmCommand = async (input, context) => {
|
|
349
|
-
const headers =
|
|
350
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
351
|
-
};
|
|
297
|
+
const headers = SHARED_HEADERS;
|
|
352
298
|
let body;
|
|
353
299
|
body = buildFormUrlencodedString({
|
|
354
300
|
...se_PutCompositeAlarmInput(input, context),
|
|
@@ -359,9 +305,7 @@ const se_PutCompositeAlarmCommand = async (input, context) => {
|
|
|
359
305
|
};
|
|
360
306
|
exports.se_PutCompositeAlarmCommand = se_PutCompositeAlarmCommand;
|
|
361
307
|
const se_PutDashboardCommand = async (input, context) => {
|
|
362
|
-
const headers =
|
|
363
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
364
|
-
};
|
|
308
|
+
const headers = SHARED_HEADERS;
|
|
365
309
|
let body;
|
|
366
310
|
body = buildFormUrlencodedString({
|
|
367
311
|
...se_PutDashboardInput(input, context),
|
|
@@ -372,9 +316,7 @@ const se_PutDashboardCommand = async (input, context) => {
|
|
|
372
316
|
};
|
|
373
317
|
exports.se_PutDashboardCommand = se_PutDashboardCommand;
|
|
374
318
|
const se_PutInsightRuleCommand = async (input, context) => {
|
|
375
|
-
const headers =
|
|
376
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
377
|
-
};
|
|
319
|
+
const headers = SHARED_HEADERS;
|
|
378
320
|
let body;
|
|
379
321
|
body = buildFormUrlencodedString({
|
|
380
322
|
...se_PutInsightRuleInput(input, context),
|
|
@@ -385,9 +327,7 @@ const se_PutInsightRuleCommand = async (input, context) => {
|
|
|
385
327
|
};
|
|
386
328
|
exports.se_PutInsightRuleCommand = se_PutInsightRuleCommand;
|
|
387
329
|
const se_PutManagedInsightRulesCommand = async (input, context) => {
|
|
388
|
-
const headers =
|
|
389
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
390
|
-
};
|
|
330
|
+
const headers = SHARED_HEADERS;
|
|
391
331
|
let body;
|
|
392
332
|
body = buildFormUrlencodedString({
|
|
393
333
|
...se_PutManagedInsightRulesInput(input, context),
|
|
@@ -398,9 +338,7 @@ const se_PutManagedInsightRulesCommand = async (input, context) => {
|
|
|
398
338
|
};
|
|
399
339
|
exports.se_PutManagedInsightRulesCommand = se_PutManagedInsightRulesCommand;
|
|
400
340
|
const se_PutMetricAlarmCommand = async (input, context) => {
|
|
401
|
-
const headers =
|
|
402
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
403
|
-
};
|
|
341
|
+
const headers = SHARED_HEADERS;
|
|
404
342
|
let body;
|
|
405
343
|
body = buildFormUrlencodedString({
|
|
406
344
|
...se_PutMetricAlarmInput(input, context),
|
|
@@ -411,9 +349,7 @@ const se_PutMetricAlarmCommand = async (input, context) => {
|
|
|
411
349
|
};
|
|
412
350
|
exports.se_PutMetricAlarmCommand = se_PutMetricAlarmCommand;
|
|
413
351
|
const se_PutMetricDataCommand = async (input, context) => {
|
|
414
|
-
const headers =
|
|
415
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
416
|
-
};
|
|
352
|
+
const headers = SHARED_HEADERS;
|
|
417
353
|
let body;
|
|
418
354
|
body = buildFormUrlencodedString({
|
|
419
355
|
...se_PutMetricDataInput(input, context),
|
|
@@ -424,9 +360,7 @@ const se_PutMetricDataCommand = async (input, context) => {
|
|
|
424
360
|
};
|
|
425
361
|
exports.se_PutMetricDataCommand = se_PutMetricDataCommand;
|
|
426
362
|
const se_PutMetricStreamCommand = async (input, context) => {
|
|
427
|
-
const headers =
|
|
428
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
429
|
-
};
|
|
363
|
+
const headers = SHARED_HEADERS;
|
|
430
364
|
let body;
|
|
431
365
|
body = buildFormUrlencodedString({
|
|
432
366
|
...se_PutMetricStreamInput(input, context),
|
|
@@ -437,9 +371,7 @@ const se_PutMetricStreamCommand = async (input, context) => {
|
|
|
437
371
|
};
|
|
438
372
|
exports.se_PutMetricStreamCommand = se_PutMetricStreamCommand;
|
|
439
373
|
const se_SetAlarmStateCommand = async (input, context) => {
|
|
440
|
-
const headers =
|
|
441
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
442
|
-
};
|
|
374
|
+
const headers = SHARED_HEADERS;
|
|
443
375
|
let body;
|
|
444
376
|
body = buildFormUrlencodedString({
|
|
445
377
|
...se_SetAlarmStateInput(input, context),
|
|
@@ -450,9 +382,7 @@ const se_SetAlarmStateCommand = async (input, context) => {
|
|
|
450
382
|
};
|
|
451
383
|
exports.se_SetAlarmStateCommand = se_SetAlarmStateCommand;
|
|
452
384
|
const se_StartMetricStreamsCommand = async (input, context) => {
|
|
453
|
-
const headers =
|
|
454
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
455
|
-
};
|
|
385
|
+
const headers = SHARED_HEADERS;
|
|
456
386
|
let body;
|
|
457
387
|
body = buildFormUrlencodedString({
|
|
458
388
|
...se_StartMetricStreamsInput(input, context),
|
|
@@ -463,9 +393,7 @@ const se_StartMetricStreamsCommand = async (input, context) => {
|
|
|
463
393
|
};
|
|
464
394
|
exports.se_StartMetricStreamsCommand = se_StartMetricStreamsCommand;
|
|
465
395
|
const se_StopMetricStreamsCommand = async (input, context) => {
|
|
466
|
-
const headers =
|
|
467
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
468
|
-
};
|
|
396
|
+
const headers = SHARED_HEADERS;
|
|
469
397
|
let body;
|
|
470
398
|
body = buildFormUrlencodedString({
|
|
471
399
|
...se_StopMetricStreamsInput(input, context),
|
|
@@ -476,9 +404,7 @@ const se_StopMetricStreamsCommand = async (input, context) => {
|
|
|
476
404
|
};
|
|
477
405
|
exports.se_StopMetricStreamsCommand = se_StopMetricStreamsCommand;
|
|
478
406
|
const se_TagResourceCommand = async (input, context) => {
|
|
479
|
-
const headers =
|
|
480
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
481
|
-
};
|
|
407
|
+
const headers = SHARED_HEADERS;
|
|
482
408
|
let body;
|
|
483
409
|
body = buildFormUrlencodedString({
|
|
484
410
|
...se_TagResourceInput(input, context),
|
|
@@ -489,9 +415,7 @@ const se_TagResourceCommand = async (input, context) => {
|
|
|
489
415
|
};
|
|
490
416
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
491
417
|
const se_UntagResourceCommand = async (input, context) => {
|
|
492
|
-
const headers =
|
|
493
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
494
|
-
};
|
|
418
|
+
const headers = SHARED_HEADERS;
|
|
495
419
|
let body;
|
|
496
420
|
body = buildFormUrlencodedString({
|
|
497
421
|
...se_UntagResourceInput(input, context),
|
|
@@ -4962,6 +4886,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4962
4886
|
}
|
|
4963
4887
|
return new protocol_http_1.HttpRequest(contents);
|
|
4964
4888
|
};
|
|
4889
|
+
const SHARED_HEADERS = {
|
|
4890
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4891
|
+
};
|
|
4965
4892
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4966
4893
|
if (encoded.length) {
|
|
4967
4894
|
const parser = new fast_xml_parser_1.XMLParser({
|
|
@@ -4,9 +4,7 @@ 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),
|
|
@@ -4882,6 +4806,9 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4882
4806
|
}
|
|
4883
4807
|
return new __HttpRequest(contents);
|
|
4884
4808
|
};
|
|
4809
|
+
const SHARED_HEADERS = {
|
|
4810
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
4811
|
+
};
|
|
4885
4812
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4886
4813
|
if (encoded.length) {
|
|
4887
4814
|
const parser = new XMLParser({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudwatch",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudwatch Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.312.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.312.0",
|
|
25
25
|
"@aws-sdk/config-resolver": "3.310.0",
|
|
26
26
|
"@aws-sdk/credential-provider-node": "3.310.0",
|
|
27
27
|
"@aws-sdk/fetch-http-handler": "3.310.0",
|