@aws-sdk/client-application-auto-scaling 3.118.1 → 3.128.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +155 -212
- package/dist-es/protocols/Aws_json1_1.js +98 -155
- package/package.json +26 -26
|
@@ -132,7 +132,7 @@ export var deserializeAws_json1_1DeleteScalingPolicyCommand = function (output,
|
|
|
132
132
|
});
|
|
133
133
|
}); };
|
|
134
134
|
var deserializeAws_json1_1DeleteScalingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
135
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
135
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
136
136
|
var _c;
|
|
137
137
|
return __generator(this, function (_d) {
|
|
138
138
|
switch (_d.label) {
|
|
@@ -142,7 +142,6 @@ var deserializeAws_json1_1DeleteScalingPolicyCommandError = function (output, co
|
|
|
142
142
|
return [4, parseBody(output.body, context)];
|
|
143
143
|
case 1:
|
|
144
144
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
145
|
-
errorCode = "UnknownError";
|
|
146
145
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
147
146
|
_b = errorCode;
|
|
148
147
|
switch (_b) {
|
|
@@ -166,10 +165,12 @@ var deserializeAws_json1_1DeleteScalingPolicyCommandError = function (output, co
|
|
|
166
165
|
case 9: throw _d.sent();
|
|
167
166
|
case 10:
|
|
168
167
|
parsedBody = parsedOutput.body;
|
|
168
|
+
$metadata = deserializeMetadata(output);
|
|
169
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
169
170
|
response = new __BaseException({
|
|
170
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
171
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
171
172
|
$fault: "client",
|
|
172
|
-
$metadata:
|
|
173
|
+
$metadata: $metadata,
|
|
173
174
|
});
|
|
174
175
|
throw __decorateServiceException(response, parsedBody);
|
|
175
176
|
}
|
|
@@ -194,7 +195,7 @@ export var deserializeAws_json1_1DeleteScheduledActionCommand = function (output
|
|
|
194
195
|
});
|
|
195
196
|
}); };
|
|
196
197
|
var deserializeAws_json1_1DeleteScheduledActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
197
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
198
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
198
199
|
var _c;
|
|
199
200
|
return __generator(this, function (_d) {
|
|
200
201
|
switch (_d.label) {
|
|
@@ -204,7 +205,6 @@ var deserializeAws_json1_1DeleteScheduledActionCommandError = function (output,
|
|
|
204
205
|
return [4, parseBody(output.body, context)];
|
|
205
206
|
case 1:
|
|
206
207
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
207
|
-
errorCode = "UnknownError";
|
|
208
208
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
209
209
|
_b = errorCode;
|
|
210
210
|
switch (_b) {
|
|
@@ -228,10 +228,12 @@ var deserializeAws_json1_1DeleteScheduledActionCommandError = function (output,
|
|
|
228
228
|
case 9: throw _d.sent();
|
|
229
229
|
case 10:
|
|
230
230
|
parsedBody = parsedOutput.body;
|
|
231
|
+
$metadata = deserializeMetadata(output);
|
|
232
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
231
233
|
response = new __BaseException({
|
|
232
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
234
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
233
235
|
$fault: "client",
|
|
234
|
-
$metadata:
|
|
236
|
+
$metadata: $metadata,
|
|
235
237
|
});
|
|
236
238
|
throw __decorateServiceException(response, parsedBody);
|
|
237
239
|
}
|
|
@@ -256,7 +258,7 @@ export var deserializeAws_json1_1DeregisterScalableTargetCommand = function (out
|
|
|
256
258
|
});
|
|
257
259
|
}); };
|
|
258
260
|
var deserializeAws_json1_1DeregisterScalableTargetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
259
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
261
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
260
262
|
var _c;
|
|
261
263
|
return __generator(this, function (_d) {
|
|
262
264
|
switch (_d.label) {
|
|
@@ -266,7 +268,6 @@ var deserializeAws_json1_1DeregisterScalableTargetCommandError = function (outpu
|
|
|
266
268
|
return [4, parseBody(output.body, context)];
|
|
267
269
|
case 1:
|
|
268
270
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
269
|
-
errorCode = "UnknownError";
|
|
270
271
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
271
272
|
_b = errorCode;
|
|
272
273
|
switch (_b) {
|
|
@@ -290,10 +291,12 @@ var deserializeAws_json1_1DeregisterScalableTargetCommandError = function (outpu
|
|
|
290
291
|
case 9: throw _d.sent();
|
|
291
292
|
case 10:
|
|
292
293
|
parsedBody = parsedOutput.body;
|
|
294
|
+
$metadata = deserializeMetadata(output);
|
|
295
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
293
296
|
response = new __BaseException({
|
|
294
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
297
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
295
298
|
$fault: "client",
|
|
296
|
-
$metadata:
|
|
299
|
+
$metadata: $metadata,
|
|
297
300
|
});
|
|
298
301
|
throw __decorateServiceException(response, parsedBody);
|
|
299
302
|
}
|
|
@@ -318,7 +321,7 @@ export var deserializeAws_json1_1DescribeScalableTargetsCommand = function (outp
|
|
|
318
321
|
});
|
|
319
322
|
}); };
|
|
320
323
|
var deserializeAws_json1_1DescribeScalableTargetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
321
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
324
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
322
325
|
var _c;
|
|
323
326
|
return __generator(this, function (_d) {
|
|
324
327
|
switch (_d.label) {
|
|
@@ -328,7 +331,6 @@ var deserializeAws_json1_1DescribeScalableTargetsCommandError = function (output
|
|
|
328
331
|
return [4, parseBody(output.body, context)];
|
|
329
332
|
case 1:
|
|
330
333
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
331
|
-
errorCode = "UnknownError";
|
|
332
334
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
333
335
|
_b = errorCode;
|
|
334
336
|
switch (_b) {
|
|
@@ -352,10 +354,12 @@ var deserializeAws_json1_1DescribeScalableTargetsCommandError = function (output
|
|
|
352
354
|
case 9: throw _d.sent();
|
|
353
355
|
case 10:
|
|
354
356
|
parsedBody = parsedOutput.body;
|
|
357
|
+
$metadata = deserializeMetadata(output);
|
|
358
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
355
359
|
response = new __BaseException({
|
|
356
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
360
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
357
361
|
$fault: "client",
|
|
358
|
-
$metadata:
|
|
362
|
+
$metadata: $metadata,
|
|
359
363
|
});
|
|
360
364
|
throw __decorateServiceException(response, parsedBody);
|
|
361
365
|
}
|
|
@@ -380,7 +384,7 @@ export var deserializeAws_json1_1DescribeScalingActivitiesCommand = function (ou
|
|
|
380
384
|
});
|
|
381
385
|
}); };
|
|
382
386
|
var deserializeAws_json1_1DescribeScalingActivitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
383
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
387
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
384
388
|
var _c;
|
|
385
389
|
return __generator(this, function (_d) {
|
|
386
390
|
switch (_d.label) {
|
|
@@ -390,7 +394,6 @@ var deserializeAws_json1_1DescribeScalingActivitiesCommandError = function (outp
|
|
|
390
394
|
return [4, parseBody(output.body, context)];
|
|
391
395
|
case 1:
|
|
392
396
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
393
|
-
errorCode = "UnknownError";
|
|
394
397
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
395
398
|
_b = errorCode;
|
|
396
399
|
switch (_b) {
|
|
@@ -414,10 +417,12 @@ var deserializeAws_json1_1DescribeScalingActivitiesCommandError = function (outp
|
|
|
414
417
|
case 9: throw _d.sent();
|
|
415
418
|
case 10:
|
|
416
419
|
parsedBody = parsedOutput.body;
|
|
420
|
+
$metadata = deserializeMetadata(output);
|
|
421
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
417
422
|
response = new __BaseException({
|
|
418
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
423
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
419
424
|
$fault: "client",
|
|
420
|
-
$metadata:
|
|
425
|
+
$metadata: $metadata,
|
|
421
426
|
});
|
|
422
427
|
throw __decorateServiceException(response, parsedBody);
|
|
423
428
|
}
|
|
@@ -442,7 +447,7 @@ export var deserializeAws_json1_1DescribeScalingPoliciesCommand = function (outp
|
|
|
442
447
|
});
|
|
443
448
|
}); };
|
|
444
449
|
var deserializeAws_json1_1DescribeScalingPoliciesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
445
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
450
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
446
451
|
var _c;
|
|
447
452
|
return __generator(this, function (_d) {
|
|
448
453
|
switch (_d.label) {
|
|
@@ -452,7 +457,6 @@ var deserializeAws_json1_1DescribeScalingPoliciesCommandError = function (output
|
|
|
452
457
|
return [4, parseBody(output.body, context)];
|
|
453
458
|
case 1:
|
|
454
459
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
455
|
-
errorCode = "UnknownError";
|
|
456
460
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
457
461
|
_b = errorCode;
|
|
458
462
|
switch (_b) {
|
|
@@ -480,10 +484,12 @@ var deserializeAws_json1_1DescribeScalingPoliciesCommandError = function (output
|
|
|
480
484
|
case 11: throw _d.sent();
|
|
481
485
|
case 12:
|
|
482
486
|
parsedBody = parsedOutput.body;
|
|
487
|
+
$metadata = deserializeMetadata(output);
|
|
488
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
483
489
|
response = new __BaseException({
|
|
484
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
490
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
485
491
|
$fault: "client",
|
|
486
|
-
$metadata:
|
|
492
|
+
$metadata: $metadata,
|
|
487
493
|
});
|
|
488
494
|
throw __decorateServiceException(response, parsedBody);
|
|
489
495
|
}
|
|
@@ -508,7 +514,7 @@ export var deserializeAws_json1_1DescribeScheduledActionsCommand = function (out
|
|
|
508
514
|
});
|
|
509
515
|
}); };
|
|
510
516
|
var deserializeAws_json1_1DescribeScheduledActionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
511
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
517
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
512
518
|
var _c;
|
|
513
519
|
return __generator(this, function (_d) {
|
|
514
520
|
switch (_d.label) {
|
|
@@ -518,7 +524,6 @@ var deserializeAws_json1_1DescribeScheduledActionsCommandError = function (outpu
|
|
|
518
524
|
return [4, parseBody(output.body, context)];
|
|
519
525
|
case 1:
|
|
520
526
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
521
|
-
errorCode = "UnknownError";
|
|
522
527
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
523
528
|
_b = errorCode;
|
|
524
529
|
switch (_b) {
|
|
@@ -542,10 +547,12 @@ var deserializeAws_json1_1DescribeScheduledActionsCommandError = function (outpu
|
|
|
542
547
|
case 9: throw _d.sent();
|
|
543
548
|
case 10:
|
|
544
549
|
parsedBody = parsedOutput.body;
|
|
550
|
+
$metadata = deserializeMetadata(output);
|
|
551
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
545
552
|
response = new __BaseException({
|
|
546
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
553
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
547
554
|
$fault: "client",
|
|
548
|
-
$metadata:
|
|
555
|
+
$metadata: $metadata,
|
|
549
556
|
});
|
|
550
557
|
throw __decorateServiceException(response, parsedBody);
|
|
551
558
|
}
|
|
@@ -570,7 +577,7 @@ export var deserializeAws_json1_1PutScalingPolicyCommand = function (output, con
|
|
|
570
577
|
});
|
|
571
578
|
}); };
|
|
572
579
|
var deserializeAws_json1_1PutScalingPolicyCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
573
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
580
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
574
581
|
var _c;
|
|
575
582
|
return __generator(this, function (_d) {
|
|
576
583
|
switch (_d.label) {
|
|
@@ -580,7 +587,6 @@ var deserializeAws_json1_1PutScalingPolicyCommandError = function (output, conte
|
|
|
580
587
|
return [4, parseBody(output.body, context)];
|
|
581
588
|
case 1:
|
|
582
589
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
583
|
-
errorCode = "UnknownError";
|
|
584
590
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
585
591
|
_b = errorCode;
|
|
586
592
|
switch (_b) {
|
|
@@ -612,10 +618,12 @@ var deserializeAws_json1_1PutScalingPolicyCommandError = function (output, conte
|
|
|
612
618
|
case 13: throw _d.sent();
|
|
613
619
|
case 14:
|
|
614
620
|
parsedBody = parsedOutput.body;
|
|
621
|
+
$metadata = deserializeMetadata(output);
|
|
622
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
615
623
|
response = new __BaseException({
|
|
616
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
624
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
617
625
|
$fault: "client",
|
|
618
|
-
$metadata:
|
|
626
|
+
$metadata: $metadata,
|
|
619
627
|
});
|
|
620
628
|
throw __decorateServiceException(response, parsedBody);
|
|
621
629
|
}
|
|
@@ -640,7 +648,7 @@ export var deserializeAws_json1_1PutScheduledActionCommand = function (output, c
|
|
|
640
648
|
});
|
|
641
649
|
}); };
|
|
642
650
|
var deserializeAws_json1_1PutScheduledActionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
643
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
651
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
644
652
|
var _c;
|
|
645
653
|
return __generator(this, function (_d) {
|
|
646
654
|
switch (_d.label) {
|
|
@@ -650,7 +658,6 @@ var deserializeAws_json1_1PutScheduledActionCommandError = function (output, con
|
|
|
650
658
|
return [4, parseBody(output.body, context)];
|
|
651
659
|
case 1:
|
|
652
660
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
653
|
-
errorCode = "UnknownError";
|
|
654
661
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
655
662
|
_b = errorCode;
|
|
656
663
|
switch (_b) {
|
|
@@ -678,10 +685,12 @@ var deserializeAws_json1_1PutScheduledActionCommandError = function (output, con
|
|
|
678
685
|
case 11: throw _d.sent();
|
|
679
686
|
case 12:
|
|
680
687
|
parsedBody = parsedOutput.body;
|
|
688
|
+
$metadata = deserializeMetadata(output);
|
|
689
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
681
690
|
response = new __BaseException({
|
|
682
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
691
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
683
692
|
$fault: "client",
|
|
684
|
-
$metadata:
|
|
693
|
+
$metadata: $metadata,
|
|
685
694
|
});
|
|
686
695
|
throw __decorateServiceException(response, parsedBody);
|
|
687
696
|
}
|
|
@@ -706,7 +715,7 @@ export var deserializeAws_json1_1RegisterScalableTargetCommand = function (outpu
|
|
|
706
715
|
});
|
|
707
716
|
}); };
|
|
708
717
|
var deserializeAws_json1_1RegisterScalableTargetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
709
|
-
var parsedOutput, _a, response, errorCode, _b, parsedBody;
|
|
718
|
+
var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
|
|
710
719
|
var _c;
|
|
711
720
|
return __generator(this, function (_d) {
|
|
712
721
|
switch (_d.label) {
|
|
@@ -716,7 +725,6 @@ var deserializeAws_json1_1RegisterScalableTargetCommandError = function (output,
|
|
|
716
725
|
return [4, parseBody(output.body, context)];
|
|
717
726
|
case 1:
|
|
718
727
|
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
719
|
-
errorCode = "UnknownError";
|
|
720
728
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
721
729
|
_b = errorCode;
|
|
722
730
|
switch (_b) {
|
|
@@ -740,10 +748,12 @@ var deserializeAws_json1_1RegisterScalableTargetCommandError = function (output,
|
|
|
740
748
|
case 9: throw _d.sent();
|
|
741
749
|
case 10:
|
|
742
750
|
parsedBody = parsedOutput.body;
|
|
751
|
+
$metadata = deserializeMetadata(output);
|
|
752
|
+
statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
743
753
|
response = new __BaseException({
|
|
744
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
754
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
745
755
|
$fault: "client",
|
|
746
|
-
$metadata:
|
|
756
|
+
$metadata: $metadata,
|
|
747
757
|
});
|
|
748
758
|
throw __decorateServiceException(response, parsedBody);
|
|
749
759
|
}
|
|
@@ -813,56 +823,37 @@ var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput,
|
|
|
813
823
|
});
|
|
814
824
|
}); };
|
|
815
825
|
var serializeAws_json1_1CustomizedMetricSpecification = function (input, context) {
|
|
816
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Dimensions
|
|
817
|
-
input.Dimensions !== null && { Dimensions: serializeAws_json1_1MetricDimensions(input.Dimensions, context) })), (input.MetricName !== undefined && input.MetricName !== null && { MetricName: input.MetricName })), (input.Namespace !== undefined && input.Namespace !== null && { Namespace: input.Namespace })), (input.Statistic !== undefined && input.Statistic !== null && { Statistic: input.Statistic })), (input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }));
|
|
826
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Dimensions != null && { Dimensions: serializeAws_json1_1MetricDimensions(input.Dimensions, context) })), (input.MetricName != null && { MetricName: input.MetricName })), (input.Namespace != null && { Namespace: input.Namespace })), (input.Statistic != null && { Statistic: input.Statistic })), (input.Unit != null && { Unit: input.Unit }));
|
|
818
827
|
};
|
|
819
828
|
var serializeAws_json1_1DeleteScalingPolicyRequest = function (input, context) {
|
|
820
|
-
return __assign(__assign(__assign(__assign({}, (input.PolicyName
|
|
821
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
822
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
829
|
+
return __assign(__assign(__assign(__assign({}, (input.PolicyName != null && { PolicyName: input.PolicyName })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
823
830
|
};
|
|
824
831
|
var serializeAws_json1_1DeleteScheduledActionRequest = function (input, context) {
|
|
825
|
-
return __assign(__assign(__assign(__assign({}, (input.ResourceId
|
|
826
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ScheduledActionName !== undefined &&
|
|
827
|
-
input.ScheduledActionName !== null && { ScheduledActionName: input.ScheduledActionName })), (input.ServiceNamespace !== undefined &&
|
|
828
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
832
|
+
return __assign(__assign(__assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
829
833
|
};
|
|
830
834
|
var serializeAws_json1_1DeregisterScalableTargetRequest = function (input, context) {
|
|
831
|
-
return __assign(__assign(__assign({}, (input.ResourceId
|
|
832
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
833
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
835
|
+
return __assign(__assign(__assign({}, (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
834
836
|
};
|
|
835
837
|
var serializeAws_json1_1DescribeScalableTargetsRequest = function (input, context) {
|
|
836
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
837
|
-
input.ResourceIds !== null && {
|
|
838
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceIds != null && {
|
|
838
839
|
ResourceIds: serializeAws_json1_1ResourceIdsMaxLen1600(input.ResourceIds, context),
|
|
839
|
-
})), (input.ScalableDimension
|
|
840
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
841
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
840
|
+
})), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
842
841
|
};
|
|
843
842
|
var serializeAws_json1_1DescribeScalingActivitiesRequest = function (input, context) {
|
|
844
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
845
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
846
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
843
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
847
844
|
};
|
|
848
845
|
var serializeAws_json1_1DescribeScalingPoliciesRequest = function (input, context) {
|
|
849
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
850
|
-
input.PolicyNames !== null && {
|
|
846
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.PolicyNames != null && {
|
|
851
847
|
PolicyNames: serializeAws_json1_1ResourceIdsMaxLen1600(input.PolicyNames, context),
|
|
852
|
-
})), (input.ResourceId
|
|
853
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
854
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
848
|
+
})), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
855
849
|
};
|
|
856
850
|
var serializeAws_json1_1DescribeScheduledActionsRequest = function (input, context) {
|
|
857
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
858
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ScheduledActionNames !== undefined &&
|
|
859
|
-
input.ScheduledActionNames !== null && {
|
|
851
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ScheduledActionNames != null && {
|
|
860
852
|
ScheduledActionNames: serializeAws_json1_1ResourceIdsMaxLen1600(input.ScheduledActionNames, context),
|
|
861
|
-
})), (input.ServiceNamespace
|
|
862
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }));
|
|
853
|
+
})), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }));
|
|
863
854
|
};
|
|
864
855
|
var serializeAws_json1_1MetricDimension = function (input, context) {
|
|
865
|
-
return __assign(__assign({}, (input.Name
|
|
856
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
|
|
866
857
|
};
|
|
867
858
|
var serializeAws_json1_1MetricDimensions = function (input, context) {
|
|
868
859
|
return input
|
|
@@ -875,36 +866,22 @@ var serializeAws_json1_1MetricDimensions = function (input, context) {
|
|
|
875
866
|
});
|
|
876
867
|
};
|
|
877
868
|
var serializeAws_json1_1PredefinedMetricSpecification = function (input, context) {
|
|
878
|
-
return __assign(__assign({}, (input.PredefinedMetricType
|
|
879
|
-
input.PredefinedMetricType !== null && { PredefinedMetricType: input.PredefinedMetricType })), (input.ResourceLabel !== undefined && input.ResourceLabel !== null && { ResourceLabel: input.ResourceLabel }));
|
|
869
|
+
return __assign(__assign({}, (input.PredefinedMetricType != null && { PredefinedMetricType: input.PredefinedMetricType })), (input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }));
|
|
880
870
|
};
|
|
881
871
|
var serializeAws_json1_1PutScalingPolicyRequest = function (input, context) {
|
|
882
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.PolicyName
|
|
883
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
884
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace })), (input.StepScalingPolicyConfiguration !== undefined &&
|
|
885
|
-
input.StepScalingPolicyConfiguration !== null && {
|
|
872
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.PolicyName != null && { PolicyName: input.PolicyName })), (input.PolicyType != null && { PolicyType: input.PolicyType })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace })), (input.StepScalingPolicyConfiguration != null && {
|
|
886
873
|
StepScalingPolicyConfiguration: serializeAws_json1_1StepScalingPolicyConfiguration(input.StepScalingPolicyConfiguration, context),
|
|
887
|
-
})), (input.TargetTrackingScalingPolicyConfiguration
|
|
888
|
-
input.TargetTrackingScalingPolicyConfiguration !== null && {
|
|
874
|
+
})), (input.TargetTrackingScalingPolicyConfiguration != null && {
|
|
889
875
|
TargetTrackingScalingPolicyConfiguration: serializeAws_json1_1TargetTrackingScalingPolicyConfiguration(input.TargetTrackingScalingPolicyConfiguration, context),
|
|
890
876
|
}));
|
|
891
877
|
};
|
|
892
878
|
var serializeAws_json1_1PutScheduledActionRequest = function (input, context) {
|
|
893
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime
|
|
894
|
-
input.EndTime !== null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.ResourceId !== undefined && input.ResourceId !== null && { ResourceId: input.ResourceId })), (input.ScalableDimension !== undefined &&
|
|
895
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ScalableTargetAction !== undefined &&
|
|
896
|
-
input.ScalableTargetAction !== null && {
|
|
879
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ScalableTargetAction != null && {
|
|
897
880
|
ScalableTargetAction: serializeAws_json1_1ScalableTargetAction(input.ScalableTargetAction, context),
|
|
898
|
-
})), (input.Schedule
|
|
899
|
-
input.ScheduledActionName !== null && { ScheduledActionName: input.ScheduledActionName })), (input.ServiceNamespace !== undefined &&
|
|
900
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace })), (input.StartTime !== undefined &&
|
|
901
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) })), (input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }));
|
|
881
|
+
})), (input.Schedule != null && { Schedule: input.Schedule })), (input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) })), (input.Timezone != null && { Timezone: input.Timezone }));
|
|
902
882
|
};
|
|
903
883
|
var serializeAws_json1_1RegisterScalableTargetRequest = function (input, context) {
|
|
904
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxCapacity
|
|
905
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace !== undefined &&
|
|
906
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace })), (input.SuspendedState !== undefined &&
|
|
907
|
-
input.SuspendedState !== null && {
|
|
884
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity })), (input.MinCapacity != null && { MinCapacity: input.MinCapacity })), (input.ResourceId != null && { ResourceId: input.ResourceId })), (input.RoleARN != null && { RoleARN: input.RoleARN })), (input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension })), (input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace })), (input.SuspendedState != null && {
|
|
908
885
|
SuspendedState: serializeAws_json1_1SuspendedState(input.SuspendedState, context),
|
|
909
886
|
}));
|
|
910
887
|
};
|
|
@@ -919,17 +896,14 @@ var serializeAws_json1_1ResourceIdsMaxLen1600 = function (input, context) {
|
|
|
919
896
|
});
|
|
920
897
|
};
|
|
921
898
|
var serializeAws_json1_1ScalableTargetAction = function (input, context) {
|
|
922
|
-
return __assign(__assign({}, (input.MaxCapacity
|
|
899
|
+
return __assign(__assign({}, (input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity })), (input.MinCapacity != null && { MinCapacity: input.MinCapacity }));
|
|
923
900
|
};
|
|
924
901
|
var serializeAws_json1_1StepAdjustment = function (input, context) {
|
|
925
|
-
return __assign(__assign(__assign({}, (input.MetricIntervalLowerBound
|
|
926
|
-
input.MetricIntervalLowerBound !== null && {
|
|
902
|
+
return __assign(__assign(__assign({}, (input.MetricIntervalLowerBound != null && {
|
|
927
903
|
MetricIntervalLowerBound: __serializeFloat(input.MetricIntervalLowerBound),
|
|
928
|
-
})), (input.MetricIntervalUpperBound
|
|
929
|
-
input.MetricIntervalUpperBound !== null && {
|
|
904
|
+
})), (input.MetricIntervalUpperBound != null && {
|
|
930
905
|
MetricIntervalUpperBound: __serializeFloat(input.MetricIntervalUpperBound),
|
|
931
|
-
})), (input.ScalingAdjustment
|
|
932
|
-
input.ScalingAdjustment !== null && { ScalingAdjustment: input.ScalingAdjustment }));
|
|
906
|
+
})), (input.ScalingAdjustment != null && { ScalingAdjustment: input.ScalingAdjustment }));
|
|
933
907
|
};
|
|
934
908
|
var serializeAws_json1_1StepAdjustments = function (input, context) {
|
|
935
909
|
return input
|
|
@@ -942,32 +916,19 @@ var serializeAws_json1_1StepAdjustments = function (input, context) {
|
|
|
942
916
|
});
|
|
943
917
|
};
|
|
944
918
|
var serializeAws_json1_1StepScalingPolicyConfiguration = function (input, context) {
|
|
945
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.AdjustmentType
|
|
946
|
-
input.AdjustmentType !== null && { AdjustmentType: input.AdjustmentType })), (input.Cooldown !== undefined && input.Cooldown !== null && { Cooldown: input.Cooldown })), (input.MetricAggregationType !== undefined &&
|
|
947
|
-
input.MetricAggregationType !== null && { MetricAggregationType: input.MetricAggregationType })), (input.MinAdjustmentMagnitude !== undefined &&
|
|
948
|
-
input.MinAdjustmentMagnitude !== null && { MinAdjustmentMagnitude: input.MinAdjustmentMagnitude })), (input.StepAdjustments !== undefined &&
|
|
949
|
-
input.StepAdjustments !== null && {
|
|
919
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.AdjustmentType != null && { AdjustmentType: input.AdjustmentType })), (input.Cooldown != null && { Cooldown: input.Cooldown })), (input.MetricAggregationType != null && { MetricAggregationType: input.MetricAggregationType })), (input.MinAdjustmentMagnitude != null && { MinAdjustmentMagnitude: input.MinAdjustmentMagnitude })), (input.StepAdjustments != null && {
|
|
950
920
|
StepAdjustments: serializeAws_json1_1StepAdjustments(input.StepAdjustments, context),
|
|
951
921
|
}));
|
|
952
922
|
};
|
|
953
923
|
var serializeAws_json1_1SuspendedState = function (input, context) {
|
|
954
|
-
return __assign(__assign(__assign({}, (input.DynamicScalingInSuspended
|
|
955
|
-
input.DynamicScalingInSuspended !== null && { DynamicScalingInSuspended: input.DynamicScalingInSuspended })), (input.DynamicScalingOutSuspended !== undefined &&
|
|
956
|
-
input.DynamicScalingOutSuspended !== null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended })), (input.ScheduledScalingSuspended !== undefined &&
|
|
957
|
-
input.ScheduledScalingSuspended !== null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }));
|
|
924
|
+
return __assign(__assign(__assign({}, (input.DynamicScalingInSuspended != null && { DynamicScalingInSuspended: input.DynamicScalingInSuspended })), (input.DynamicScalingOutSuspended != null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended })), (input.ScheduledScalingSuspended != null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }));
|
|
958
925
|
};
|
|
959
926
|
var serializeAws_json1_1TargetTrackingScalingPolicyConfiguration = function (input, context) {
|
|
960
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CustomizedMetricSpecification
|
|
961
|
-
input.CustomizedMetricSpecification !== null && {
|
|
927
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.CustomizedMetricSpecification != null && {
|
|
962
928
|
CustomizedMetricSpecification: serializeAws_json1_1CustomizedMetricSpecification(input.CustomizedMetricSpecification, context),
|
|
963
|
-
})), (input.DisableScaleIn
|
|
964
|
-
input.DisableScaleIn !== null && { DisableScaleIn: input.DisableScaleIn })), (input.PredefinedMetricSpecification !== undefined &&
|
|
965
|
-
input.PredefinedMetricSpecification !== null && {
|
|
929
|
+
})), (input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn })), (input.PredefinedMetricSpecification != null && {
|
|
966
930
|
PredefinedMetricSpecification: serializeAws_json1_1PredefinedMetricSpecification(input.PredefinedMetricSpecification, context),
|
|
967
|
-
})), (input.ScaleInCooldown
|
|
968
|
-
input.ScaleInCooldown !== null && { ScaleInCooldown: input.ScaleInCooldown })), (input.ScaleOutCooldown !== undefined &&
|
|
969
|
-
input.ScaleOutCooldown !== null && { ScaleOutCooldown: input.ScaleOutCooldown })), (input.TargetValue !== undefined &&
|
|
970
|
-
input.TargetValue !== null && { TargetValue: __serializeFloat(input.TargetValue) }));
|
|
931
|
+
})), (input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown })), (input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown })), (input.TargetValue != null && { TargetValue: __serializeFloat(input.TargetValue) }));
|
|
971
932
|
};
|
|
972
933
|
var deserializeAws_json1_1Alarm = function (output, context) {
|
|
973
934
|
return {
|
|
@@ -993,9 +954,7 @@ var deserializeAws_json1_1ConcurrentUpdateException = function (output, context)
|
|
|
993
954
|
};
|
|
994
955
|
var deserializeAws_json1_1CustomizedMetricSpecification = function (output, context) {
|
|
995
956
|
return {
|
|
996
|
-
Dimensions: output.Dimensions
|
|
997
|
-
? deserializeAws_json1_1MetricDimensions(output.Dimensions, context)
|
|
998
|
-
: undefined,
|
|
957
|
+
Dimensions: output.Dimensions != null ? deserializeAws_json1_1MetricDimensions(output.Dimensions, context) : undefined,
|
|
999
958
|
MetricName: __expectString(output.MetricName),
|
|
1000
959
|
Namespace: __expectString(output.Namespace),
|
|
1001
960
|
Statistic: __expectString(output.Statistic),
|
|
@@ -1014,7 +973,7 @@ var deserializeAws_json1_1DeregisterScalableTargetResponse = function (output, c
|
|
|
1014
973
|
var deserializeAws_json1_1DescribeScalableTargetsResponse = function (output, context) {
|
|
1015
974
|
return {
|
|
1016
975
|
NextToken: __expectString(output.NextToken),
|
|
1017
|
-
ScalableTargets: output.ScalableTargets
|
|
976
|
+
ScalableTargets: output.ScalableTargets != null
|
|
1018
977
|
? deserializeAws_json1_1ScalableTargets(output.ScalableTargets, context)
|
|
1019
978
|
: undefined,
|
|
1020
979
|
};
|
|
@@ -1022,7 +981,7 @@ var deserializeAws_json1_1DescribeScalableTargetsResponse = function (output, co
|
|
|
1022
981
|
var deserializeAws_json1_1DescribeScalingActivitiesResponse = function (output, context) {
|
|
1023
982
|
return {
|
|
1024
983
|
NextToken: __expectString(output.NextToken),
|
|
1025
|
-
ScalingActivities: output.ScalingActivities
|
|
984
|
+
ScalingActivities: output.ScalingActivities != null
|
|
1026
985
|
? deserializeAws_json1_1ScalingActivities(output.ScalingActivities, context)
|
|
1027
986
|
: undefined,
|
|
1028
987
|
};
|
|
@@ -1030,7 +989,7 @@ var deserializeAws_json1_1DescribeScalingActivitiesResponse = function (output,
|
|
|
1030
989
|
var deserializeAws_json1_1DescribeScalingPoliciesResponse = function (output, context) {
|
|
1031
990
|
return {
|
|
1032
991
|
NextToken: __expectString(output.NextToken),
|
|
1033
|
-
ScalingPolicies: output.ScalingPolicies
|
|
992
|
+
ScalingPolicies: output.ScalingPolicies != null
|
|
1034
993
|
? deserializeAws_json1_1ScalingPolicies(output.ScalingPolicies, context)
|
|
1035
994
|
: undefined,
|
|
1036
995
|
};
|
|
@@ -1038,7 +997,7 @@ var deserializeAws_json1_1DescribeScalingPoliciesResponse = function (output, co
|
|
|
1038
997
|
var deserializeAws_json1_1DescribeScheduledActionsResponse = function (output, context) {
|
|
1039
998
|
return {
|
|
1040
999
|
NextToken: __expectString(output.NextToken),
|
|
1041
|
-
ScheduledActions: output.ScheduledActions
|
|
1000
|
+
ScheduledActions: output.ScheduledActions != null
|
|
1042
1001
|
? deserializeAws_json1_1ScheduledActions(output.ScheduledActions, context)
|
|
1043
1002
|
: undefined,
|
|
1044
1003
|
};
|
|
@@ -1093,9 +1052,7 @@ var deserializeAws_json1_1PredefinedMetricSpecification = function (output, cont
|
|
|
1093
1052
|
};
|
|
1094
1053
|
var deserializeAws_json1_1PutScalingPolicyResponse = function (output, context) {
|
|
1095
1054
|
return {
|
|
1096
|
-
Alarms: output.Alarms
|
|
1097
|
-
? deserializeAws_json1_1Alarms(output.Alarms, context)
|
|
1098
|
-
: undefined,
|
|
1055
|
+
Alarms: output.Alarms != null ? deserializeAws_json1_1Alarms(output.Alarms, context) : undefined,
|
|
1099
1056
|
PolicyARN: __expectString(output.PolicyARN),
|
|
1100
1057
|
};
|
|
1101
1058
|
};
|
|
@@ -1107,7 +1064,7 @@ var deserializeAws_json1_1RegisterScalableTargetResponse = function (output, con
|
|
|
1107
1064
|
};
|
|
1108
1065
|
var deserializeAws_json1_1ScalableTarget = function (output, context) {
|
|
1109
1066
|
return {
|
|
1110
|
-
CreationTime: output.CreationTime
|
|
1067
|
+
CreationTime: output.CreationTime != null
|
|
1111
1068
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
1112
1069
|
: undefined,
|
|
1113
1070
|
MaxCapacity: __expectInt32(output.MaxCapacity),
|
|
@@ -1116,9 +1073,7 @@ var deserializeAws_json1_1ScalableTarget = function (output, context) {
|
|
|
1116
1073
|
RoleARN: __expectString(output.RoleARN),
|
|
1117
1074
|
ScalableDimension: __expectString(output.ScalableDimension),
|
|
1118
1075
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
1119
|
-
SuspendedState: output.SuspendedState
|
|
1120
|
-
? deserializeAws_json1_1SuspendedState(output.SuspendedState, context)
|
|
1121
|
-
: undefined,
|
|
1076
|
+
SuspendedState: output.SuspendedState != null ? deserializeAws_json1_1SuspendedState(output.SuspendedState, context) : undefined,
|
|
1122
1077
|
};
|
|
1123
1078
|
};
|
|
1124
1079
|
var deserializeAws_json1_1ScalableTargetAction = function (output, context) {
|
|
@@ -1155,15 +1110,11 @@ var deserializeAws_json1_1ScalingActivity = function (output, context) {
|
|
|
1155
1110
|
Cause: __expectString(output.Cause),
|
|
1156
1111
|
Description: __expectString(output.Description),
|
|
1157
1112
|
Details: __expectString(output.Details),
|
|
1158
|
-
EndTime: output.EndTime
|
|
1159
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
1160
|
-
: undefined,
|
|
1113
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
1161
1114
|
ResourceId: __expectString(output.ResourceId),
|
|
1162
1115
|
ScalableDimension: __expectString(output.ScalableDimension),
|
|
1163
1116
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
1164
|
-
StartTime: output.StartTime
|
|
1165
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
1166
|
-
: undefined,
|
|
1117
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
1167
1118
|
StatusCode: __expectString(output.StatusCode),
|
|
1168
1119
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1169
1120
|
};
|
|
@@ -1181,10 +1132,8 @@ var deserializeAws_json1_1ScalingPolicies = function (output, context) {
|
|
|
1181
1132
|
};
|
|
1182
1133
|
var deserializeAws_json1_1ScalingPolicy = function (output, context) {
|
|
1183
1134
|
return {
|
|
1184
|
-
Alarms: output.Alarms
|
|
1185
|
-
|
|
1186
|
-
: undefined,
|
|
1187
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
1135
|
+
Alarms: output.Alarms != null ? deserializeAws_json1_1Alarms(output.Alarms, context) : undefined,
|
|
1136
|
+
CreationTime: output.CreationTime != null
|
|
1188
1137
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
1189
1138
|
: undefined,
|
|
1190
1139
|
PolicyARN: __expectString(output.PolicyARN),
|
|
@@ -1193,35 +1142,30 @@ var deserializeAws_json1_1ScalingPolicy = function (output, context) {
|
|
|
1193
1142
|
ResourceId: __expectString(output.ResourceId),
|
|
1194
1143
|
ScalableDimension: __expectString(output.ScalableDimension),
|
|
1195
1144
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
1196
|
-
StepScalingPolicyConfiguration: output.StepScalingPolicyConfiguration
|
|
1145
|
+
StepScalingPolicyConfiguration: output.StepScalingPolicyConfiguration != null
|
|
1197
1146
|
? deserializeAws_json1_1StepScalingPolicyConfiguration(output.StepScalingPolicyConfiguration, context)
|
|
1198
1147
|
: undefined,
|
|
1199
|
-
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration
|
|
1200
|
-
output.TargetTrackingScalingPolicyConfiguration !== null
|
|
1148
|
+
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null
|
|
1201
1149
|
? deserializeAws_json1_1TargetTrackingScalingPolicyConfiguration(output.TargetTrackingScalingPolicyConfiguration, context)
|
|
1202
1150
|
: undefined,
|
|
1203
1151
|
};
|
|
1204
1152
|
};
|
|
1205
1153
|
var deserializeAws_json1_1ScheduledAction = function (output, context) {
|
|
1206
1154
|
return {
|
|
1207
|
-
CreationTime: output.CreationTime
|
|
1155
|
+
CreationTime: output.CreationTime != null
|
|
1208
1156
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationTime)))
|
|
1209
1157
|
: undefined,
|
|
1210
|
-
EndTime: output.EndTime
|
|
1211
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
1212
|
-
: undefined,
|
|
1158
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
1213
1159
|
ResourceId: __expectString(output.ResourceId),
|
|
1214
1160
|
ScalableDimension: __expectString(output.ScalableDimension),
|
|
1215
|
-
ScalableTargetAction: output.ScalableTargetAction
|
|
1161
|
+
ScalableTargetAction: output.ScalableTargetAction != null
|
|
1216
1162
|
? deserializeAws_json1_1ScalableTargetAction(output.ScalableTargetAction, context)
|
|
1217
1163
|
: undefined,
|
|
1218
1164
|
Schedule: __expectString(output.Schedule),
|
|
1219
1165
|
ScheduledActionARN: __expectString(output.ScheduledActionARN),
|
|
1220
1166
|
ScheduledActionName: __expectString(output.ScheduledActionName),
|
|
1221
1167
|
ServiceNamespace: __expectString(output.ServiceNamespace),
|
|
1222
|
-
StartTime: output.StartTime
|
|
1223
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
1224
|
-
: undefined,
|
|
1168
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
1225
1169
|
Timezone: __expectString(output.Timezone),
|
|
1226
1170
|
};
|
|
1227
1171
|
};
|
|
@@ -1260,7 +1204,7 @@ var deserializeAws_json1_1StepScalingPolicyConfiguration = function (output, con
|
|
|
1260
1204
|
Cooldown: __expectInt32(output.Cooldown),
|
|
1261
1205
|
MetricAggregationType: __expectString(output.MetricAggregationType),
|
|
1262
1206
|
MinAdjustmentMagnitude: __expectInt32(output.MinAdjustmentMagnitude),
|
|
1263
|
-
StepAdjustments: output.StepAdjustments
|
|
1207
|
+
StepAdjustments: output.StepAdjustments != null
|
|
1264
1208
|
? deserializeAws_json1_1StepAdjustments(output.StepAdjustments, context)
|
|
1265
1209
|
: undefined,
|
|
1266
1210
|
};
|
|
@@ -1274,11 +1218,11 @@ var deserializeAws_json1_1SuspendedState = function (output, context) {
|
|
|
1274
1218
|
};
|
|
1275
1219
|
var deserializeAws_json1_1TargetTrackingScalingPolicyConfiguration = function (output, context) {
|
|
1276
1220
|
return {
|
|
1277
|
-
CustomizedMetricSpecification: output.CustomizedMetricSpecification
|
|
1221
|
+
CustomizedMetricSpecification: output.CustomizedMetricSpecification != null
|
|
1278
1222
|
? deserializeAws_json1_1CustomizedMetricSpecification(output.CustomizedMetricSpecification, context)
|
|
1279
1223
|
: undefined,
|
|
1280
1224
|
DisableScaleIn: __expectBoolean(output.DisableScaleIn),
|
|
1281
|
-
PredefinedMetricSpecification: output.PredefinedMetricSpecification
|
|
1225
|
+
PredefinedMetricSpecification: output.PredefinedMetricSpecification != null
|
|
1282
1226
|
? deserializeAws_json1_1PredefinedMetricSpecification(output.PredefinedMetricSpecification, context)
|
|
1283
1227
|
: undefined,
|
|
1284
1228
|
ScaleInCooldown: __expectInt32(output.ScaleInCooldown),
|
|
@@ -1365,5 +1309,4 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1365
1309
|
if (data["__type"] !== undefined) {
|
|
1366
1310
|
return sanitizeErrorCode(data["__type"]);
|
|
1367
1311
|
}
|
|
1368
|
-
return "";
|
|
1369
1312
|
};
|