@aws-sdk/client-application-auto-scaling 3.312.0 → 3.315.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/protocols/Aws_json1_1.js +177 -656
- package/dist-es/protocols/Aws_json1_1.js +178 -657
- package/package.json +6 -6
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
|
-
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat,
|
|
2
|
+
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ApplicationAutoScalingServiceException as __BaseException } from "../models/ApplicationAutoScalingServiceException";
|
|
4
4
|
import { ConcurrentUpdateException, FailedResourceAccessException, InternalServiceException, InvalidNextTokenException, LimitExceededException, ObjectNotFoundException, ResourceNotFoundException, TooManyTagsException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_DeleteScalingPolicyCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("DeleteScalingPolicy");
|
|
7
7
|
let body;
|
|
8
|
-
body = JSON.stringify(
|
|
8
|
+
body = JSON.stringify(_json(input));
|
|
9
9
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
10
10
|
};
|
|
11
11
|
export const se_DeleteScheduledActionCommand = async (input, context) => {
|
|
12
12
|
const headers = sharedHeaders("DeleteScheduledAction");
|
|
13
13
|
let body;
|
|
14
|
-
body = JSON.stringify(
|
|
14
|
+
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
17
|
export const se_DeregisterScalableTargetCommand = async (input, context) => {
|
|
18
18
|
const headers = sharedHeaders("DeregisterScalableTarget");
|
|
19
19
|
let body;
|
|
20
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify(_json(input));
|
|
21
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
22
|
};
|
|
23
23
|
export const se_DescribeScalableTargetsCommand = async (input, context) => {
|
|
24
24
|
const headers = sharedHeaders("DescribeScalableTargets");
|
|
25
25
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
26
|
+
body = JSON.stringify(_json(input));
|
|
27
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
28
|
};
|
|
29
29
|
export const se_DescribeScalingActivitiesCommand = async (input, context) => {
|
|
30
30
|
const headers = sharedHeaders("DescribeScalingActivities");
|
|
31
31
|
let body;
|
|
32
|
-
body = JSON.stringify(
|
|
32
|
+
body = JSON.stringify(_json(input));
|
|
33
33
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
34
34
|
};
|
|
35
35
|
export const se_DescribeScalingPoliciesCommand = async (input, context) => {
|
|
36
36
|
const headers = sharedHeaders("DescribeScalingPolicies");
|
|
37
37
|
let body;
|
|
38
|
-
body = JSON.stringify(
|
|
38
|
+
body = JSON.stringify(_json(input));
|
|
39
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
40
|
};
|
|
41
41
|
export const se_DescribeScheduledActionsCommand = async (input, context) => {
|
|
42
42
|
const headers = sharedHeaders("DescribeScheduledActions");
|
|
43
43
|
let body;
|
|
44
|
-
body = JSON.stringify(
|
|
44
|
+
body = JSON.stringify(_json(input));
|
|
45
45
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
46
|
};
|
|
47
47
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
48
48
|
const headers = sharedHeaders("ListTagsForResource");
|
|
49
49
|
let body;
|
|
50
|
-
body = JSON.stringify(
|
|
50
|
+
body = JSON.stringify(_json(input));
|
|
51
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
52
|
};
|
|
53
53
|
export const se_PutScalingPolicyCommand = async (input, context) => {
|
|
@@ -65,19 +65,19 @@ export const se_PutScheduledActionCommand = async (input, context) => {
|
|
|
65
65
|
export const se_RegisterScalableTargetCommand = async (input, context) => {
|
|
66
66
|
const headers = sharedHeaders("RegisterScalableTarget");
|
|
67
67
|
let body;
|
|
68
|
-
body = JSON.stringify(
|
|
68
|
+
body = JSON.stringify(_json(input));
|
|
69
69
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
70
|
};
|
|
71
71
|
export const se_TagResourceCommand = async (input, context) => {
|
|
72
72
|
const headers = sharedHeaders("TagResource");
|
|
73
73
|
let body;
|
|
74
|
-
body = JSON.stringify(
|
|
74
|
+
body = JSON.stringify(_json(input));
|
|
75
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
76
|
};
|
|
77
77
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
78
78
|
const headers = sharedHeaders("UntagResource");
|
|
79
79
|
let body;
|
|
80
|
-
body = JSON.stringify(
|
|
80
|
+
body = JSON.stringify(_json(input));
|
|
81
81
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
82
|
};
|
|
83
83
|
export const de_DeleteScalingPolicyCommand = async (output, context) => {
|
|
@@ -86,12 +86,12 @@ export const de_DeleteScalingPolicyCommand = async (output, context) => {
|
|
|
86
86
|
}
|
|
87
87
|
const data = await parseBody(output.body, context);
|
|
88
88
|
let contents = {};
|
|
89
|
-
contents =
|
|
89
|
+
contents = _json(data);
|
|
90
90
|
const response = {
|
|
91
91
|
$metadata: deserializeMetadata(output),
|
|
92
92
|
...contents,
|
|
93
93
|
};
|
|
94
|
-
return
|
|
94
|
+
return response;
|
|
95
95
|
};
|
|
96
96
|
const de_DeleteScalingPolicyCommandError = async (output, context) => {
|
|
97
97
|
const parsedOutput = {
|
|
@@ -114,10 +114,9 @@ const de_DeleteScalingPolicyCommandError = async (output, context) => {
|
|
|
114
114
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
115
115
|
default:
|
|
116
116
|
const parsedBody = parsedOutput.body;
|
|
117
|
-
throwDefaultError({
|
|
117
|
+
return throwDefaultError({
|
|
118
118
|
output,
|
|
119
119
|
parsedBody,
|
|
120
|
-
exceptionCtor: __BaseException,
|
|
121
120
|
errorCode,
|
|
122
121
|
});
|
|
123
122
|
}
|
|
@@ -128,12 +127,12 @@ export const de_DeleteScheduledActionCommand = async (output, context) => {
|
|
|
128
127
|
}
|
|
129
128
|
const data = await parseBody(output.body, context);
|
|
130
129
|
let contents = {};
|
|
131
|
-
contents =
|
|
130
|
+
contents = _json(data);
|
|
132
131
|
const response = {
|
|
133
132
|
$metadata: deserializeMetadata(output),
|
|
134
133
|
...contents,
|
|
135
134
|
};
|
|
136
|
-
return
|
|
135
|
+
return response;
|
|
137
136
|
};
|
|
138
137
|
const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
139
138
|
const parsedOutput = {
|
|
@@ -156,10 +155,9 @@ const de_DeleteScheduledActionCommandError = async (output, context) => {
|
|
|
156
155
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
157
156
|
default:
|
|
158
157
|
const parsedBody = parsedOutput.body;
|
|
159
|
-
throwDefaultError({
|
|
158
|
+
return throwDefaultError({
|
|
160
159
|
output,
|
|
161
160
|
parsedBody,
|
|
162
|
-
exceptionCtor: __BaseException,
|
|
163
161
|
errorCode,
|
|
164
162
|
});
|
|
165
163
|
}
|
|
@@ -170,12 +168,12 @@ export const de_DeregisterScalableTargetCommand = async (output, context) => {
|
|
|
170
168
|
}
|
|
171
169
|
const data = await parseBody(output.body, context);
|
|
172
170
|
let contents = {};
|
|
173
|
-
contents =
|
|
171
|
+
contents = _json(data);
|
|
174
172
|
const response = {
|
|
175
173
|
$metadata: deserializeMetadata(output),
|
|
176
174
|
...contents,
|
|
177
175
|
};
|
|
178
|
-
return
|
|
176
|
+
return response;
|
|
179
177
|
};
|
|
180
178
|
const de_DeregisterScalableTargetCommandError = async (output, context) => {
|
|
181
179
|
const parsedOutput = {
|
|
@@ -198,10 +196,9 @@ const de_DeregisterScalableTargetCommandError = async (output, context) => {
|
|
|
198
196
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
199
197
|
default:
|
|
200
198
|
const parsedBody = parsedOutput.body;
|
|
201
|
-
throwDefaultError({
|
|
199
|
+
return throwDefaultError({
|
|
202
200
|
output,
|
|
203
201
|
parsedBody,
|
|
204
|
-
exceptionCtor: __BaseException,
|
|
205
202
|
errorCode,
|
|
206
203
|
});
|
|
207
204
|
}
|
|
@@ -217,7 +214,7 @@ export const de_DescribeScalableTargetsCommand = async (output, context) => {
|
|
|
217
214
|
$metadata: deserializeMetadata(output),
|
|
218
215
|
...contents,
|
|
219
216
|
};
|
|
220
|
-
return
|
|
217
|
+
return response;
|
|
221
218
|
};
|
|
222
219
|
const de_DescribeScalableTargetsCommandError = async (output, context) => {
|
|
223
220
|
const parsedOutput = {
|
|
@@ -240,10 +237,9 @@ const de_DescribeScalableTargetsCommandError = async (output, context) => {
|
|
|
240
237
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
241
238
|
default:
|
|
242
239
|
const parsedBody = parsedOutput.body;
|
|
243
|
-
throwDefaultError({
|
|
240
|
+
return throwDefaultError({
|
|
244
241
|
output,
|
|
245
242
|
parsedBody,
|
|
246
|
-
exceptionCtor: __BaseException,
|
|
247
243
|
errorCode,
|
|
248
244
|
});
|
|
249
245
|
}
|
|
@@ -259,7 +255,7 @@ export const de_DescribeScalingActivitiesCommand = async (output, context) => {
|
|
|
259
255
|
$metadata: deserializeMetadata(output),
|
|
260
256
|
...contents,
|
|
261
257
|
};
|
|
262
|
-
return
|
|
258
|
+
return response;
|
|
263
259
|
};
|
|
264
260
|
const de_DescribeScalingActivitiesCommandError = async (output, context) => {
|
|
265
261
|
const parsedOutput = {
|
|
@@ -282,10 +278,9 @@ const de_DescribeScalingActivitiesCommandError = async (output, context) => {
|
|
|
282
278
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
283
279
|
default:
|
|
284
280
|
const parsedBody = parsedOutput.body;
|
|
285
|
-
throwDefaultError({
|
|
281
|
+
return throwDefaultError({
|
|
286
282
|
output,
|
|
287
283
|
parsedBody,
|
|
288
|
-
exceptionCtor: __BaseException,
|
|
289
284
|
errorCode,
|
|
290
285
|
});
|
|
291
286
|
}
|
|
@@ -301,7 +296,7 @@ export const de_DescribeScalingPoliciesCommand = async (output, context) => {
|
|
|
301
296
|
$metadata: deserializeMetadata(output),
|
|
302
297
|
...contents,
|
|
303
298
|
};
|
|
304
|
-
return
|
|
299
|
+
return response;
|
|
305
300
|
};
|
|
306
301
|
const de_DescribeScalingPoliciesCommandError = async (output, context) => {
|
|
307
302
|
const parsedOutput = {
|
|
@@ -327,10 +322,9 @@ const de_DescribeScalingPoliciesCommandError = async (output, context) => {
|
|
|
327
322
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
328
323
|
default:
|
|
329
324
|
const parsedBody = parsedOutput.body;
|
|
330
|
-
throwDefaultError({
|
|
325
|
+
return throwDefaultError({
|
|
331
326
|
output,
|
|
332
327
|
parsedBody,
|
|
333
|
-
exceptionCtor: __BaseException,
|
|
334
328
|
errorCode,
|
|
335
329
|
});
|
|
336
330
|
}
|
|
@@ -346,7 +340,7 @@ export const de_DescribeScheduledActionsCommand = async (output, context) => {
|
|
|
346
340
|
$metadata: deserializeMetadata(output),
|
|
347
341
|
...contents,
|
|
348
342
|
};
|
|
349
|
-
return
|
|
343
|
+
return response;
|
|
350
344
|
};
|
|
351
345
|
const de_DescribeScheduledActionsCommandError = async (output, context) => {
|
|
352
346
|
const parsedOutput = {
|
|
@@ -369,10 +363,9 @@ const de_DescribeScheduledActionsCommandError = async (output, context) => {
|
|
|
369
363
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
370
364
|
default:
|
|
371
365
|
const parsedBody = parsedOutput.body;
|
|
372
|
-
throwDefaultError({
|
|
366
|
+
return throwDefaultError({
|
|
373
367
|
output,
|
|
374
368
|
parsedBody,
|
|
375
|
-
exceptionCtor: __BaseException,
|
|
376
369
|
errorCode,
|
|
377
370
|
});
|
|
378
371
|
}
|
|
@@ -383,12 +376,12 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
383
376
|
}
|
|
384
377
|
const data = await parseBody(output.body, context);
|
|
385
378
|
let contents = {};
|
|
386
|
-
contents =
|
|
379
|
+
contents = _json(data);
|
|
387
380
|
const response = {
|
|
388
381
|
$metadata: deserializeMetadata(output),
|
|
389
382
|
...contents,
|
|
390
383
|
};
|
|
391
|
-
return
|
|
384
|
+
return response;
|
|
392
385
|
};
|
|
393
386
|
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
394
387
|
const parsedOutput = {
|
|
@@ -402,10 +395,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
402
395
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
403
396
|
default:
|
|
404
397
|
const parsedBody = parsedOutput.body;
|
|
405
|
-
throwDefaultError({
|
|
398
|
+
return throwDefaultError({
|
|
406
399
|
output,
|
|
407
400
|
parsedBody,
|
|
408
|
-
exceptionCtor: __BaseException,
|
|
409
401
|
errorCode,
|
|
410
402
|
});
|
|
411
403
|
}
|
|
@@ -416,12 +408,12 @@ export const de_PutScalingPolicyCommand = async (output, context) => {
|
|
|
416
408
|
}
|
|
417
409
|
const data = await parseBody(output.body, context);
|
|
418
410
|
let contents = {};
|
|
419
|
-
contents =
|
|
411
|
+
contents = _json(data);
|
|
420
412
|
const response = {
|
|
421
413
|
$metadata: deserializeMetadata(output),
|
|
422
414
|
...contents,
|
|
423
415
|
};
|
|
424
|
-
return
|
|
416
|
+
return response;
|
|
425
417
|
};
|
|
426
418
|
const de_PutScalingPolicyCommandError = async (output, context) => {
|
|
427
419
|
const parsedOutput = {
|
|
@@ -450,10 +442,9 @@ const de_PutScalingPolicyCommandError = async (output, context) => {
|
|
|
450
442
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
451
443
|
default:
|
|
452
444
|
const parsedBody = parsedOutput.body;
|
|
453
|
-
throwDefaultError({
|
|
445
|
+
return throwDefaultError({
|
|
454
446
|
output,
|
|
455
447
|
parsedBody,
|
|
456
|
-
exceptionCtor: __BaseException,
|
|
457
448
|
errorCode,
|
|
458
449
|
});
|
|
459
450
|
}
|
|
@@ -464,12 +455,12 @@ export const de_PutScheduledActionCommand = async (output, context) => {
|
|
|
464
455
|
}
|
|
465
456
|
const data = await parseBody(output.body, context);
|
|
466
457
|
let contents = {};
|
|
467
|
-
contents =
|
|
458
|
+
contents = _json(data);
|
|
468
459
|
const response = {
|
|
469
460
|
$metadata: deserializeMetadata(output),
|
|
470
461
|
...contents,
|
|
471
462
|
};
|
|
472
|
-
return
|
|
463
|
+
return response;
|
|
473
464
|
};
|
|
474
465
|
const de_PutScheduledActionCommandError = async (output, context) => {
|
|
475
466
|
const parsedOutput = {
|
|
@@ -495,10 +486,9 @@ const de_PutScheduledActionCommandError = async (output, context) => {
|
|
|
495
486
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
496
487
|
default:
|
|
497
488
|
const parsedBody = parsedOutput.body;
|
|
498
|
-
throwDefaultError({
|
|
489
|
+
return throwDefaultError({
|
|
499
490
|
output,
|
|
500
491
|
parsedBody,
|
|
501
|
-
exceptionCtor: __BaseException,
|
|
502
492
|
errorCode,
|
|
503
493
|
});
|
|
504
494
|
}
|
|
@@ -509,12 +499,12 @@ export const de_RegisterScalableTargetCommand = async (output, context) => {
|
|
|
509
499
|
}
|
|
510
500
|
const data = await parseBody(output.body, context);
|
|
511
501
|
let contents = {};
|
|
512
|
-
contents =
|
|
502
|
+
contents = _json(data);
|
|
513
503
|
const response = {
|
|
514
504
|
$metadata: deserializeMetadata(output),
|
|
515
505
|
...contents,
|
|
516
506
|
};
|
|
517
|
-
return
|
|
507
|
+
return response;
|
|
518
508
|
};
|
|
519
509
|
const de_RegisterScalableTargetCommandError = async (output, context) => {
|
|
520
510
|
const parsedOutput = {
|
|
@@ -537,10 +527,9 @@ const de_RegisterScalableTargetCommandError = async (output, context) => {
|
|
|
537
527
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
538
528
|
default:
|
|
539
529
|
const parsedBody = parsedOutput.body;
|
|
540
|
-
throwDefaultError({
|
|
530
|
+
return throwDefaultError({
|
|
541
531
|
output,
|
|
542
532
|
parsedBody,
|
|
543
|
-
exceptionCtor: __BaseException,
|
|
544
533
|
errorCode,
|
|
545
534
|
});
|
|
546
535
|
}
|
|
@@ -551,12 +540,12 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
551
540
|
}
|
|
552
541
|
const data = await parseBody(output.body, context);
|
|
553
542
|
let contents = {};
|
|
554
|
-
contents =
|
|
543
|
+
contents = _json(data);
|
|
555
544
|
const response = {
|
|
556
545
|
$metadata: deserializeMetadata(output),
|
|
557
546
|
...contents,
|
|
558
547
|
};
|
|
559
|
-
return
|
|
548
|
+
return response;
|
|
560
549
|
};
|
|
561
550
|
const de_TagResourceCommandError = async (output, context) => {
|
|
562
551
|
const parsedOutput = {
|
|
@@ -576,10 +565,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
576
565
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
577
566
|
default:
|
|
578
567
|
const parsedBody = parsedOutput.body;
|
|
579
|
-
throwDefaultError({
|
|
568
|
+
return throwDefaultError({
|
|
580
569
|
output,
|
|
581
570
|
parsedBody,
|
|
582
|
-
exceptionCtor: __BaseException,
|
|
583
571
|
errorCode,
|
|
584
572
|
});
|
|
585
573
|
}
|
|
@@ -590,12 +578,12 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
590
578
|
}
|
|
591
579
|
const data = await parseBody(output.body, context);
|
|
592
580
|
let contents = {};
|
|
593
|
-
contents =
|
|
581
|
+
contents = _json(data);
|
|
594
582
|
const response = {
|
|
595
583
|
$metadata: deserializeMetadata(output),
|
|
596
584
|
...contents,
|
|
597
585
|
};
|
|
598
|
-
return
|
|
586
|
+
return response;
|
|
599
587
|
};
|
|
600
588
|
const de_UntagResourceCommandError = async (output, context) => {
|
|
601
589
|
const parsedOutput = {
|
|
@@ -612,17 +600,16 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
612
600
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
613
601
|
default:
|
|
614
602
|
const parsedBody = parsedOutput.body;
|
|
615
|
-
throwDefaultError({
|
|
603
|
+
return throwDefaultError({
|
|
616
604
|
output,
|
|
617
605
|
parsedBody,
|
|
618
|
-
exceptionCtor: __BaseException,
|
|
619
606
|
errorCode,
|
|
620
607
|
});
|
|
621
608
|
}
|
|
622
609
|
};
|
|
623
610
|
const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
|
|
624
611
|
const body = parsedOutput.body;
|
|
625
|
-
const deserialized =
|
|
612
|
+
const deserialized = _json(body);
|
|
626
613
|
const exception = new ConcurrentUpdateException({
|
|
627
614
|
$metadata: deserializeMetadata(parsedOutput),
|
|
628
615
|
...deserialized,
|
|
@@ -631,7 +618,7 @@ const de_ConcurrentUpdateExceptionRes = async (parsedOutput, context) => {
|
|
|
631
618
|
};
|
|
632
619
|
const de_FailedResourceAccessExceptionRes = async (parsedOutput, context) => {
|
|
633
620
|
const body = parsedOutput.body;
|
|
634
|
-
const deserialized =
|
|
621
|
+
const deserialized = _json(body);
|
|
635
622
|
const exception = new FailedResourceAccessException({
|
|
636
623
|
$metadata: deserializeMetadata(parsedOutput),
|
|
637
624
|
...deserialized,
|
|
@@ -640,7 +627,7 @@ const de_FailedResourceAccessExceptionRes = async (parsedOutput, context) => {
|
|
|
640
627
|
};
|
|
641
628
|
const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
642
629
|
const body = parsedOutput.body;
|
|
643
|
-
const deserialized =
|
|
630
|
+
const deserialized = _json(body);
|
|
644
631
|
const exception = new InternalServiceException({
|
|
645
632
|
$metadata: deserializeMetadata(parsedOutput),
|
|
646
633
|
...deserialized,
|
|
@@ -649,7 +636,7 @@ const de_InternalServiceExceptionRes = async (parsedOutput, context) => {
|
|
|
649
636
|
};
|
|
650
637
|
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
651
638
|
const body = parsedOutput.body;
|
|
652
|
-
const deserialized =
|
|
639
|
+
const deserialized = _json(body);
|
|
653
640
|
const exception = new InvalidNextTokenException({
|
|
654
641
|
$metadata: deserializeMetadata(parsedOutput),
|
|
655
642
|
...deserialized,
|
|
@@ -658,7 +645,7 @@ const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
|
658
645
|
};
|
|
659
646
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
660
647
|
const body = parsedOutput.body;
|
|
661
|
-
const deserialized =
|
|
648
|
+
const deserialized = _json(body);
|
|
662
649
|
const exception = new LimitExceededException({
|
|
663
650
|
$metadata: deserializeMetadata(parsedOutput),
|
|
664
651
|
...deserialized,
|
|
@@ -667,7 +654,7 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
667
654
|
};
|
|
668
655
|
const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
669
656
|
const body = parsedOutput.body;
|
|
670
|
-
const deserialized =
|
|
657
|
+
const deserialized = _json(body);
|
|
671
658
|
const exception = new ObjectNotFoundException({
|
|
672
659
|
$metadata: deserializeMetadata(parsedOutput),
|
|
673
660
|
...deserialized,
|
|
@@ -676,7 +663,7 @@ const de_ObjectNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
676
663
|
};
|
|
677
664
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
678
665
|
const body = parsedOutput.body;
|
|
679
|
-
const deserialized =
|
|
666
|
+
const deserialized = _json(body);
|
|
680
667
|
const exception = new ResourceNotFoundException({
|
|
681
668
|
$metadata: deserializeMetadata(parsedOutput),
|
|
682
669
|
...deserialized,
|
|
@@ -685,7 +672,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
685
672
|
};
|
|
686
673
|
const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
687
674
|
const body = parsedOutput.body;
|
|
688
|
-
const deserialized =
|
|
675
|
+
const deserialized = _json(body);
|
|
689
676
|
const exception = new TooManyTagsException({
|
|
690
677
|
$metadata: deserializeMetadata(parsedOutput),
|
|
691
678
|
...deserialized,
|
|
@@ -694,176 +681,43 @@ const de_TooManyTagsExceptionRes = async (parsedOutput, context) => {
|
|
|
694
681
|
};
|
|
695
682
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
696
683
|
const body = parsedOutput.body;
|
|
697
|
-
const deserialized =
|
|
684
|
+
const deserialized = _json(body);
|
|
698
685
|
const exception = new ValidationException({
|
|
699
686
|
$metadata: deserializeMetadata(parsedOutput),
|
|
700
687
|
...deserialized,
|
|
701
688
|
});
|
|
702
689
|
return __decorateServiceException(exception, body);
|
|
703
690
|
};
|
|
704
|
-
const se_CustomizedMetricSpecification = (input, context) => {
|
|
705
|
-
return {
|
|
706
|
-
...(input.Dimensions != null && { Dimensions: se_MetricDimensions(input.Dimensions, context) }),
|
|
707
|
-
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
708
|
-
...(input.Metrics != null && { Metrics: se_TargetTrackingMetricDataQueries(input.Metrics, context) }),
|
|
709
|
-
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
710
|
-
...(input.Statistic != null && { Statistic: input.Statistic }),
|
|
711
|
-
...(input.Unit != null && { Unit: input.Unit }),
|
|
712
|
-
};
|
|
713
|
-
};
|
|
714
|
-
const se_DeleteScalingPolicyRequest = (input, context) => {
|
|
715
|
-
return {
|
|
716
|
-
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
717
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
718
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
719
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
720
|
-
};
|
|
721
|
-
};
|
|
722
|
-
const se_DeleteScheduledActionRequest = (input, context) => {
|
|
723
|
-
return {
|
|
724
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
725
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
726
|
-
...(input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName }),
|
|
727
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
728
|
-
};
|
|
729
|
-
};
|
|
730
|
-
const se_DeregisterScalableTargetRequest = (input, context) => {
|
|
731
|
-
return {
|
|
732
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
733
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
734
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
735
|
-
};
|
|
736
|
-
};
|
|
737
|
-
const se_DescribeScalableTargetsRequest = (input, context) => {
|
|
738
|
-
return {
|
|
739
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
740
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
741
|
-
...(input.ResourceIds != null && { ResourceIds: se_ResourceIdsMaxLen1600(input.ResourceIds, context) }),
|
|
742
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
743
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
744
|
-
};
|
|
745
|
-
};
|
|
746
|
-
const se_DescribeScalingActivitiesRequest = (input, context) => {
|
|
747
|
-
return {
|
|
748
|
-
...(input.IncludeNotScaledActivities != null && { IncludeNotScaledActivities: input.IncludeNotScaledActivities }),
|
|
749
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
750
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
751
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
752
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
753
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
754
|
-
};
|
|
755
|
-
};
|
|
756
|
-
const se_DescribeScalingPoliciesRequest = (input, context) => {
|
|
757
|
-
return {
|
|
758
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
759
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
760
|
-
...(input.PolicyNames != null && { PolicyNames: se_ResourceIdsMaxLen1600(input.PolicyNames, context) }),
|
|
761
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
762
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
763
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
764
|
-
};
|
|
765
|
-
};
|
|
766
|
-
const se_DescribeScheduledActionsRequest = (input, context) => {
|
|
767
|
-
return {
|
|
768
|
-
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
769
|
-
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
770
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
771
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
772
|
-
...(input.ScheduledActionNames != null && {
|
|
773
|
-
ScheduledActionNames: se_ResourceIdsMaxLen1600(input.ScheduledActionNames, context),
|
|
774
|
-
}),
|
|
775
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
776
|
-
};
|
|
777
|
-
};
|
|
778
|
-
const se_ListTagsForResourceRequest = (input, context) => {
|
|
779
|
-
return {
|
|
780
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
781
|
-
};
|
|
782
|
-
};
|
|
783
|
-
const se_MetricDimension = (input, context) => {
|
|
784
|
-
return {
|
|
785
|
-
...(input.Name != null && { Name: input.Name }),
|
|
786
|
-
...(input.Value != null && { Value: input.Value }),
|
|
787
|
-
};
|
|
788
|
-
};
|
|
789
|
-
const se_MetricDimensions = (input, context) => {
|
|
790
|
-
return input
|
|
791
|
-
.filter((e) => e != null)
|
|
792
|
-
.map((entry) => {
|
|
793
|
-
return se_MetricDimension(entry, context);
|
|
794
|
-
});
|
|
795
|
-
};
|
|
796
|
-
const se_PredefinedMetricSpecification = (input, context) => {
|
|
797
|
-
return {
|
|
798
|
-
...(input.PredefinedMetricType != null && { PredefinedMetricType: input.PredefinedMetricType }),
|
|
799
|
-
...(input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }),
|
|
800
|
-
};
|
|
801
|
-
};
|
|
802
691
|
const se_PutScalingPolicyRequest = (input, context) => {
|
|
803
|
-
return {
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
...(input.TargetTrackingScalingPolicyConfiguration != null && {
|
|
813
|
-
TargetTrackingScalingPolicyConfiguration: se_TargetTrackingScalingPolicyConfiguration(input.TargetTrackingScalingPolicyConfiguration, context),
|
|
814
|
-
}),
|
|
815
|
-
};
|
|
692
|
+
return take(input, {
|
|
693
|
+
PolicyName: [],
|
|
694
|
+
PolicyType: [],
|
|
695
|
+
ResourceId: [],
|
|
696
|
+
ScalableDimension: [],
|
|
697
|
+
ServiceNamespace: [],
|
|
698
|
+
StepScalingPolicyConfiguration: (_) => se_StepScalingPolicyConfiguration(_, context),
|
|
699
|
+
TargetTrackingScalingPolicyConfiguration: (_) => se_TargetTrackingScalingPolicyConfiguration(_, context),
|
|
700
|
+
});
|
|
816
701
|
};
|
|
817
702
|
const se_PutScheduledActionRequest = (input, context) => {
|
|
818
|
-
return {
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
829
|
-
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
830
|
-
};
|
|
831
|
-
};
|
|
832
|
-
const se_RegisterScalableTargetRequest = (input, context) => {
|
|
833
|
-
return {
|
|
834
|
-
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
835
|
-
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
836
|
-
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
837
|
-
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
838
|
-
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
839
|
-
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
840
|
-
...(input.SuspendedState != null && { SuspendedState: se_SuspendedState(input.SuspendedState, context) }),
|
|
841
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
842
|
-
};
|
|
843
|
-
};
|
|
844
|
-
const se_ResourceIdsMaxLen1600 = (input, context) => {
|
|
845
|
-
return input
|
|
846
|
-
.filter((e) => e != null)
|
|
847
|
-
.map((entry) => {
|
|
848
|
-
return entry;
|
|
703
|
+
return take(input, {
|
|
704
|
+
EndTime: (_) => Math.round(_.getTime() / 1000),
|
|
705
|
+
ResourceId: [],
|
|
706
|
+
ScalableDimension: [],
|
|
707
|
+
ScalableTargetAction: _json,
|
|
708
|
+
Schedule: [],
|
|
709
|
+
ScheduledActionName: [],
|
|
710
|
+
ServiceNamespace: [],
|
|
711
|
+
StartTime: (_) => Math.round(_.getTime() / 1000),
|
|
712
|
+
Timezone: [],
|
|
849
713
|
});
|
|
850
714
|
};
|
|
851
|
-
const se_ScalableTargetAction = (input, context) => {
|
|
852
|
-
return {
|
|
853
|
-
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
854
|
-
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
855
|
-
};
|
|
856
|
-
};
|
|
857
715
|
const se_StepAdjustment = (input, context) => {
|
|
858
|
-
return {
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
MetricIntervalUpperBound: __serializeFloat(input.MetricIntervalUpperBound),
|
|
864
|
-
}),
|
|
865
|
-
...(input.ScalingAdjustment != null && { ScalingAdjustment: input.ScalingAdjustment }),
|
|
866
|
-
};
|
|
716
|
+
return take(input, {
|
|
717
|
+
MetricIntervalLowerBound: __serializeFloat,
|
|
718
|
+
MetricIntervalUpperBound: __serializeFloat,
|
|
719
|
+
ScalingAdjustment: [],
|
|
720
|
+
});
|
|
867
721
|
};
|
|
868
722
|
const se_StepAdjustments = (input, context) => {
|
|
869
723
|
return input
|
|
@@ -873,291 +727,65 @@ const se_StepAdjustments = (input, context) => {
|
|
|
873
727
|
});
|
|
874
728
|
};
|
|
875
729
|
const se_StepScalingPolicyConfiguration = (input, context) => {
|
|
876
|
-
return {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
};
|
|
883
|
-
};
|
|
884
|
-
const se_SuspendedState = (input, context) => {
|
|
885
|
-
return {
|
|
886
|
-
...(input.DynamicScalingInSuspended != null && { DynamicScalingInSuspended: input.DynamicScalingInSuspended }),
|
|
887
|
-
...(input.DynamicScalingOutSuspended != null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended }),
|
|
888
|
-
...(input.ScheduledScalingSuspended != null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }),
|
|
889
|
-
};
|
|
890
|
-
};
|
|
891
|
-
const se_TagKeyList = (input, context) => {
|
|
892
|
-
return input
|
|
893
|
-
.filter((e) => e != null)
|
|
894
|
-
.map((entry) => {
|
|
895
|
-
return entry;
|
|
896
|
-
});
|
|
897
|
-
};
|
|
898
|
-
const se_TagMap = (input, context) => {
|
|
899
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
900
|
-
if (value === null) {
|
|
901
|
-
return acc;
|
|
902
|
-
}
|
|
903
|
-
acc[key] = value;
|
|
904
|
-
return acc;
|
|
905
|
-
}, {});
|
|
906
|
-
};
|
|
907
|
-
const se_TagResourceRequest = (input, context) => {
|
|
908
|
-
return {
|
|
909
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
910
|
-
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
911
|
-
};
|
|
912
|
-
};
|
|
913
|
-
const se_TargetTrackingMetric = (input, context) => {
|
|
914
|
-
return {
|
|
915
|
-
...(input.Dimensions != null && { Dimensions: se_TargetTrackingMetricDimensions(input.Dimensions, context) }),
|
|
916
|
-
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
917
|
-
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
918
|
-
};
|
|
919
|
-
};
|
|
920
|
-
const se_TargetTrackingMetricDataQueries = (input, context) => {
|
|
921
|
-
return input
|
|
922
|
-
.filter((e) => e != null)
|
|
923
|
-
.map((entry) => {
|
|
924
|
-
return se_TargetTrackingMetricDataQuery(entry, context);
|
|
730
|
+
return take(input, {
|
|
731
|
+
AdjustmentType: [],
|
|
732
|
+
Cooldown: [],
|
|
733
|
+
MetricAggregationType: [],
|
|
734
|
+
MinAdjustmentMagnitude: [],
|
|
735
|
+
StepAdjustments: (_) => se_StepAdjustments(_, context),
|
|
925
736
|
});
|
|
926
737
|
};
|
|
927
|
-
const se_TargetTrackingMetricDataQuery = (input, context) => {
|
|
928
|
-
return {
|
|
929
|
-
...(input.Expression != null && { Expression: input.Expression }),
|
|
930
|
-
...(input.Id != null && { Id: input.Id }),
|
|
931
|
-
...(input.Label != null && { Label: input.Label }),
|
|
932
|
-
...(input.MetricStat != null && { MetricStat: se_TargetTrackingMetricStat(input.MetricStat, context) }),
|
|
933
|
-
...(input.ReturnData != null && { ReturnData: input.ReturnData }),
|
|
934
|
-
};
|
|
935
|
-
};
|
|
936
|
-
const se_TargetTrackingMetricDimension = (input, context) => {
|
|
937
|
-
return {
|
|
938
|
-
...(input.Name != null && { Name: input.Name }),
|
|
939
|
-
...(input.Value != null && { Value: input.Value }),
|
|
940
|
-
};
|
|
941
|
-
};
|
|
942
|
-
const se_TargetTrackingMetricDimensions = (input, context) => {
|
|
943
|
-
return input
|
|
944
|
-
.filter((e) => e != null)
|
|
945
|
-
.map((entry) => {
|
|
946
|
-
return se_TargetTrackingMetricDimension(entry, context);
|
|
947
|
-
});
|
|
948
|
-
};
|
|
949
|
-
const se_TargetTrackingMetricStat = (input, context) => {
|
|
950
|
-
return {
|
|
951
|
-
...(input.Metric != null && { Metric: se_TargetTrackingMetric(input.Metric, context) }),
|
|
952
|
-
...(input.Stat != null && { Stat: input.Stat }),
|
|
953
|
-
...(input.Unit != null && { Unit: input.Unit }),
|
|
954
|
-
};
|
|
955
|
-
};
|
|
956
738
|
const se_TargetTrackingScalingPolicyConfiguration = (input, context) => {
|
|
957
|
-
return {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
}),
|
|
965
|
-
...(input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }),
|
|
966
|
-
...(input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }),
|
|
967
|
-
...(input.TargetValue != null && { TargetValue: __serializeFloat(input.TargetValue) }),
|
|
968
|
-
};
|
|
969
|
-
};
|
|
970
|
-
const se_UntagResourceRequest = (input, context) => {
|
|
971
|
-
return {
|
|
972
|
-
...(input.ResourceARN != null && { ResourceARN: input.ResourceARN }),
|
|
973
|
-
...(input.TagKeys != null && { TagKeys: se_TagKeyList(input.TagKeys, context) }),
|
|
974
|
-
};
|
|
975
|
-
};
|
|
976
|
-
const de_Alarm = (output, context) => {
|
|
977
|
-
return {
|
|
978
|
-
AlarmARN: __expectString(output.AlarmARN),
|
|
979
|
-
AlarmName: __expectString(output.AlarmName),
|
|
980
|
-
};
|
|
981
|
-
};
|
|
982
|
-
const de_Alarms = (output, context) => {
|
|
983
|
-
const retVal = (output || [])
|
|
984
|
-
.filter((e) => e != null)
|
|
985
|
-
.map((entry) => {
|
|
986
|
-
if (entry === null) {
|
|
987
|
-
return null;
|
|
988
|
-
}
|
|
989
|
-
return de_Alarm(entry, context);
|
|
739
|
+
return take(input, {
|
|
740
|
+
CustomizedMetricSpecification: _json,
|
|
741
|
+
DisableScaleIn: [],
|
|
742
|
+
PredefinedMetricSpecification: _json,
|
|
743
|
+
ScaleInCooldown: [],
|
|
744
|
+
ScaleOutCooldown: [],
|
|
745
|
+
TargetValue: __serializeFloat,
|
|
990
746
|
});
|
|
991
|
-
return retVal;
|
|
992
|
-
};
|
|
993
|
-
const de_ConcurrentUpdateException = (output, context) => {
|
|
994
|
-
return {
|
|
995
|
-
Message: __expectString(output.Message),
|
|
996
|
-
};
|
|
997
|
-
};
|
|
998
|
-
const de_CustomizedMetricSpecification = (output, context) => {
|
|
999
|
-
return {
|
|
1000
|
-
Dimensions: output.Dimensions != null ? de_MetricDimensions(output.Dimensions, context) : undefined,
|
|
1001
|
-
MetricName: __expectString(output.MetricName),
|
|
1002
|
-
Metrics: output.Metrics != null ? de_TargetTrackingMetricDataQueries(output.Metrics, context) : undefined,
|
|
1003
|
-
Namespace: __expectString(output.Namespace),
|
|
1004
|
-
Statistic: __expectString(output.Statistic),
|
|
1005
|
-
Unit: __expectString(output.Unit),
|
|
1006
|
-
};
|
|
1007
|
-
};
|
|
1008
|
-
const de_DeleteScalingPolicyResponse = (output, context) => {
|
|
1009
|
-
return {};
|
|
1010
|
-
};
|
|
1011
|
-
const de_DeleteScheduledActionResponse = (output, context) => {
|
|
1012
|
-
return {};
|
|
1013
|
-
};
|
|
1014
|
-
const de_DeregisterScalableTargetResponse = (output, context) => {
|
|
1015
|
-
return {};
|
|
1016
747
|
};
|
|
1017
748
|
const de_DescribeScalableTargetsResponse = (output, context) => {
|
|
1018
|
-
return {
|
|
1019
|
-
NextToken: __expectString
|
|
1020
|
-
ScalableTargets:
|
|
1021
|
-
};
|
|
749
|
+
return take(output, {
|
|
750
|
+
NextToken: __expectString,
|
|
751
|
+
ScalableTargets: (_) => de_ScalableTargets(_, context),
|
|
752
|
+
});
|
|
1022
753
|
};
|
|
1023
754
|
const de_DescribeScalingActivitiesResponse = (output, context) => {
|
|
1024
|
-
return {
|
|
1025
|
-
NextToken: __expectString
|
|
1026
|
-
ScalingActivities:
|
|
1027
|
-
};
|
|
755
|
+
return take(output, {
|
|
756
|
+
NextToken: __expectString,
|
|
757
|
+
ScalingActivities: (_) => de_ScalingActivities(_, context),
|
|
758
|
+
});
|
|
1028
759
|
};
|
|
1029
760
|
const de_DescribeScalingPoliciesResponse = (output, context) => {
|
|
1030
|
-
return {
|
|
1031
|
-
NextToken: __expectString
|
|
1032
|
-
ScalingPolicies:
|
|
1033
|
-
};
|
|
1034
|
-
};
|
|
1035
|
-
const de_DescribeScheduledActionsResponse = (output, context) => {
|
|
1036
|
-
return {
|
|
1037
|
-
NextToken: __expectString(output.NextToken),
|
|
1038
|
-
ScheduledActions: output.ScheduledActions != null ? de_ScheduledActions(output.ScheduledActions, context) : undefined,
|
|
1039
|
-
};
|
|
1040
|
-
};
|
|
1041
|
-
const de_FailedResourceAccessException = (output, context) => {
|
|
1042
|
-
return {
|
|
1043
|
-
Message: __expectString(output.Message),
|
|
1044
|
-
};
|
|
1045
|
-
};
|
|
1046
|
-
const de_InternalServiceException = (output, context) => {
|
|
1047
|
-
return {
|
|
1048
|
-
Message: __expectString(output.Message),
|
|
1049
|
-
};
|
|
1050
|
-
};
|
|
1051
|
-
const de_InvalidNextTokenException = (output, context) => {
|
|
1052
|
-
return {
|
|
1053
|
-
Message: __expectString(output.Message),
|
|
1054
|
-
};
|
|
1055
|
-
};
|
|
1056
|
-
const de_LimitExceededException = (output, context) => {
|
|
1057
|
-
return {
|
|
1058
|
-
Message: __expectString(output.Message),
|
|
1059
|
-
};
|
|
1060
|
-
};
|
|
1061
|
-
const de_ListTagsForResourceResponse = (output, context) => {
|
|
1062
|
-
return {
|
|
1063
|
-
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
1064
|
-
};
|
|
1065
|
-
};
|
|
1066
|
-
const de_MetricDimension = (output, context) => {
|
|
1067
|
-
return {
|
|
1068
|
-
Name: __expectString(output.Name),
|
|
1069
|
-
Value: __expectString(output.Value),
|
|
1070
|
-
};
|
|
1071
|
-
};
|
|
1072
|
-
const de_MetricDimensions = (output, context) => {
|
|
1073
|
-
const retVal = (output || [])
|
|
1074
|
-
.filter((e) => e != null)
|
|
1075
|
-
.map((entry) => {
|
|
1076
|
-
if (entry === null) {
|
|
1077
|
-
return null;
|
|
1078
|
-
}
|
|
1079
|
-
return de_MetricDimension(entry, context);
|
|
761
|
+
return take(output, {
|
|
762
|
+
NextToken: __expectString,
|
|
763
|
+
ScalingPolicies: (_) => de_ScalingPolicies(_, context),
|
|
1080
764
|
});
|
|
1081
|
-
return retVal;
|
|
1082
|
-
};
|
|
1083
|
-
const de_NotScaledReason = (output, context) => {
|
|
1084
|
-
return {
|
|
1085
|
-
Code: __expectString(output.Code),
|
|
1086
|
-
CurrentCapacity: __expectInt32(output.CurrentCapacity),
|
|
1087
|
-
MaxCapacity: __expectInt32(output.MaxCapacity),
|
|
1088
|
-
MinCapacity: __expectInt32(output.MinCapacity),
|
|
1089
|
-
};
|
|
1090
765
|
};
|
|
1091
|
-
const
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
if (entry === null) {
|
|
1096
|
-
return null;
|
|
1097
|
-
}
|
|
1098
|
-
return de_NotScaledReason(entry, context);
|
|
766
|
+
const de_DescribeScheduledActionsResponse = (output, context) => {
|
|
767
|
+
return take(output, {
|
|
768
|
+
NextToken: __expectString,
|
|
769
|
+
ScheduledActions: (_) => de_ScheduledActions(_, context),
|
|
1099
770
|
});
|
|
1100
|
-
return retVal;
|
|
1101
|
-
};
|
|
1102
|
-
const de_ObjectNotFoundException = (output, context) => {
|
|
1103
|
-
return {
|
|
1104
|
-
Message: __expectString(output.Message),
|
|
1105
|
-
};
|
|
1106
|
-
};
|
|
1107
|
-
const de_PredefinedMetricSpecification = (output, context) => {
|
|
1108
|
-
return {
|
|
1109
|
-
PredefinedMetricType: __expectString(output.PredefinedMetricType),
|
|
1110
|
-
ResourceLabel: __expectString(output.ResourceLabel),
|
|
1111
|
-
};
|
|
1112
|
-
};
|
|
1113
|
-
const de_PutScalingPolicyResponse = (output, context) => {
|
|
1114
|
-
return {
|
|
1115
|
-
Alarms: output.Alarms != null ? de_Alarms(output.Alarms, context) : undefined,
|
|
1116
|
-
PolicyARN: __expectString(output.PolicyARN),
|
|
1117
|
-
};
|
|
1118
|
-
};
|
|
1119
|
-
const de_PutScheduledActionResponse = (output, context) => {
|
|
1120
|
-
return {};
|
|
1121
|
-
};
|
|
1122
|
-
const de_RegisterScalableTargetResponse = (output, context) => {
|
|
1123
|
-
return {
|
|
1124
|
-
ScalableTargetARN: __expectString(output.ScalableTargetARN),
|
|
1125
|
-
};
|
|
1126
|
-
};
|
|
1127
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1128
|
-
return {
|
|
1129
|
-
Message: __expectString(output.Message),
|
|
1130
|
-
ResourceName: __expectString(output.ResourceName),
|
|
1131
|
-
};
|
|
1132
771
|
};
|
|
1133
772
|
const de_ScalableTarget = (output, context) => {
|
|
1134
|
-
return {
|
|
1135
|
-
CreationTime:
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
SuspendedState: output.SuspendedState != null ? de_SuspendedState(output.SuspendedState, context) : undefined,
|
|
1146
|
-
};
|
|
1147
|
-
};
|
|
1148
|
-
const de_ScalableTargetAction = (output, context) => {
|
|
1149
|
-
return {
|
|
1150
|
-
MaxCapacity: __expectInt32(output.MaxCapacity),
|
|
1151
|
-
MinCapacity: __expectInt32(output.MinCapacity),
|
|
1152
|
-
};
|
|
773
|
+
return take(output, {
|
|
774
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
775
|
+
MaxCapacity: __expectInt32,
|
|
776
|
+
MinCapacity: __expectInt32,
|
|
777
|
+
ResourceId: __expectString,
|
|
778
|
+
RoleARN: __expectString,
|
|
779
|
+
ScalableDimension: __expectString,
|
|
780
|
+
ScalableTargetARN: __expectString,
|
|
781
|
+
ServiceNamespace: __expectString,
|
|
782
|
+
SuspendedState: _json,
|
|
783
|
+
});
|
|
1153
784
|
};
|
|
1154
785
|
const de_ScalableTargets = (output, context) => {
|
|
1155
786
|
const retVal = (output || [])
|
|
1156
787
|
.filter((e) => e != null)
|
|
1157
788
|
.map((entry) => {
|
|
1158
|
-
if (entry === null) {
|
|
1159
|
-
return null;
|
|
1160
|
-
}
|
|
1161
789
|
return de_ScalableTarget(entry, context);
|
|
1162
790
|
});
|
|
1163
791
|
return retVal;
|
|
@@ -1166,212 +794,104 @@ const de_ScalingActivities = (output, context) => {
|
|
|
1166
794
|
const retVal = (output || [])
|
|
1167
795
|
.filter((e) => e != null)
|
|
1168
796
|
.map((entry) => {
|
|
1169
|
-
if (entry === null) {
|
|
1170
|
-
return null;
|
|
1171
|
-
}
|
|
1172
797
|
return de_ScalingActivity(entry, context);
|
|
1173
798
|
});
|
|
1174
799
|
return retVal;
|
|
1175
800
|
};
|
|
1176
801
|
const de_ScalingActivity = (output, context) => {
|
|
1177
|
-
return {
|
|
1178
|
-
ActivityId: __expectString
|
|
1179
|
-
Cause: __expectString
|
|
1180
|
-
Description: __expectString
|
|
1181
|
-
Details: __expectString
|
|
1182
|
-
EndTime:
|
|
1183
|
-
NotScaledReasons:
|
|
1184
|
-
ResourceId: __expectString
|
|
1185
|
-
ScalableDimension: __expectString
|
|
1186
|
-
ServiceNamespace: __expectString
|
|
1187
|
-
StartTime:
|
|
1188
|
-
StatusCode: __expectString
|
|
1189
|
-
StatusMessage: __expectString
|
|
1190
|
-
};
|
|
802
|
+
return take(output, {
|
|
803
|
+
ActivityId: __expectString,
|
|
804
|
+
Cause: __expectString,
|
|
805
|
+
Description: __expectString,
|
|
806
|
+
Details: __expectString,
|
|
807
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
808
|
+
NotScaledReasons: _json,
|
|
809
|
+
ResourceId: __expectString,
|
|
810
|
+
ScalableDimension: __expectString,
|
|
811
|
+
ServiceNamespace: __expectString,
|
|
812
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
813
|
+
StatusCode: __expectString,
|
|
814
|
+
StatusMessage: __expectString,
|
|
815
|
+
});
|
|
1191
816
|
};
|
|
1192
817
|
const de_ScalingPolicies = (output, context) => {
|
|
1193
818
|
const retVal = (output || [])
|
|
1194
819
|
.filter((e) => e != null)
|
|
1195
820
|
.map((entry) => {
|
|
1196
|
-
if (entry === null) {
|
|
1197
|
-
return null;
|
|
1198
|
-
}
|
|
1199
821
|
return de_ScalingPolicy(entry, context);
|
|
1200
822
|
});
|
|
1201
823
|
return retVal;
|
|
1202
824
|
};
|
|
1203
825
|
const de_ScalingPolicy = (output, context) => {
|
|
1204
|
-
return {
|
|
1205
|
-
Alarms:
|
|
1206
|
-
CreationTime:
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
? de_StepScalingPolicyConfiguration(output.StepScalingPolicyConfiguration, context)
|
|
1217
|
-
: undefined,
|
|
1218
|
-
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null
|
|
1219
|
-
? de_TargetTrackingScalingPolicyConfiguration(output.TargetTrackingScalingPolicyConfiguration, context)
|
|
1220
|
-
: undefined,
|
|
1221
|
-
};
|
|
826
|
+
return take(output, {
|
|
827
|
+
Alarms: _json,
|
|
828
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
829
|
+
PolicyARN: __expectString,
|
|
830
|
+
PolicyName: __expectString,
|
|
831
|
+
PolicyType: __expectString,
|
|
832
|
+
ResourceId: __expectString,
|
|
833
|
+
ScalableDimension: __expectString,
|
|
834
|
+
ServiceNamespace: __expectString,
|
|
835
|
+
StepScalingPolicyConfiguration: (_) => de_StepScalingPolicyConfiguration(_, context),
|
|
836
|
+
TargetTrackingScalingPolicyConfiguration: (_) => de_TargetTrackingScalingPolicyConfiguration(_, context),
|
|
837
|
+
});
|
|
1222
838
|
};
|
|
1223
839
|
const de_ScheduledAction = (output, context) => {
|
|
1224
|
-
return {
|
|
1225
|
-
CreationTime:
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
Timezone: __expectString(output.Timezone),
|
|
1238
|
-
};
|
|
840
|
+
return take(output, {
|
|
841
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
842
|
+
EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
843
|
+
ResourceId: __expectString,
|
|
844
|
+
ScalableDimension: __expectString,
|
|
845
|
+
ScalableTargetAction: _json,
|
|
846
|
+
Schedule: __expectString,
|
|
847
|
+
ScheduledActionARN: __expectString,
|
|
848
|
+
ScheduledActionName: __expectString,
|
|
849
|
+
ServiceNamespace: __expectString,
|
|
850
|
+
StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
851
|
+
Timezone: __expectString,
|
|
852
|
+
});
|
|
1239
853
|
};
|
|
1240
854
|
const de_ScheduledActions = (output, context) => {
|
|
1241
855
|
const retVal = (output || [])
|
|
1242
856
|
.filter((e) => e != null)
|
|
1243
857
|
.map((entry) => {
|
|
1244
|
-
if (entry === null) {
|
|
1245
|
-
return null;
|
|
1246
|
-
}
|
|
1247
858
|
return de_ScheduledAction(entry, context);
|
|
1248
859
|
});
|
|
1249
860
|
return retVal;
|
|
1250
861
|
};
|
|
1251
862
|
const de_StepAdjustment = (output, context) => {
|
|
1252
|
-
return {
|
|
1253
|
-
MetricIntervalLowerBound: __limitedParseDouble
|
|
1254
|
-
MetricIntervalUpperBound: __limitedParseDouble
|
|
1255
|
-
ScalingAdjustment: __expectInt32
|
|
1256
|
-
};
|
|
863
|
+
return take(output, {
|
|
864
|
+
MetricIntervalLowerBound: __limitedParseDouble,
|
|
865
|
+
MetricIntervalUpperBound: __limitedParseDouble,
|
|
866
|
+
ScalingAdjustment: __expectInt32,
|
|
867
|
+
});
|
|
1257
868
|
};
|
|
1258
869
|
const de_StepAdjustments = (output, context) => {
|
|
1259
870
|
const retVal = (output || [])
|
|
1260
871
|
.filter((e) => e != null)
|
|
1261
872
|
.map((entry) => {
|
|
1262
|
-
if (entry === null) {
|
|
1263
|
-
return null;
|
|
1264
|
-
}
|
|
1265
873
|
return de_StepAdjustment(entry, context);
|
|
1266
874
|
});
|
|
1267
875
|
return retVal;
|
|
1268
876
|
};
|
|
1269
877
|
const de_StepScalingPolicyConfiguration = (output, context) => {
|
|
1270
|
-
return {
|
|
1271
|
-
AdjustmentType: __expectString
|
|
1272
|
-
Cooldown: __expectInt32
|
|
1273
|
-
MetricAggregationType: __expectString
|
|
1274
|
-
MinAdjustmentMagnitude: __expectInt32
|
|
1275
|
-
StepAdjustments:
|
|
1276
|
-
};
|
|
1277
|
-
};
|
|
1278
|
-
const de_SuspendedState = (output, context) => {
|
|
1279
|
-
return {
|
|
1280
|
-
DynamicScalingInSuspended: __expectBoolean(output.DynamicScalingInSuspended),
|
|
1281
|
-
DynamicScalingOutSuspended: __expectBoolean(output.DynamicScalingOutSuspended),
|
|
1282
|
-
ScheduledScalingSuspended: __expectBoolean(output.ScheduledScalingSuspended),
|
|
1283
|
-
};
|
|
1284
|
-
};
|
|
1285
|
-
const de_TagMap = (output, context) => {
|
|
1286
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1287
|
-
if (value === null) {
|
|
1288
|
-
return acc;
|
|
1289
|
-
}
|
|
1290
|
-
acc[key] = __expectString(value);
|
|
1291
|
-
return acc;
|
|
1292
|
-
}, {});
|
|
1293
|
-
};
|
|
1294
|
-
const de_TagResourceResponse = (output, context) => {
|
|
1295
|
-
return {};
|
|
1296
|
-
};
|
|
1297
|
-
const de_TargetTrackingMetric = (output, context) => {
|
|
1298
|
-
return {
|
|
1299
|
-
Dimensions: output.Dimensions != null ? de_TargetTrackingMetricDimensions(output.Dimensions, context) : undefined,
|
|
1300
|
-
MetricName: __expectString(output.MetricName),
|
|
1301
|
-
Namespace: __expectString(output.Namespace),
|
|
1302
|
-
};
|
|
1303
|
-
};
|
|
1304
|
-
const de_TargetTrackingMetricDataQueries = (output, context) => {
|
|
1305
|
-
const retVal = (output || [])
|
|
1306
|
-
.filter((e) => e != null)
|
|
1307
|
-
.map((entry) => {
|
|
1308
|
-
if (entry === null) {
|
|
1309
|
-
return null;
|
|
1310
|
-
}
|
|
1311
|
-
return de_TargetTrackingMetricDataQuery(entry, context);
|
|
878
|
+
return take(output, {
|
|
879
|
+
AdjustmentType: __expectString,
|
|
880
|
+
Cooldown: __expectInt32,
|
|
881
|
+
MetricAggregationType: __expectString,
|
|
882
|
+
MinAdjustmentMagnitude: __expectInt32,
|
|
883
|
+
StepAdjustments: (_) => de_StepAdjustments(_, context),
|
|
1312
884
|
});
|
|
1313
|
-
return retVal;
|
|
1314
|
-
};
|
|
1315
|
-
const de_TargetTrackingMetricDataQuery = (output, context) => {
|
|
1316
|
-
return {
|
|
1317
|
-
Expression: __expectString(output.Expression),
|
|
1318
|
-
Id: __expectString(output.Id),
|
|
1319
|
-
Label: __expectString(output.Label),
|
|
1320
|
-
MetricStat: output.MetricStat != null ? de_TargetTrackingMetricStat(output.MetricStat, context) : undefined,
|
|
1321
|
-
ReturnData: __expectBoolean(output.ReturnData),
|
|
1322
|
-
};
|
|
1323
|
-
};
|
|
1324
|
-
const de_TargetTrackingMetricDimension = (output, context) => {
|
|
1325
|
-
return {
|
|
1326
|
-
Name: __expectString(output.Name),
|
|
1327
|
-
Value: __expectString(output.Value),
|
|
1328
|
-
};
|
|
1329
|
-
};
|
|
1330
|
-
const de_TargetTrackingMetricDimensions = (output, context) => {
|
|
1331
|
-
const retVal = (output || [])
|
|
1332
|
-
.filter((e) => e != null)
|
|
1333
|
-
.map((entry) => {
|
|
1334
|
-
if (entry === null) {
|
|
1335
|
-
return null;
|
|
1336
|
-
}
|
|
1337
|
-
return de_TargetTrackingMetricDimension(entry, context);
|
|
1338
|
-
});
|
|
1339
|
-
return retVal;
|
|
1340
|
-
};
|
|
1341
|
-
const de_TargetTrackingMetricStat = (output, context) => {
|
|
1342
|
-
return {
|
|
1343
|
-
Metric: output.Metric != null ? de_TargetTrackingMetric(output.Metric, context) : undefined,
|
|
1344
|
-
Stat: __expectString(output.Stat),
|
|
1345
|
-
Unit: __expectString(output.Unit),
|
|
1346
|
-
};
|
|
1347
885
|
};
|
|
1348
886
|
const de_TargetTrackingScalingPolicyConfiguration = (output, context) => {
|
|
1349
|
-
return {
|
|
1350
|
-
CustomizedMetricSpecification:
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
ScaleInCooldown: __expectInt32(output.ScaleInCooldown),
|
|
1358
|
-
ScaleOutCooldown: __expectInt32(output.ScaleOutCooldown),
|
|
1359
|
-
TargetValue: __limitedParseDouble(output.TargetValue),
|
|
1360
|
-
};
|
|
1361
|
-
};
|
|
1362
|
-
const de_TooManyTagsException = (output, context) => {
|
|
1363
|
-
return {
|
|
1364
|
-
Message: __expectString(output.Message),
|
|
1365
|
-
ResourceName: __expectString(output.ResourceName),
|
|
1366
|
-
};
|
|
1367
|
-
};
|
|
1368
|
-
const de_UntagResourceResponse = (output, context) => {
|
|
1369
|
-
return {};
|
|
1370
|
-
};
|
|
1371
|
-
const de_ValidationException = (output, context) => {
|
|
1372
|
-
return {
|
|
1373
|
-
Message: __expectString(output.Message),
|
|
1374
|
-
};
|
|
887
|
+
return take(output, {
|
|
888
|
+
CustomizedMetricSpecification: _json,
|
|
889
|
+
DisableScaleIn: __expectBoolean,
|
|
890
|
+
PredefinedMetricSpecification: _json,
|
|
891
|
+
ScaleInCooldown: __expectInt32,
|
|
892
|
+
ScaleOutCooldown: __expectInt32,
|
|
893
|
+
TargetValue: __limitedParseDouble,
|
|
894
|
+
});
|
|
1375
895
|
};
|
|
1376
896
|
const deserializeMetadata = (output) => ({
|
|
1377
897
|
httpStatusCode: output.statusCode,
|
|
@@ -1386,6 +906,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
1386
906
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
1387
907
|
};
|
|
1388
908
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
909
|
+
const throwDefaultError = withBaseException(__BaseException);
|
|
1389
910
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1390
911
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1391
912
|
const contents = {
|