@aws-sdk/client-auto-scaling-plans 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_json1_1.js +145 -452
- package/dist-es/protocols/Aws_json1_1.js +146 -453
- package/package.json +6 -6
|
@@ -6,60 +6,42 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
6
6
|
const AutoScalingPlansServiceException_1 = require("../models/AutoScalingPlansServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_CreateScalingPlanCommand = async (input, context) => {
|
|
9
|
-
const headers =
|
|
10
|
-
"content-type": "application/x-amz-json-1.1",
|
|
11
|
-
"x-amz-target": "AnyScaleScalingPlannerFrontendService.CreateScalingPlan",
|
|
12
|
-
};
|
|
9
|
+
const headers = sharedHeaders("CreateScalingPlan");
|
|
13
10
|
let body;
|
|
14
11
|
body = JSON.stringify(se_CreateScalingPlanRequest(input, context));
|
|
15
12
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
13
|
};
|
|
17
14
|
exports.se_CreateScalingPlanCommand = se_CreateScalingPlanCommand;
|
|
18
15
|
const se_DeleteScalingPlanCommand = async (input, context) => {
|
|
19
|
-
const headers =
|
|
20
|
-
"content-type": "application/x-amz-json-1.1",
|
|
21
|
-
"x-amz-target": "AnyScaleScalingPlannerFrontendService.DeleteScalingPlan",
|
|
22
|
-
};
|
|
16
|
+
const headers = sharedHeaders("DeleteScalingPlan");
|
|
23
17
|
let body;
|
|
24
|
-
body = JSON.stringify(
|
|
18
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
25
19
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
20
|
};
|
|
27
21
|
exports.se_DeleteScalingPlanCommand = se_DeleteScalingPlanCommand;
|
|
28
22
|
const se_DescribeScalingPlanResourcesCommand = async (input, context) => {
|
|
29
|
-
const headers =
|
|
30
|
-
"content-type": "application/x-amz-json-1.1",
|
|
31
|
-
"x-amz-target": "AnyScaleScalingPlannerFrontendService.DescribeScalingPlanResources",
|
|
32
|
-
};
|
|
23
|
+
const headers = sharedHeaders("DescribeScalingPlanResources");
|
|
33
24
|
let body;
|
|
34
|
-
body = JSON.stringify(
|
|
25
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
35
26
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
27
|
};
|
|
37
28
|
exports.se_DescribeScalingPlanResourcesCommand = se_DescribeScalingPlanResourcesCommand;
|
|
38
29
|
const se_DescribeScalingPlansCommand = async (input, context) => {
|
|
39
|
-
const headers =
|
|
40
|
-
"content-type": "application/x-amz-json-1.1",
|
|
41
|
-
"x-amz-target": "AnyScaleScalingPlannerFrontendService.DescribeScalingPlans",
|
|
42
|
-
};
|
|
30
|
+
const headers = sharedHeaders("DescribeScalingPlans");
|
|
43
31
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
45
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
34
|
};
|
|
47
35
|
exports.se_DescribeScalingPlansCommand = se_DescribeScalingPlansCommand;
|
|
48
36
|
const se_GetScalingPlanResourceForecastDataCommand = async (input, context) => {
|
|
49
|
-
const headers =
|
|
50
|
-
"content-type": "application/x-amz-json-1.1",
|
|
51
|
-
"x-amz-target": "AnyScaleScalingPlannerFrontendService.GetScalingPlanResourceForecastData",
|
|
52
|
-
};
|
|
37
|
+
const headers = sharedHeaders("GetScalingPlanResourceForecastData");
|
|
53
38
|
let body;
|
|
54
39
|
body = JSON.stringify(se_GetScalingPlanResourceForecastDataRequest(input, context));
|
|
55
40
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
56
41
|
};
|
|
57
42
|
exports.se_GetScalingPlanResourceForecastDataCommand = se_GetScalingPlanResourceForecastDataCommand;
|
|
58
43
|
const se_UpdateScalingPlanCommand = async (input, context) => {
|
|
59
|
-
const headers =
|
|
60
|
-
"content-type": "application/x-amz-json-1.1",
|
|
61
|
-
"x-amz-target": "AnyScaleScalingPlannerFrontendService.UpdateScalingPlan",
|
|
62
|
-
};
|
|
44
|
+
const headers = sharedHeaders("UpdateScalingPlan");
|
|
63
45
|
let body;
|
|
64
46
|
body = JSON.stringify(se_UpdateScalingPlanRequest(input, context));
|
|
65
47
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -71,12 +53,12 @@ const de_CreateScalingPlanCommand = async (output, context) => {
|
|
|
71
53
|
}
|
|
72
54
|
const data = await parseBody(output.body, context);
|
|
73
55
|
let contents = {};
|
|
74
|
-
contents =
|
|
56
|
+
contents = (0, smithy_client_1._json)(data);
|
|
75
57
|
const response = {
|
|
76
58
|
$metadata: deserializeMetadata(output),
|
|
77
59
|
...contents,
|
|
78
60
|
};
|
|
79
|
-
return
|
|
61
|
+
return response;
|
|
80
62
|
};
|
|
81
63
|
exports.de_CreateScalingPlanCommand = de_CreateScalingPlanCommand;
|
|
82
64
|
const de_CreateScalingPlanCommandError = async (output, context) => {
|
|
@@ -100,10 +82,9 @@ const de_CreateScalingPlanCommandError = async (output, context) => {
|
|
|
100
82
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
101
83
|
default:
|
|
102
84
|
const parsedBody = parsedOutput.body;
|
|
103
|
-
|
|
85
|
+
return throwDefaultError({
|
|
104
86
|
output,
|
|
105
87
|
parsedBody,
|
|
106
|
-
exceptionCtor: AutoScalingPlansServiceException_1.AutoScalingPlansServiceException,
|
|
107
88
|
errorCode,
|
|
108
89
|
});
|
|
109
90
|
}
|
|
@@ -114,12 +95,12 @@ const de_DeleteScalingPlanCommand = async (output, context) => {
|
|
|
114
95
|
}
|
|
115
96
|
const data = await parseBody(output.body, context);
|
|
116
97
|
let contents = {};
|
|
117
|
-
contents =
|
|
98
|
+
contents = (0, smithy_client_1._json)(data);
|
|
118
99
|
const response = {
|
|
119
100
|
$metadata: deserializeMetadata(output),
|
|
120
101
|
...contents,
|
|
121
102
|
};
|
|
122
|
-
return
|
|
103
|
+
return response;
|
|
123
104
|
};
|
|
124
105
|
exports.de_DeleteScalingPlanCommand = de_DeleteScalingPlanCommand;
|
|
125
106
|
const de_DeleteScalingPlanCommandError = async (output, context) => {
|
|
@@ -143,10 +124,9 @@ const de_DeleteScalingPlanCommandError = async (output, context) => {
|
|
|
143
124
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
144
125
|
default:
|
|
145
126
|
const parsedBody = parsedOutput.body;
|
|
146
|
-
|
|
127
|
+
return throwDefaultError({
|
|
147
128
|
output,
|
|
148
129
|
parsedBody,
|
|
149
|
-
exceptionCtor: AutoScalingPlansServiceException_1.AutoScalingPlansServiceException,
|
|
150
130
|
errorCode,
|
|
151
131
|
});
|
|
152
132
|
}
|
|
@@ -162,7 +142,7 @@ const de_DescribeScalingPlanResourcesCommand = async (output, context) => {
|
|
|
162
142
|
$metadata: deserializeMetadata(output),
|
|
163
143
|
...contents,
|
|
164
144
|
};
|
|
165
|
-
return
|
|
145
|
+
return response;
|
|
166
146
|
};
|
|
167
147
|
exports.de_DescribeScalingPlanResourcesCommand = de_DescribeScalingPlanResourcesCommand;
|
|
168
148
|
const de_DescribeScalingPlanResourcesCommandError = async (output, context) => {
|
|
@@ -186,10 +166,9 @@ const de_DescribeScalingPlanResourcesCommandError = async (output, context) => {
|
|
|
186
166
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
187
167
|
default:
|
|
188
168
|
const parsedBody = parsedOutput.body;
|
|
189
|
-
|
|
169
|
+
return throwDefaultError({
|
|
190
170
|
output,
|
|
191
171
|
parsedBody,
|
|
192
|
-
exceptionCtor: AutoScalingPlansServiceException_1.AutoScalingPlansServiceException,
|
|
193
172
|
errorCode,
|
|
194
173
|
});
|
|
195
174
|
}
|
|
@@ -205,7 +184,7 @@ const de_DescribeScalingPlansCommand = async (output, context) => {
|
|
|
205
184
|
$metadata: deserializeMetadata(output),
|
|
206
185
|
...contents,
|
|
207
186
|
};
|
|
208
|
-
return
|
|
187
|
+
return response;
|
|
209
188
|
};
|
|
210
189
|
exports.de_DescribeScalingPlansCommand = de_DescribeScalingPlansCommand;
|
|
211
190
|
const de_DescribeScalingPlansCommandError = async (output, context) => {
|
|
@@ -229,10 +208,9 @@ const de_DescribeScalingPlansCommandError = async (output, context) => {
|
|
|
229
208
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
230
209
|
default:
|
|
231
210
|
const parsedBody = parsedOutput.body;
|
|
232
|
-
|
|
211
|
+
return throwDefaultError({
|
|
233
212
|
output,
|
|
234
213
|
parsedBody,
|
|
235
|
-
exceptionCtor: AutoScalingPlansServiceException_1.AutoScalingPlansServiceException,
|
|
236
214
|
errorCode,
|
|
237
215
|
});
|
|
238
216
|
}
|
|
@@ -248,7 +226,7 @@ const de_GetScalingPlanResourceForecastDataCommand = async (output, context) =>
|
|
|
248
226
|
$metadata: deserializeMetadata(output),
|
|
249
227
|
...contents,
|
|
250
228
|
};
|
|
251
|
-
return
|
|
229
|
+
return response;
|
|
252
230
|
};
|
|
253
231
|
exports.de_GetScalingPlanResourceForecastDataCommand = de_GetScalingPlanResourceForecastDataCommand;
|
|
254
232
|
const de_GetScalingPlanResourceForecastDataCommandError = async (output, context) => {
|
|
@@ -266,10 +244,9 @@ const de_GetScalingPlanResourceForecastDataCommandError = async (output, context
|
|
|
266
244
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
267
245
|
default:
|
|
268
246
|
const parsedBody = parsedOutput.body;
|
|
269
|
-
|
|
247
|
+
return throwDefaultError({
|
|
270
248
|
output,
|
|
271
249
|
parsedBody,
|
|
272
|
-
exceptionCtor: AutoScalingPlansServiceException_1.AutoScalingPlansServiceException,
|
|
273
250
|
errorCode,
|
|
274
251
|
});
|
|
275
252
|
}
|
|
@@ -280,12 +257,12 @@ const de_UpdateScalingPlanCommand = async (output, context) => {
|
|
|
280
257
|
}
|
|
281
258
|
const data = await parseBody(output.body, context);
|
|
282
259
|
let contents = {};
|
|
283
|
-
contents =
|
|
260
|
+
contents = (0, smithy_client_1._json)(data);
|
|
284
261
|
const response = {
|
|
285
262
|
$metadata: deserializeMetadata(output),
|
|
286
263
|
...contents,
|
|
287
264
|
};
|
|
288
|
-
return
|
|
265
|
+
return response;
|
|
289
266
|
};
|
|
290
267
|
exports.de_UpdateScalingPlanCommand = de_UpdateScalingPlanCommand;
|
|
291
268
|
const de_UpdateScalingPlanCommandError = async (output, context) => {
|
|
@@ -309,17 +286,16 @@ const de_UpdateScalingPlanCommandError = async (output, context) => {
|
|
|
309
286
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
310
287
|
default:
|
|
311
288
|
const parsedBody = parsedOutput.body;
|
|
312
|
-
|
|
289
|
+
return throwDefaultError({
|
|
313
290
|
output,
|
|
314
291
|
parsedBody,
|
|
315
|
-
exceptionCtor: AutoScalingPlansServiceException_1.AutoScalingPlansServiceException,
|
|
316
292
|
errorCode,
|
|
317
293
|
});
|
|
318
294
|
}
|
|
319
295
|
};
|
|
320
296
|
const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
|
|
321
297
|
const body = parsedOutput.body;
|
|
322
|
-
const deserialized =
|
|
298
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
323
299
|
const exception = new models_0_1.ConcurrentUpdateException({
|
|
324
300
|
$metadata: deserializeMetadata(parsedOutput),
|
|
325
301
|
...deserialized,
|
|
@@ -328,7 +304,7 @@ const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
|
|
|
328
304
|
};
|
|
329
305
|
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
330
306
|
const body = parsedOutput.body;
|
|
331
|
-
const deserialized =
|
|
307
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
332
308
|
const exception = new models_0_1.InternalServiceException({
|
|
333
309
|
$metadata: deserializeMetadata(parsedOutput),
|
|
334
310
|
...deserialized,
|
|
@@ -337,7 +313,7 @@ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
337
313
|
};
|
|
338
314
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
339
315
|
const body = parsedOutput.body;
|
|
340
|
-
const deserialized =
|
|
316
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
341
317
|
const exception = new models_0_1.InvalidNextTokenException({
|
|
342
318
|
$metadata: deserializeMetadata(parsedOutput),
|
|
343
319
|
...deserialized,
|
|
@@ -346,7 +322,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
346
322
|
};
|
|
347
323
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
348
324
|
const body = parsedOutput.body;
|
|
349
|
-
const deserialized =
|
|
325
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
350
326
|
const exception = new models_0_1.LimitExceededException({
|
|
351
327
|
$metadata: deserializeMetadata(parsedOutput),
|
|
352
328
|
...deserialized,
|
|
@@ -355,7 +331,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
355
331
|
};
|
|
356
332
|
const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
357
333
|
const body = parsedOutput.body;
|
|
358
|
-
const deserialized =
|
|
334
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
359
335
|
const exception = new models_0_1.ObjectNotFoundException({
|
|
360
336
|
$metadata: deserializeMetadata(parsedOutput),
|
|
361
337
|
...deserialized,
|
|
@@ -364,148 +340,49 @@ const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
364
340
|
};
|
|
365
341
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
366
342
|
const body = parsedOutput.body;
|
|
367
|
-
const deserialized =
|
|
343
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
368
344
|
const exception = new models_0_1.ValidationException({
|
|
369
345
|
$metadata: deserializeMetadata(parsedOutput),
|
|
370
346
|
...deserialized,
|
|
371
347
|
});
|
|
372
348
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
373
349
|
};
|
|
374
|
-
const se_ApplicationSource = (input, context) => {
|
|
375
|
-
return {
|
|
376
|
-
...(input.CloudFormationStackARN != null && { CloudFormationStackARN: input.CloudFormationStackARN }),
|
|
377
|
-
...(input.TagFilters != null && { TagFilters: se_TagFilters(input.TagFilters, context) }),
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
const se_ApplicationSources = (input, context) => {
|
|
381
|
-
return input
|
|
382
|
-
.filter((e) => e != null)
|
|
383
|
-
.map((entry) => {
|
|
384
|
-
return se_ApplicationSource(entry, context);
|
|
385
|
-
});
|
|
386
|
-
};
|
|
387
350
|
const se_CreateScalingPlanRequest = (input, context) => {
|
|
388
|
-
return {
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
ScalingInstructions: se_ScalingInstructions(input.ScalingInstructions, context),
|
|
394
|
-
}),
|
|
395
|
-
...(input.ScalingPlanName != null && { ScalingPlanName: input.ScalingPlanName }),
|
|
396
|
-
};
|
|
397
|
-
};
|
|
398
|
-
const se_CustomizedLoadMetricSpecification = (input, context) => {
|
|
399
|
-
return {
|
|
400
|
-
...(input.Dimensions != null && { Dimensions: se_MetricDimensions(input.Dimensions, context) }),
|
|
401
|
-
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
402
|
-
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
403
|
-
...(input.Statistic != null && { Statistic: input.Statistic }),
|
|
404
|
-
...(input.Unit != null && { Unit: input.Unit }),
|
|
405
|
-
};
|
|
406
|
-
};
|
|
407
|
-
const se_CustomizedScalingMetricSpecification = (input, context) => {
|
|
408
|
-
return {
|
|
409
|
-
...(input.Dimensions != null && { Dimensions: se_MetricDimensions(input.Dimensions, context) }),
|
|
410
|
-
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
411
|
-
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
412
|
-
...(input.Statistic != null && { Statistic: input.Statistic }),
|
|
413
|
-
...(input.Unit != null && { Unit: input.Unit }),
|
|
414
|
-
};
|
|
415
|
-
};
|
|
416
|
-
const se_DeleteScalingPlanRequest = (input, context) => {
|
|
417
|
-
return {
|
|
418
|
-
...(input.ScalingPlanName != null && { ScalingPlanName: input.ScalingPlanName }),
|
|
419
|
-
...(input.ScalingPlanVersion != null && { ScalingPlanVersion: input.ScalingPlanVersion }),
|
|
420
|
-
};
|
|
421
|
-
};
|
|
422
|
-
const se_DescribeScalingPlanResourcesRequest = (input, context) => {
|
|
423
|
-
return {
|
|
424
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
425
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
426
|
-
...(input.ScalingPlanName != null && { ScalingPlanName: input.ScalingPlanName }),
|
|
427
|
-
...(input.ScalingPlanVersion != null && { ScalingPlanVersion: input.ScalingPlanVersion }),
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
const se_DescribeScalingPlansRequest = (input, context) => {
|
|
431
|
-
return {
|
|
432
|
-
...(input.ApplicationSources != null && {
|
|
433
|
-
ApplicationSources: se_ApplicationSources(input.ApplicationSources, context),
|
|
434
|
-
}),
|
|
435
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
436
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
437
|
-
...(input.ScalingPlanNames != null && { ScalingPlanNames: se_ScalingPlanNames(input.ScalingPlanNames, context) }),
|
|
438
|
-
...(input.ScalingPlanVersion != null && { ScalingPlanVersion: input.ScalingPlanVersion }),
|
|
439
|
-
};
|
|
351
|
+
return (0, smithy_client_1.take)(input, {
|
|
352
|
+
ApplicationSource: smithy_client_1._json,
|
|
353
|
+
ScalingInstructions: (_) => se_ScalingInstructions(_, context),
|
|
354
|
+
ScalingPlanName: [],
|
|
355
|
+
});
|
|
440
356
|
};
|
|
441
357
|
const se_GetScalingPlanResourceForecastDataRequest = (input, context) => {
|
|
442
|
-
return {
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
};
|
|
452
|
-
};
|
|
453
|
-
const se_MetricDimension = (input, context) => {
|
|
454
|
-
return {
|
|
455
|
-
...(input.Name != null && { Name: input.Name }),
|
|
456
|
-
...(input.Value != null && { Value: input.Value }),
|
|
457
|
-
};
|
|
458
|
-
};
|
|
459
|
-
const se_MetricDimensions = (input, context) => {
|
|
460
|
-
return input
|
|
461
|
-
.filter((e) => e != null)
|
|
462
|
-
.map((entry) => {
|
|
463
|
-
return se_MetricDimension(entry, context);
|
|
358
|
+
return (0, smithy_client_1.take)(input, {
|
|
359
|
+
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
360
|
+
ForecastDataType: [],
|
|
361
|
+
ResourceId: [],
|
|
362
|
+
ScalableDimension: [],
|
|
363
|
+
ScalingPlanName: [],
|
|
364
|
+
ScalingPlanVersion: [],
|
|
365
|
+
ServiceNamespace: [],
|
|
366
|
+
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
464
367
|
});
|
|
465
368
|
};
|
|
466
|
-
const se_PredefinedLoadMetricSpecification = (input, context) => {
|
|
467
|
-
return {
|
|
468
|
-
...(input.PredefinedLoadMetricType != null && { PredefinedLoadMetricType: input.PredefinedLoadMetricType }),
|
|
469
|
-
...(input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }),
|
|
470
|
-
};
|
|
471
|
-
};
|
|
472
|
-
const se_PredefinedScalingMetricSpecification = (input, context) => {
|
|
473
|
-
return {
|
|
474
|
-
...(input.PredefinedScalingMetricType != null && {
|
|
475
|
-
PredefinedScalingMetricType: input.PredefinedScalingMetricType,
|
|
476
|
-
}),
|
|
477
|
-
...(input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }),
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
369
|
const se_ScalingInstruction = (input, context) => {
|
|
481
|
-
return {
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
...(input.PredictiveScalingMode != null && { PredictiveScalingMode: input.PredictiveScalingMode }),
|
|
498
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
499
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
500
|
-
...(input.ScalingPolicyUpdateBehavior != null && {
|
|
501
|
-
ScalingPolicyUpdateBehavior: input.ScalingPolicyUpdateBehavior,
|
|
502
|
-
}),
|
|
503
|
-
...(input.ScheduledActionBufferTime != null && { ScheduledActionBufferTime: input.ScheduledActionBufferTime }),
|
|
504
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
505
|
-
...(input.TargetTrackingConfigurations != null && {
|
|
506
|
-
TargetTrackingConfigurations: se_TargetTrackingConfigurations(input.TargetTrackingConfigurations, context),
|
|
507
|
-
}),
|
|
508
|
-
};
|
|
370
|
+
return (0, smithy_client_1.take)(input, {
|
|
371
|
+
CustomizedLoadMetricSpecification: smithy_client_1._json,
|
|
372
|
+
DisableDynamicScaling: [],
|
|
373
|
+
MaxCapacity: [],
|
|
374
|
+
MinCapacity: [],
|
|
375
|
+
PredefinedLoadMetricSpecification: smithy_client_1._json,
|
|
376
|
+
PredictiveScalingMaxCapacityBehavior: [],
|
|
377
|
+
PredictiveScalingMaxCapacityBuffer: [],
|
|
378
|
+
PredictiveScalingMode: [],
|
|
379
|
+
ResourceId: [],
|
|
380
|
+
ScalableDimension: [],
|
|
381
|
+
ScalingPolicyUpdateBehavior: [],
|
|
382
|
+
ScheduledActionBufferTime: [],
|
|
383
|
+
ServiceNamespace: [],
|
|
384
|
+
TargetTrackingConfigurations: (_) => se_TargetTrackingConfigurations(_, context),
|
|
385
|
+
});
|
|
509
386
|
};
|
|
510
387
|
const se_ScalingInstructions = (input, context) => {
|
|
511
388
|
return input
|
|
@@ -514,47 +391,16 @@ const se_ScalingInstructions = (input, context) => {
|
|
|
514
391
|
return se_ScalingInstruction(entry, context);
|
|
515
392
|
});
|
|
516
393
|
};
|
|
517
|
-
const se_ScalingPlanNames = (input, context) => {
|
|
518
|
-
return input
|
|
519
|
-
.filter((e) => e != null)
|
|
520
|
-
.map((entry) => {
|
|
521
|
-
return entry;
|
|
522
|
-
});
|
|
523
|
-
};
|
|
524
|
-
const se_TagFilter = (input, context) => {
|
|
525
|
-
return {
|
|
526
|
-
...(input.Key != null && { Key: input.Key }),
|
|
527
|
-
...(input.Values != null && { Values: se_TagValues(input.Values, context) }),
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
const se_TagFilters = (input, context) => {
|
|
531
|
-
return input
|
|
532
|
-
.filter((e) => e != null)
|
|
533
|
-
.map((entry) => {
|
|
534
|
-
return se_TagFilter(entry, context);
|
|
535
|
-
});
|
|
536
|
-
};
|
|
537
|
-
const se_TagValues = (input, context) => {
|
|
538
|
-
return input
|
|
539
|
-
.filter((e) => e != null)
|
|
540
|
-
.map((entry) => {
|
|
541
|
-
return entry;
|
|
542
|
-
});
|
|
543
|
-
};
|
|
544
394
|
const se_TargetTrackingConfiguration = (input, context) => {
|
|
545
|
-
return {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
...(input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }),
|
|
555
|
-
...(input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }),
|
|
556
|
-
...(input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
|
|
557
|
-
};
|
|
395
|
+
return (0, smithy_client_1.take)(input, {
|
|
396
|
+
CustomizedScalingMetricSpecification: smithy_client_1._json,
|
|
397
|
+
DisableScaleIn: [],
|
|
398
|
+
EstimatedInstanceWarmup: [],
|
|
399
|
+
PredefinedScalingMetricSpecification: smithy_client_1._json,
|
|
400
|
+
ScaleInCooldown: [],
|
|
401
|
+
ScaleOutCooldown: [],
|
|
402
|
+
TargetValue: smithy_client_1.serializeFloat,
|
|
403
|
+
});
|
|
558
404
|
};
|
|
559
405
|
const se_TargetTrackingConfigurations = (input, context) => {
|
|
560
406
|
return input
|
|
@@ -564,207 +410,98 @@ const se_TargetTrackingConfigurations = (input, context) => {
|
|
|
564
410
|
});
|
|
565
411
|
};
|
|
566
412
|
const se_UpdateScalingPlanRequest = (input, context) => {
|
|
567
|
-
return {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}),
|
|
574
|
-
...(input.ScalingPlanName != null && { ScalingPlanName: input.ScalingPlanName }),
|
|
575
|
-
...(input.ScalingPlanVersion != null && { ScalingPlanVersion: input.ScalingPlanVersion }),
|
|
576
|
-
};
|
|
577
|
-
};
|
|
578
|
-
const de_ApplicationSource = (output, context) => {
|
|
579
|
-
return {
|
|
580
|
-
CloudFormationStackARN: (0, smithy_client_1.expectString)(output.CloudFormationStackARN),
|
|
581
|
-
TagFilters: output.TagFilters != null ? de_TagFilters(output.TagFilters, context) : undefined,
|
|
582
|
-
};
|
|
583
|
-
};
|
|
584
|
-
const de_ConcurrentUpdateException = (output, context) => {
|
|
585
|
-
return {
|
|
586
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
587
|
-
};
|
|
588
|
-
};
|
|
589
|
-
const de_CreateScalingPlanResponse = (output, context) => {
|
|
590
|
-
return {
|
|
591
|
-
ScalingPlanVersion: (0, smithy_client_1.expectLong)(output.ScalingPlanVersion),
|
|
592
|
-
};
|
|
593
|
-
};
|
|
594
|
-
const de_CustomizedLoadMetricSpecification = (output, context) => {
|
|
595
|
-
return {
|
|
596
|
-
Dimensions: output.Dimensions != null ? de_MetricDimensions(output.Dimensions, context) : undefined,
|
|
597
|
-
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
598
|
-
Namespace: (0, smithy_client_1.expectString)(output.Namespace),
|
|
599
|
-
Statistic: (0, smithy_client_1.expectString)(output.Statistic),
|
|
600
|
-
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
601
|
-
};
|
|
602
|
-
};
|
|
603
|
-
const de_CustomizedScalingMetricSpecification = (output, context) => {
|
|
604
|
-
return {
|
|
605
|
-
Dimensions: output.Dimensions != null ? de_MetricDimensions(output.Dimensions, context) : undefined,
|
|
606
|
-
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
607
|
-
Namespace: (0, smithy_client_1.expectString)(output.Namespace),
|
|
608
|
-
Statistic: (0, smithy_client_1.expectString)(output.Statistic),
|
|
609
|
-
Unit: (0, smithy_client_1.expectString)(output.Unit),
|
|
610
|
-
};
|
|
413
|
+
return (0, smithy_client_1.take)(input, {
|
|
414
|
+
ApplicationSource: smithy_client_1._json,
|
|
415
|
+
ScalingInstructions: (_) => se_ScalingInstructions(_, context),
|
|
416
|
+
ScalingPlanName: [],
|
|
417
|
+
ScalingPlanVersion: [],
|
|
418
|
+
});
|
|
611
419
|
};
|
|
612
420
|
const de_Datapoint = (output, context) => {
|
|
613
|
-
return {
|
|
614
|
-
Timestamp:
|
|
615
|
-
Value:
|
|
616
|
-
};
|
|
421
|
+
return (0, smithy_client_1.take)(output, {
|
|
422
|
+
Timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
423
|
+
Value: smithy_client_1.limitedParseDouble,
|
|
424
|
+
});
|
|
617
425
|
};
|
|
618
426
|
const de_Datapoints = (output, context) => {
|
|
619
427
|
const retVal = (output || [])
|
|
620
428
|
.filter((e) => e != null)
|
|
621
429
|
.map((entry) => {
|
|
622
|
-
if (entry === null) {
|
|
623
|
-
return null;
|
|
624
|
-
}
|
|
625
430
|
return de_Datapoint(entry, context);
|
|
626
431
|
});
|
|
627
432
|
return retVal;
|
|
628
433
|
};
|
|
629
|
-
const de_DeleteScalingPlanResponse = (output, context) => {
|
|
630
|
-
return {};
|
|
631
|
-
};
|
|
632
434
|
const de_DescribeScalingPlanResourcesResponse = (output, context) => {
|
|
633
|
-
return {
|
|
634
|
-
NextToken:
|
|
635
|
-
ScalingPlanResources:
|
|
636
|
-
};
|
|
435
|
+
return (0, smithy_client_1.take)(output, {
|
|
436
|
+
NextToken: smithy_client_1.expectString,
|
|
437
|
+
ScalingPlanResources: (_) => de_ScalingPlanResources(_, context),
|
|
438
|
+
});
|
|
637
439
|
};
|
|
638
440
|
const de_DescribeScalingPlansResponse = (output, context) => {
|
|
639
|
-
return {
|
|
640
|
-
NextToken:
|
|
641
|
-
ScalingPlans:
|
|
642
|
-
};
|
|
441
|
+
return (0, smithy_client_1.take)(output, {
|
|
442
|
+
NextToken: smithy_client_1.expectString,
|
|
443
|
+
ScalingPlans: (_) => de_ScalingPlans(_, context),
|
|
444
|
+
});
|
|
643
445
|
};
|
|
644
446
|
const de_GetScalingPlanResourceForecastDataResponse = (output, context) => {
|
|
645
|
-
return {
|
|
646
|
-
Datapoints:
|
|
647
|
-
};
|
|
648
|
-
};
|
|
649
|
-
const de_InternalServiceException = (output, context) => {
|
|
650
|
-
return {
|
|
651
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
652
|
-
};
|
|
653
|
-
};
|
|
654
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
655
|
-
return {
|
|
656
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
657
|
-
};
|
|
658
|
-
};
|
|
659
|
-
const de_LimitExceededException = (output, context) => {
|
|
660
|
-
return {
|
|
661
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
662
|
-
};
|
|
663
|
-
};
|
|
664
|
-
const de_MetricDimension = (output, context) => {
|
|
665
|
-
return {
|
|
666
|
-
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
667
|
-
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
668
|
-
};
|
|
669
|
-
};
|
|
670
|
-
const de_MetricDimensions = (output, context) => {
|
|
671
|
-
const retVal = (output || [])
|
|
672
|
-
.filter((e) => e != null)
|
|
673
|
-
.map((entry) => {
|
|
674
|
-
if (entry === null) {
|
|
675
|
-
return null;
|
|
676
|
-
}
|
|
677
|
-
return de_MetricDimension(entry, context);
|
|
447
|
+
return (0, smithy_client_1.take)(output, {
|
|
448
|
+
Datapoints: (_) => de_Datapoints(_, context),
|
|
678
449
|
});
|
|
679
|
-
return retVal;
|
|
680
|
-
};
|
|
681
|
-
const de_ObjectNotFoundException = (output, context) => {
|
|
682
|
-
return {
|
|
683
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
684
|
-
};
|
|
685
|
-
};
|
|
686
|
-
const de_PredefinedLoadMetricSpecification = (output, context) => {
|
|
687
|
-
return {
|
|
688
|
-
PredefinedLoadMetricType: (0, smithy_client_1.expectString)(output.PredefinedLoadMetricType),
|
|
689
|
-
ResourceLabel: (0, smithy_client_1.expectString)(output.ResourceLabel),
|
|
690
|
-
};
|
|
691
|
-
};
|
|
692
|
-
const de_PredefinedScalingMetricSpecification = (output, context) => {
|
|
693
|
-
return {
|
|
694
|
-
PredefinedScalingMetricType: (0, smithy_client_1.expectString)(output.PredefinedScalingMetricType),
|
|
695
|
-
ResourceLabel: (0, smithy_client_1.expectString)(output.ResourceLabel),
|
|
696
|
-
};
|
|
697
450
|
};
|
|
698
451
|
const de_ScalingInstruction = (output, context) => {
|
|
699
|
-
return {
|
|
700
|
-
CustomizedLoadMetricSpecification:
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
ScheduledActionBufferTime: (0, smithy_client_1.expectInt32)(output.ScheduledActionBufferTime),
|
|
716
|
-
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
717
|
-
TargetTrackingConfigurations: output.TargetTrackingConfigurations != null
|
|
718
|
-
? de_TargetTrackingConfigurations(output.TargetTrackingConfigurations, context)
|
|
719
|
-
: undefined,
|
|
720
|
-
};
|
|
452
|
+
return (0, smithy_client_1.take)(output, {
|
|
453
|
+
CustomizedLoadMetricSpecification: smithy_client_1._json,
|
|
454
|
+
DisableDynamicScaling: smithy_client_1.expectBoolean,
|
|
455
|
+
MaxCapacity: smithy_client_1.expectInt32,
|
|
456
|
+
MinCapacity: smithy_client_1.expectInt32,
|
|
457
|
+
PredefinedLoadMetricSpecification: smithy_client_1._json,
|
|
458
|
+
PredictiveScalingMaxCapacityBehavior: smithy_client_1.expectString,
|
|
459
|
+
PredictiveScalingMaxCapacityBuffer: smithy_client_1.expectInt32,
|
|
460
|
+
PredictiveScalingMode: smithy_client_1.expectString,
|
|
461
|
+
ResourceId: smithy_client_1.expectString,
|
|
462
|
+
ScalableDimension: smithy_client_1.expectString,
|
|
463
|
+
ScalingPolicyUpdateBehavior: smithy_client_1.expectString,
|
|
464
|
+
ScheduledActionBufferTime: smithy_client_1.expectInt32,
|
|
465
|
+
ServiceNamespace: smithy_client_1.expectString,
|
|
466
|
+
TargetTrackingConfigurations: (_) => de_TargetTrackingConfigurations(_, context),
|
|
467
|
+
});
|
|
721
468
|
};
|
|
722
469
|
const de_ScalingInstructions = (output, context) => {
|
|
723
470
|
const retVal = (output || [])
|
|
724
471
|
.filter((e) => e != null)
|
|
725
472
|
.map((entry) => {
|
|
726
|
-
if (entry === null) {
|
|
727
|
-
return null;
|
|
728
|
-
}
|
|
729
473
|
return de_ScalingInstruction(entry, context);
|
|
730
474
|
});
|
|
731
475
|
return retVal;
|
|
732
476
|
};
|
|
733
477
|
const de_ScalingPlan = (output, context) => {
|
|
734
|
-
return {
|
|
735
|
-
ApplicationSource:
|
|
736
|
-
CreationTime:
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
StatusStartTime: output.StatusStartTime != null
|
|
745
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StatusStartTime)))
|
|
746
|
-
: undefined,
|
|
747
|
-
};
|
|
478
|
+
return (0, smithy_client_1.take)(output, {
|
|
479
|
+
ApplicationSource: smithy_client_1._json,
|
|
480
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
481
|
+
ScalingInstructions: (_) => de_ScalingInstructions(_, context),
|
|
482
|
+
ScalingPlanName: smithy_client_1.expectString,
|
|
483
|
+
ScalingPlanVersion: smithy_client_1.expectLong,
|
|
484
|
+
StatusCode: smithy_client_1.expectString,
|
|
485
|
+
StatusMessage: smithy_client_1.expectString,
|
|
486
|
+
StatusStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
487
|
+
});
|
|
748
488
|
};
|
|
749
489
|
const de_ScalingPlanResource = (output, context) => {
|
|
750
|
-
return {
|
|
751
|
-
ResourceId:
|
|
752
|
-
ScalableDimension:
|
|
753
|
-
ScalingPlanName:
|
|
754
|
-
ScalingPlanVersion:
|
|
755
|
-
ScalingPolicies:
|
|
756
|
-
ScalingStatusCode:
|
|
757
|
-
ScalingStatusMessage:
|
|
758
|
-
ServiceNamespace:
|
|
759
|
-
};
|
|
490
|
+
return (0, smithy_client_1.take)(output, {
|
|
491
|
+
ResourceId: smithy_client_1.expectString,
|
|
492
|
+
ScalableDimension: smithy_client_1.expectString,
|
|
493
|
+
ScalingPlanName: smithy_client_1.expectString,
|
|
494
|
+
ScalingPlanVersion: smithy_client_1.expectLong,
|
|
495
|
+
ScalingPolicies: (_) => de_ScalingPolicies(_, context),
|
|
496
|
+
ScalingStatusCode: smithy_client_1.expectString,
|
|
497
|
+
ScalingStatusMessage: smithy_client_1.expectString,
|
|
498
|
+
ServiceNamespace: smithy_client_1.expectString,
|
|
499
|
+
});
|
|
760
500
|
};
|
|
761
501
|
const de_ScalingPlanResources = (output, context) => {
|
|
762
502
|
const retVal = (output || [])
|
|
763
503
|
.filter((e) => e != null)
|
|
764
504
|
.map((entry) => {
|
|
765
|
-
if (entry === null) {
|
|
766
|
-
return null;
|
|
767
|
-
}
|
|
768
505
|
return de_ScalingPlanResource(entry, context);
|
|
769
506
|
});
|
|
770
507
|
return retVal;
|
|
@@ -773,9 +510,6 @@ const de_ScalingPlans = (output, context) => {
|
|
|
773
510
|
const retVal = (output || [])
|
|
774
511
|
.filter((e) => e != null)
|
|
775
512
|
.map((entry) => {
|
|
776
|
-
if (entry === null) {
|
|
777
|
-
return null;
|
|
778
|
-
}
|
|
779
513
|
return de_ScalingPlan(entry, context);
|
|
780
514
|
});
|
|
781
515
|
return retVal;
|
|
@@ -784,84 +518,36 @@ const de_ScalingPolicies = (output, context) => {
|
|
|
784
518
|
const retVal = (output || [])
|
|
785
519
|
.filter((e) => e != null)
|
|
786
520
|
.map((entry) => {
|
|
787
|
-
if (entry === null) {
|
|
788
|
-
return null;
|
|
789
|
-
}
|
|
790
521
|
return de_ScalingPolicy(entry, context);
|
|
791
522
|
});
|
|
792
523
|
return retVal;
|
|
793
524
|
};
|
|
794
525
|
const de_ScalingPolicy = (output, context) => {
|
|
795
|
-
return {
|
|
796
|
-
PolicyName:
|
|
797
|
-
PolicyType:
|
|
798
|
-
TargetTrackingConfiguration:
|
|
799
|
-
? de_TargetTrackingConfiguration(output.TargetTrackingConfiguration, context)
|
|
800
|
-
: undefined,
|
|
801
|
-
};
|
|
802
|
-
};
|
|
803
|
-
const de_TagFilter = (output, context) => {
|
|
804
|
-
return {
|
|
805
|
-
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
806
|
-
Values: output.Values != null ? de_TagValues(output.Values, context) : undefined,
|
|
807
|
-
};
|
|
808
|
-
};
|
|
809
|
-
const de_TagFilters = (output, context) => {
|
|
810
|
-
const retVal = (output || [])
|
|
811
|
-
.filter((e) => e != null)
|
|
812
|
-
.map((entry) => {
|
|
813
|
-
if (entry === null) {
|
|
814
|
-
return null;
|
|
815
|
-
}
|
|
816
|
-
return de_TagFilter(entry, context);
|
|
526
|
+
return (0, smithy_client_1.take)(output, {
|
|
527
|
+
PolicyName: smithy_client_1.expectString,
|
|
528
|
+
PolicyType: smithy_client_1.expectString,
|
|
529
|
+
TargetTrackingConfiguration: (_) => de_TargetTrackingConfiguration(_, context),
|
|
817
530
|
});
|
|
818
|
-
return retVal;
|
|
819
|
-
};
|
|
820
|
-
const de_TagValues = (output, context) => {
|
|
821
|
-
const retVal = (output || [])
|
|
822
|
-
.filter((e) => e != null)
|
|
823
|
-
.map((entry) => {
|
|
824
|
-
if (entry === null) {
|
|
825
|
-
return null;
|
|
826
|
-
}
|
|
827
|
-
return (0, smithy_client_1.expectString)(entry);
|
|
828
|
-
});
|
|
829
|
-
return retVal;
|
|
830
531
|
};
|
|
831
532
|
const de_TargetTrackingConfiguration = (output, context) => {
|
|
832
|
-
return {
|
|
833
|
-
CustomizedScalingMetricSpecification:
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
ScaleInCooldown: (0, smithy_client_1.expectInt32)(output.ScaleInCooldown),
|
|
842
|
-
ScaleOutCooldown: (0, smithy_client_1.expectInt32)(output.ScaleOutCooldown),
|
|
843
|
-
TargetValue: (0, smithy_client_1.limitedParseDouble)(output.TargetValue),
|
|
844
|
-
};
|
|
533
|
+
return (0, smithy_client_1.take)(output, {
|
|
534
|
+
CustomizedScalingMetricSpecification: smithy_client_1._json,
|
|
535
|
+
DisableScaleIn: smithy_client_1.expectBoolean,
|
|
536
|
+
EstimatedInstanceWarmup: smithy_client_1.expectInt32,
|
|
537
|
+
PredefinedScalingMetricSpecification: smithy_client_1._json,
|
|
538
|
+
ScaleInCooldown: smithy_client_1.expectInt32,
|
|
539
|
+
ScaleOutCooldown: smithy_client_1.expectInt32,
|
|
540
|
+
TargetValue: smithy_client_1.limitedParseDouble,
|
|
541
|
+
});
|
|
845
542
|
};
|
|
846
543
|
const de_TargetTrackingConfigurations = (output, context) => {
|
|
847
544
|
const retVal = (output || [])
|
|
848
545
|
.filter((e) => e != null)
|
|
849
546
|
.map((entry) => {
|
|
850
|
-
if (entry === null) {
|
|
851
|
-
return null;
|
|
852
|
-
}
|
|
853
547
|
return de_TargetTrackingConfiguration(entry, context);
|
|
854
548
|
});
|
|
855
549
|
return retVal;
|
|
856
550
|
};
|
|
857
|
-
const de_UpdateScalingPlanResponse = (output, context) => {
|
|
858
|
-
return {};
|
|
859
|
-
};
|
|
860
|
-
const de_ValidationException = (output, context) => {
|
|
861
|
-
return {
|
|
862
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
863
|
-
};
|
|
864
|
-
};
|
|
865
551
|
const deserializeMetadata = (output) => ({
|
|
866
552
|
httpStatusCode: output.statusCode,
|
|
867
553
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -875,6 +561,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
875
561
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
876
562
|
};
|
|
877
563
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
564
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(AutoScalingPlansServiceException_1.AutoScalingPlansServiceException);
|
|
878
565
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
879
566
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
880
567
|
const contents = {
|
|
@@ -893,6 +580,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
893
580
|
}
|
|
894
581
|
return new protocol_http_1.HttpRequest(contents);
|
|
895
582
|
};
|
|
583
|
+
function sharedHeaders(operation) {
|
|
584
|
+
return {
|
|
585
|
+
"content-type": "application/x-amz-json-1.1",
|
|
586
|
+
"x-amz-target": `AnyScaleScalingPlannerFrontendService.${operation}`,
|
|
587
|
+
};
|
|
588
|
+
}
|
|
896
589
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
897
590
|
if (encoded.length) {
|
|
898
591
|
return JSON.parse(encoded);
|