@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
|
@@ -125,8 +125,7 @@ const deserializeAws_json1_1DeleteScalingPolicyCommandError = async (output, con
|
|
|
125
125
|
body: await parseBody(output.body, context),
|
|
126
126
|
};
|
|
127
127
|
let response;
|
|
128
|
-
|
|
129
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
128
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
130
129
|
switch (errorCode) {
|
|
131
130
|
case "ConcurrentUpdateException":
|
|
132
131
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
@@ -142,10 +141,12 @@ const deserializeAws_json1_1DeleteScalingPolicyCommandError = async (output, con
|
|
|
142
141
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
143
142
|
default:
|
|
144
143
|
const parsedBody = parsedOutput.body;
|
|
144
|
+
const $metadata = deserializeMetadata(output);
|
|
145
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
145
146
|
response = new ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException({
|
|
146
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
147
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
147
148
|
$fault: "client",
|
|
148
|
-
$metadata
|
|
149
|
+
$metadata,
|
|
149
150
|
});
|
|
150
151
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
151
152
|
}
|
|
@@ -170,8 +171,7 @@ const deserializeAws_json1_1DeleteScheduledActionCommandError = async (output, c
|
|
|
170
171
|
body: await parseBody(output.body, context),
|
|
171
172
|
};
|
|
172
173
|
let response;
|
|
173
|
-
|
|
174
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
174
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
175
175
|
switch (errorCode) {
|
|
176
176
|
case "ConcurrentUpdateException":
|
|
177
177
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
@@ -187,10 +187,12 @@ const deserializeAws_json1_1DeleteScheduledActionCommandError = async (output, c
|
|
|
187
187
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
188
188
|
default:
|
|
189
189
|
const parsedBody = parsedOutput.body;
|
|
190
|
+
const $metadata = deserializeMetadata(output);
|
|
191
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
190
192
|
response = new ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException({
|
|
191
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
193
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
192
194
|
$fault: "client",
|
|
193
|
-
$metadata
|
|
195
|
+
$metadata,
|
|
194
196
|
});
|
|
195
197
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
196
198
|
}
|
|
@@ -215,8 +217,7 @@ const deserializeAws_json1_1DeregisterScalableTargetCommandError = async (output
|
|
|
215
217
|
body: await parseBody(output.body, context),
|
|
216
218
|
};
|
|
217
219
|
let response;
|
|
218
|
-
|
|
219
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
220
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
220
221
|
switch (errorCode) {
|
|
221
222
|
case "ConcurrentUpdateException":
|
|
222
223
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
@@ -232,10 +233,12 @@ const deserializeAws_json1_1DeregisterScalableTargetCommandError = async (output
|
|
|
232
233
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
233
234
|
default:
|
|
234
235
|
const parsedBody = parsedOutput.body;
|
|
236
|
+
const $metadata = deserializeMetadata(output);
|
|
237
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
235
238
|
response = new ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException({
|
|
236
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
239
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
237
240
|
$fault: "client",
|
|
238
|
-
$metadata
|
|
241
|
+
$metadata,
|
|
239
242
|
});
|
|
240
243
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
241
244
|
}
|
|
@@ -260,8 +263,7 @@ const deserializeAws_json1_1DescribeScalableTargetsCommandError = async (output,
|
|
|
260
263
|
body: await parseBody(output.body, context),
|
|
261
264
|
};
|
|
262
265
|
let response;
|
|
263
|
-
|
|
264
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
266
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
265
267
|
switch (errorCode) {
|
|
266
268
|
case "ConcurrentUpdateException":
|
|
267
269
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
@@ -277,10 +279,12 @@ const deserializeAws_json1_1DescribeScalableTargetsCommandError = async (output,
|
|
|
277
279
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
278
280
|
default:
|
|
279
281
|
const parsedBody = parsedOutput.body;
|
|
282
|
+
const $metadata = deserializeMetadata(output);
|
|
283
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
280
284
|
response = new ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException({
|
|
281
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
285
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
282
286
|
$fault: "client",
|
|
283
|
-
$metadata
|
|
287
|
+
$metadata,
|
|
284
288
|
});
|
|
285
289
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
286
290
|
}
|
|
@@ -305,8 +309,7 @@ const deserializeAws_json1_1DescribeScalingActivitiesCommandError = async (outpu
|
|
|
305
309
|
body: await parseBody(output.body, context),
|
|
306
310
|
};
|
|
307
311
|
let response;
|
|
308
|
-
|
|
309
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
312
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
310
313
|
switch (errorCode) {
|
|
311
314
|
case "ConcurrentUpdateException":
|
|
312
315
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
@@ -322,10 +325,12 @@ const deserializeAws_json1_1DescribeScalingActivitiesCommandError = async (outpu
|
|
|
322
325
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
323
326
|
default:
|
|
324
327
|
const parsedBody = parsedOutput.body;
|
|
328
|
+
const $metadata = deserializeMetadata(output);
|
|
329
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
325
330
|
response = new ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException({
|
|
326
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
331
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
327
332
|
$fault: "client",
|
|
328
|
-
$metadata
|
|
333
|
+
$metadata,
|
|
329
334
|
});
|
|
330
335
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
331
336
|
}
|
|
@@ -350,8 +355,7 @@ const deserializeAws_json1_1DescribeScalingPoliciesCommandError = async (output,
|
|
|
350
355
|
body: await parseBody(output.body, context),
|
|
351
356
|
};
|
|
352
357
|
let response;
|
|
353
|
-
|
|
354
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
358
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
355
359
|
switch (errorCode) {
|
|
356
360
|
case "ConcurrentUpdateException":
|
|
357
361
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
@@ -370,10 +374,12 @@ const deserializeAws_json1_1DescribeScalingPoliciesCommandError = async (output,
|
|
|
370
374
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
371
375
|
default:
|
|
372
376
|
const parsedBody = parsedOutput.body;
|
|
377
|
+
const $metadata = deserializeMetadata(output);
|
|
378
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
373
379
|
response = new ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException({
|
|
374
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
380
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
375
381
|
$fault: "client",
|
|
376
|
-
$metadata
|
|
382
|
+
$metadata,
|
|
377
383
|
});
|
|
378
384
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
379
385
|
}
|
|
@@ -398,8 +404,7 @@ const deserializeAws_json1_1DescribeScheduledActionsCommandError = async (output
|
|
|
398
404
|
body: await parseBody(output.body, context),
|
|
399
405
|
};
|
|
400
406
|
let response;
|
|
401
|
-
|
|
402
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
407
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
403
408
|
switch (errorCode) {
|
|
404
409
|
case "ConcurrentUpdateException":
|
|
405
410
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
@@ -415,10 +420,12 @@ const deserializeAws_json1_1DescribeScheduledActionsCommandError = async (output
|
|
|
415
420
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
416
421
|
default:
|
|
417
422
|
const parsedBody = parsedOutput.body;
|
|
423
|
+
const $metadata = deserializeMetadata(output);
|
|
424
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
418
425
|
response = new ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException({
|
|
419
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
426
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
420
427
|
$fault: "client",
|
|
421
|
-
$metadata
|
|
428
|
+
$metadata,
|
|
422
429
|
});
|
|
423
430
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
424
431
|
}
|
|
@@ -443,8 +450,7 @@ const deserializeAws_json1_1PutScalingPolicyCommandError = async (output, contex
|
|
|
443
450
|
body: await parseBody(output.body, context),
|
|
444
451
|
};
|
|
445
452
|
let response;
|
|
446
|
-
|
|
447
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
453
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
448
454
|
switch (errorCode) {
|
|
449
455
|
case "ConcurrentUpdateException":
|
|
450
456
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
@@ -466,10 +472,12 @@ const deserializeAws_json1_1PutScalingPolicyCommandError = async (output, contex
|
|
|
466
472
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
467
473
|
default:
|
|
468
474
|
const parsedBody = parsedOutput.body;
|
|
475
|
+
const $metadata = deserializeMetadata(output);
|
|
476
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
469
477
|
response = new ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException({
|
|
470
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
478
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
471
479
|
$fault: "client",
|
|
472
|
-
$metadata
|
|
480
|
+
$metadata,
|
|
473
481
|
});
|
|
474
482
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
475
483
|
}
|
|
@@ -494,8 +502,7 @@ const deserializeAws_json1_1PutScheduledActionCommandError = async (output, cont
|
|
|
494
502
|
body: await parseBody(output.body, context),
|
|
495
503
|
};
|
|
496
504
|
let response;
|
|
497
|
-
|
|
498
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
505
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
499
506
|
switch (errorCode) {
|
|
500
507
|
case "ConcurrentUpdateException":
|
|
501
508
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
@@ -514,10 +521,12 @@ const deserializeAws_json1_1PutScheduledActionCommandError = async (output, cont
|
|
|
514
521
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
515
522
|
default:
|
|
516
523
|
const parsedBody = parsedOutput.body;
|
|
524
|
+
const $metadata = deserializeMetadata(output);
|
|
525
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
517
526
|
response = new ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException({
|
|
518
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
527
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
519
528
|
$fault: "client",
|
|
520
|
-
$metadata
|
|
529
|
+
$metadata,
|
|
521
530
|
});
|
|
522
531
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
523
532
|
}
|
|
@@ -542,8 +551,7 @@ const deserializeAws_json1_1RegisterScalableTargetCommandError = async (output,
|
|
|
542
551
|
body: await parseBody(output.body, context),
|
|
543
552
|
};
|
|
544
553
|
let response;
|
|
545
|
-
|
|
546
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
554
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
547
555
|
switch (errorCode) {
|
|
548
556
|
case "ConcurrentUpdateException":
|
|
549
557
|
case "com.amazonaws.applicationautoscaling#ConcurrentUpdateException":
|
|
@@ -559,10 +567,12 @@ const deserializeAws_json1_1RegisterScalableTargetCommandError = async (output,
|
|
|
559
567
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
560
568
|
default:
|
|
561
569
|
const parsedBody = parsedOutput.body;
|
|
570
|
+
const $metadata = deserializeMetadata(output);
|
|
571
|
+
const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
|
|
562
572
|
response = new ApplicationAutoScalingServiceException_1.ApplicationAutoScalingServiceException({
|
|
563
|
-
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
573
|
+
name: parsedBody.code || parsedBody.Code || errorCode || statusCode || "UnknowError",
|
|
564
574
|
$fault: "client",
|
|
565
|
-
$metadata
|
|
575
|
+
$metadata,
|
|
566
576
|
});
|
|
567
577
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
568
578
|
}
|
|
@@ -632,103 +642,84 @@ const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, c
|
|
|
632
642
|
};
|
|
633
643
|
const serializeAws_json1_1CustomizedMetricSpecification = (input, context) => {
|
|
634
644
|
return {
|
|
635
|
-
...(input.Dimensions
|
|
636
|
-
|
|
637
|
-
...(input.
|
|
638
|
-
...(input.
|
|
639
|
-
...(input.
|
|
640
|
-
...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
|
|
645
|
+
...(input.Dimensions != null && { Dimensions: serializeAws_json1_1MetricDimensions(input.Dimensions, context) }),
|
|
646
|
+
...(input.MetricName != null && { MetricName: input.MetricName }),
|
|
647
|
+
...(input.Namespace != null && { Namespace: input.Namespace }),
|
|
648
|
+
...(input.Statistic != null && { Statistic: input.Statistic }),
|
|
649
|
+
...(input.Unit != null && { Unit: input.Unit }),
|
|
641
650
|
};
|
|
642
651
|
};
|
|
643
652
|
const serializeAws_json1_1DeleteScalingPolicyRequest = (input, context) => {
|
|
644
653
|
return {
|
|
645
|
-
...(input.PolicyName
|
|
646
|
-
...(input.ResourceId
|
|
647
|
-
...(input.ScalableDimension
|
|
648
|
-
|
|
649
|
-
...(input.ServiceNamespace !== undefined &&
|
|
650
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
654
|
+
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
655
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
656
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
657
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
651
658
|
};
|
|
652
659
|
};
|
|
653
660
|
const serializeAws_json1_1DeleteScheduledActionRequest = (input, context) => {
|
|
654
661
|
return {
|
|
655
|
-
...(input.ResourceId
|
|
656
|
-
...(input.ScalableDimension
|
|
657
|
-
|
|
658
|
-
...(input.
|
|
659
|
-
input.ScheduledActionName !== null && { ScheduledActionName: input.ScheduledActionName }),
|
|
660
|
-
...(input.ServiceNamespace !== undefined &&
|
|
661
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
662
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
663
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
664
|
+
...(input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName }),
|
|
665
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
662
666
|
};
|
|
663
667
|
};
|
|
664
668
|
const serializeAws_json1_1DeregisterScalableTargetRequest = (input, context) => {
|
|
665
669
|
return {
|
|
666
|
-
...(input.ResourceId
|
|
667
|
-
...(input.ScalableDimension
|
|
668
|
-
|
|
669
|
-
...(input.ServiceNamespace !== undefined &&
|
|
670
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
670
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
671
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
672
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
671
673
|
};
|
|
672
674
|
};
|
|
673
675
|
const serializeAws_json1_1DescribeScalableTargetsRequest = (input, context) => {
|
|
674
676
|
return {
|
|
675
|
-
...(input.MaxResults
|
|
676
|
-
...(input.NextToken
|
|
677
|
-
...(input.ResourceIds
|
|
678
|
-
input.ResourceIds !== null && {
|
|
677
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
678
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
679
|
+
...(input.ResourceIds != null && {
|
|
679
680
|
ResourceIds: serializeAws_json1_1ResourceIdsMaxLen1600(input.ResourceIds, context),
|
|
680
681
|
}),
|
|
681
|
-
...(input.ScalableDimension
|
|
682
|
-
|
|
683
|
-
...(input.ServiceNamespace !== undefined &&
|
|
684
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
682
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
683
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
685
684
|
};
|
|
686
685
|
};
|
|
687
686
|
const serializeAws_json1_1DescribeScalingActivitiesRequest = (input, context) => {
|
|
688
687
|
return {
|
|
689
|
-
...(input.MaxResults
|
|
690
|
-
...(input.NextToken
|
|
691
|
-
...(input.ResourceId
|
|
692
|
-
...(input.ScalableDimension
|
|
693
|
-
|
|
694
|
-
...(input.ServiceNamespace !== undefined &&
|
|
695
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
688
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
689
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
690
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
691
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
692
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
696
693
|
};
|
|
697
694
|
};
|
|
698
695
|
const serializeAws_json1_1DescribeScalingPoliciesRequest = (input, context) => {
|
|
699
696
|
return {
|
|
700
|
-
...(input.MaxResults
|
|
701
|
-
...(input.NextToken
|
|
702
|
-
...(input.PolicyNames
|
|
703
|
-
input.PolicyNames !== null && {
|
|
697
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
698
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
699
|
+
...(input.PolicyNames != null && {
|
|
704
700
|
PolicyNames: serializeAws_json1_1ResourceIdsMaxLen1600(input.PolicyNames, context),
|
|
705
701
|
}),
|
|
706
|
-
...(input.ResourceId
|
|
707
|
-
...(input.ScalableDimension
|
|
708
|
-
|
|
709
|
-
...(input.ServiceNamespace !== undefined &&
|
|
710
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
702
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
703
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
704
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
711
705
|
};
|
|
712
706
|
};
|
|
713
707
|
const serializeAws_json1_1DescribeScheduledActionsRequest = (input, context) => {
|
|
714
708
|
return {
|
|
715
|
-
...(input.MaxResults
|
|
716
|
-
...(input.NextToken
|
|
717
|
-
...(input.ResourceId
|
|
718
|
-
...(input.ScalableDimension
|
|
719
|
-
|
|
720
|
-
...(input.ScheduledActionNames !== undefined &&
|
|
721
|
-
input.ScheduledActionNames !== null && {
|
|
709
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
710
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
711
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
712
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
713
|
+
...(input.ScheduledActionNames != null && {
|
|
722
714
|
ScheduledActionNames: serializeAws_json1_1ResourceIdsMaxLen1600(input.ScheduledActionNames, context),
|
|
723
715
|
}),
|
|
724
|
-
...(input.ServiceNamespace
|
|
725
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
716
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
726
717
|
};
|
|
727
718
|
};
|
|
728
719
|
const serializeAws_json1_1MetricDimension = (input, context) => {
|
|
729
720
|
return {
|
|
730
|
-
...(input.Name
|
|
731
|
-
...(input.Value
|
|
721
|
+
...(input.Name != null && { Name: input.Name }),
|
|
722
|
+
...(input.Value != null && { Value: input.Value }),
|
|
732
723
|
};
|
|
733
724
|
};
|
|
734
725
|
const serializeAws_json1_1MetricDimensions = (input, context) => {
|
|
@@ -743,63 +734,49 @@ const serializeAws_json1_1MetricDimensions = (input, context) => {
|
|
|
743
734
|
};
|
|
744
735
|
const serializeAws_json1_1PredefinedMetricSpecification = (input, context) => {
|
|
745
736
|
return {
|
|
746
|
-
...(input.PredefinedMetricType
|
|
747
|
-
|
|
748
|
-
...(input.ResourceLabel !== undefined && input.ResourceLabel !== null && { ResourceLabel: input.ResourceLabel }),
|
|
737
|
+
...(input.PredefinedMetricType != null && { PredefinedMetricType: input.PredefinedMetricType }),
|
|
738
|
+
...(input.ResourceLabel != null && { ResourceLabel: input.ResourceLabel }),
|
|
749
739
|
};
|
|
750
740
|
};
|
|
751
741
|
const serializeAws_json1_1PutScalingPolicyRequest = (input, context) => {
|
|
752
742
|
return {
|
|
753
|
-
...(input.PolicyName
|
|
754
|
-
...(input.PolicyType
|
|
755
|
-
...(input.ResourceId
|
|
756
|
-
...(input.ScalableDimension
|
|
757
|
-
|
|
758
|
-
...(input.
|
|
759
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
760
|
-
...(input.StepScalingPolicyConfiguration !== undefined &&
|
|
761
|
-
input.StepScalingPolicyConfiguration !== null && {
|
|
743
|
+
...(input.PolicyName != null && { PolicyName: input.PolicyName }),
|
|
744
|
+
...(input.PolicyType != null && { PolicyType: input.PolicyType }),
|
|
745
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
746
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
747
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
748
|
+
...(input.StepScalingPolicyConfiguration != null && {
|
|
762
749
|
StepScalingPolicyConfiguration: serializeAws_json1_1StepScalingPolicyConfiguration(input.StepScalingPolicyConfiguration, context),
|
|
763
750
|
}),
|
|
764
|
-
...(input.TargetTrackingScalingPolicyConfiguration
|
|
765
|
-
input.TargetTrackingScalingPolicyConfiguration !== null && {
|
|
751
|
+
...(input.TargetTrackingScalingPolicyConfiguration != null && {
|
|
766
752
|
TargetTrackingScalingPolicyConfiguration: serializeAws_json1_1TargetTrackingScalingPolicyConfiguration(input.TargetTrackingScalingPolicyConfiguration, context),
|
|
767
753
|
}),
|
|
768
754
|
};
|
|
769
755
|
};
|
|
770
756
|
const serializeAws_json1_1PutScheduledActionRequest = (input, context) => {
|
|
771
757
|
return {
|
|
772
|
-
...(input.EndTime
|
|
773
|
-
|
|
774
|
-
...(input.
|
|
775
|
-
...(input.
|
|
776
|
-
input.ScalableDimension !== null && { ScalableDimension: input.ScalableDimension }),
|
|
777
|
-
...(input.ScalableTargetAction !== undefined &&
|
|
778
|
-
input.ScalableTargetAction !== null && {
|
|
758
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
759
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
760
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
761
|
+
...(input.ScalableTargetAction != null && {
|
|
779
762
|
ScalableTargetAction: serializeAws_json1_1ScalableTargetAction(input.ScalableTargetAction, context),
|
|
780
763
|
}),
|
|
781
|
-
...(input.Schedule
|
|
782
|
-
...(input.ScheduledActionName
|
|
783
|
-
|
|
784
|
-
...(input.
|
|
785
|
-
|
|
786
|
-
...(input.StartTime !== undefined &&
|
|
787
|
-
input.StartTime !== null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
788
|
-
...(input.Timezone !== undefined && input.Timezone !== null && { Timezone: input.Timezone }),
|
|
764
|
+
...(input.Schedule != null && { Schedule: input.Schedule }),
|
|
765
|
+
...(input.ScheduledActionName != null && { ScheduledActionName: input.ScheduledActionName }),
|
|
766
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
767
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
768
|
+
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
789
769
|
};
|
|
790
770
|
};
|
|
791
771
|
const serializeAws_json1_1RegisterScalableTargetRequest = (input, context) => {
|
|
792
772
|
return {
|
|
793
|
-
...(input.MaxCapacity
|
|
794
|
-
...(input.MinCapacity
|
|
795
|
-
...(input.ResourceId
|
|
796
|
-
...(input.RoleARN
|
|
797
|
-
...(input.ScalableDimension
|
|
798
|
-
|
|
799
|
-
...(input.
|
|
800
|
-
input.ServiceNamespace !== null && { ServiceNamespace: input.ServiceNamespace }),
|
|
801
|
-
...(input.SuspendedState !== undefined &&
|
|
802
|
-
input.SuspendedState !== null && {
|
|
773
|
+
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
774
|
+
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
775
|
+
...(input.ResourceId != null && { ResourceId: input.ResourceId }),
|
|
776
|
+
...(input.RoleARN != null && { RoleARN: input.RoleARN }),
|
|
777
|
+
...(input.ScalableDimension != null && { ScalableDimension: input.ScalableDimension }),
|
|
778
|
+
...(input.ServiceNamespace != null && { ServiceNamespace: input.ServiceNamespace }),
|
|
779
|
+
...(input.SuspendedState != null && {
|
|
803
780
|
SuspendedState: serializeAws_json1_1SuspendedState(input.SuspendedState, context),
|
|
804
781
|
}),
|
|
805
782
|
};
|
|
@@ -816,22 +793,19 @@ const serializeAws_json1_1ResourceIdsMaxLen1600 = (input, context) => {
|
|
|
816
793
|
};
|
|
817
794
|
const serializeAws_json1_1ScalableTargetAction = (input, context) => {
|
|
818
795
|
return {
|
|
819
|
-
...(input.MaxCapacity
|
|
820
|
-
...(input.MinCapacity
|
|
796
|
+
...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
|
|
797
|
+
...(input.MinCapacity != null && { MinCapacity: input.MinCapacity }),
|
|
821
798
|
};
|
|
822
799
|
};
|
|
823
800
|
const serializeAws_json1_1StepAdjustment = (input, context) => {
|
|
824
801
|
return {
|
|
825
|
-
...(input.MetricIntervalLowerBound
|
|
826
|
-
input.MetricIntervalLowerBound !== null && {
|
|
802
|
+
...(input.MetricIntervalLowerBound != null && {
|
|
827
803
|
MetricIntervalLowerBound: (0, smithy_client_1.serializeFloat)(input.MetricIntervalLowerBound),
|
|
828
804
|
}),
|
|
829
|
-
...(input.MetricIntervalUpperBound
|
|
830
|
-
input.MetricIntervalUpperBound !== null && {
|
|
805
|
+
...(input.MetricIntervalUpperBound != null && {
|
|
831
806
|
MetricIntervalUpperBound: (0, smithy_client_1.serializeFloat)(input.MetricIntervalUpperBound),
|
|
832
807
|
}),
|
|
833
|
-
...(input.ScalingAdjustment
|
|
834
|
-
input.ScalingAdjustment !== null && { ScalingAdjustment: input.ScalingAdjustment }),
|
|
808
|
+
...(input.ScalingAdjustment != null && { ScalingAdjustment: input.ScalingAdjustment }),
|
|
835
809
|
};
|
|
836
810
|
};
|
|
837
811
|
const serializeAws_json1_1StepAdjustments = (input, context) => {
|
|
@@ -846,47 +820,34 @@ const serializeAws_json1_1StepAdjustments = (input, context) => {
|
|
|
846
820
|
};
|
|
847
821
|
const serializeAws_json1_1StepScalingPolicyConfiguration = (input, context) => {
|
|
848
822
|
return {
|
|
849
|
-
...(input.AdjustmentType
|
|
850
|
-
|
|
851
|
-
...(input.
|
|
852
|
-
...(input.
|
|
853
|
-
|
|
854
|
-
...(input.MinAdjustmentMagnitude !== undefined &&
|
|
855
|
-
input.MinAdjustmentMagnitude !== null && { MinAdjustmentMagnitude: input.MinAdjustmentMagnitude }),
|
|
856
|
-
...(input.StepAdjustments !== undefined &&
|
|
857
|
-
input.StepAdjustments !== null && {
|
|
823
|
+
...(input.AdjustmentType != null && { AdjustmentType: input.AdjustmentType }),
|
|
824
|
+
...(input.Cooldown != null && { Cooldown: input.Cooldown }),
|
|
825
|
+
...(input.MetricAggregationType != null && { MetricAggregationType: input.MetricAggregationType }),
|
|
826
|
+
...(input.MinAdjustmentMagnitude != null && { MinAdjustmentMagnitude: input.MinAdjustmentMagnitude }),
|
|
827
|
+
...(input.StepAdjustments != null && {
|
|
858
828
|
StepAdjustments: serializeAws_json1_1StepAdjustments(input.StepAdjustments, context),
|
|
859
829
|
}),
|
|
860
830
|
};
|
|
861
831
|
};
|
|
862
832
|
const serializeAws_json1_1SuspendedState = (input, context) => {
|
|
863
833
|
return {
|
|
864
|
-
...(input.DynamicScalingInSuspended
|
|
865
|
-
|
|
866
|
-
...(input.
|
|
867
|
-
input.DynamicScalingOutSuspended !== null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended }),
|
|
868
|
-
...(input.ScheduledScalingSuspended !== undefined &&
|
|
869
|
-
input.ScheduledScalingSuspended !== null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }),
|
|
834
|
+
...(input.DynamicScalingInSuspended != null && { DynamicScalingInSuspended: input.DynamicScalingInSuspended }),
|
|
835
|
+
...(input.DynamicScalingOutSuspended != null && { DynamicScalingOutSuspended: input.DynamicScalingOutSuspended }),
|
|
836
|
+
...(input.ScheduledScalingSuspended != null && { ScheduledScalingSuspended: input.ScheduledScalingSuspended }),
|
|
870
837
|
};
|
|
871
838
|
};
|
|
872
839
|
const serializeAws_json1_1TargetTrackingScalingPolicyConfiguration = (input, context) => {
|
|
873
840
|
return {
|
|
874
|
-
...(input.CustomizedMetricSpecification
|
|
875
|
-
input.CustomizedMetricSpecification !== null && {
|
|
841
|
+
...(input.CustomizedMetricSpecification != null && {
|
|
876
842
|
CustomizedMetricSpecification: serializeAws_json1_1CustomizedMetricSpecification(input.CustomizedMetricSpecification, context),
|
|
877
843
|
}),
|
|
878
|
-
...(input.DisableScaleIn
|
|
879
|
-
|
|
880
|
-
...(input.PredefinedMetricSpecification !== undefined &&
|
|
881
|
-
input.PredefinedMetricSpecification !== null && {
|
|
844
|
+
...(input.DisableScaleIn != null && { DisableScaleIn: input.DisableScaleIn }),
|
|
845
|
+
...(input.PredefinedMetricSpecification != null && {
|
|
882
846
|
PredefinedMetricSpecification: serializeAws_json1_1PredefinedMetricSpecification(input.PredefinedMetricSpecification, context),
|
|
883
847
|
}),
|
|
884
|
-
...(input.ScaleInCooldown
|
|
885
|
-
|
|
886
|
-
...(input.
|
|
887
|
-
input.ScaleOutCooldown !== null && { ScaleOutCooldown: input.ScaleOutCooldown }),
|
|
888
|
-
...(input.TargetValue !== undefined &&
|
|
889
|
-
input.TargetValue !== null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
|
|
848
|
+
...(input.ScaleInCooldown != null && { ScaleInCooldown: input.ScaleInCooldown }),
|
|
849
|
+
...(input.ScaleOutCooldown != null && { ScaleOutCooldown: input.ScaleOutCooldown }),
|
|
850
|
+
...(input.TargetValue != null && { TargetValue: (0, smithy_client_1.serializeFloat)(input.TargetValue) }),
|
|
890
851
|
};
|
|
891
852
|
};
|
|
892
853
|
const deserializeAws_json1_1Alarm = (output, context) => {
|
|
@@ -913,9 +874,7 @@ const deserializeAws_json1_1ConcurrentUpdateException = (output, context) => {
|
|
|
913
874
|
};
|
|
914
875
|
const deserializeAws_json1_1CustomizedMetricSpecification = (output, context) => {
|
|
915
876
|
return {
|
|
916
|
-
Dimensions: output.Dimensions
|
|
917
|
-
? deserializeAws_json1_1MetricDimensions(output.Dimensions, context)
|
|
918
|
-
: undefined,
|
|
877
|
+
Dimensions: output.Dimensions != null ? deserializeAws_json1_1MetricDimensions(output.Dimensions, context) : undefined,
|
|
919
878
|
MetricName: (0, smithy_client_1.expectString)(output.MetricName),
|
|
920
879
|
Namespace: (0, smithy_client_1.expectString)(output.Namespace),
|
|
921
880
|
Statistic: (0, smithy_client_1.expectString)(output.Statistic),
|
|
@@ -934,7 +893,7 @@ const deserializeAws_json1_1DeregisterScalableTargetResponse = (output, context)
|
|
|
934
893
|
const deserializeAws_json1_1DescribeScalableTargetsResponse = (output, context) => {
|
|
935
894
|
return {
|
|
936
895
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
937
|
-
ScalableTargets: output.ScalableTargets
|
|
896
|
+
ScalableTargets: output.ScalableTargets != null
|
|
938
897
|
? deserializeAws_json1_1ScalableTargets(output.ScalableTargets, context)
|
|
939
898
|
: undefined,
|
|
940
899
|
};
|
|
@@ -942,7 +901,7 @@ const deserializeAws_json1_1DescribeScalableTargetsResponse = (output, context)
|
|
|
942
901
|
const deserializeAws_json1_1DescribeScalingActivitiesResponse = (output, context) => {
|
|
943
902
|
return {
|
|
944
903
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
945
|
-
ScalingActivities: output.ScalingActivities
|
|
904
|
+
ScalingActivities: output.ScalingActivities != null
|
|
946
905
|
? deserializeAws_json1_1ScalingActivities(output.ScalingActivities, context)
|
|
947
906
|
: undefined,
|
|
948
907
|
};
|
|
@@ -950,7 +909,7 @@ const deserializeAws_json1_1DescribeScalingActivitiesResponse = (output, context
|
|
|
950
909
|
const deserializeAws_json1_1DescribeScalingPoliciesResponse = (output, context) => {
|
|
951
910
|
return {
|
|
952
911
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
953
|
-
ScalingPolicies: output.ScalingPolicies
|
|
912
|
+
ScalingPolicies: output.ScalingPolicies != null
|
|
954
913
|
? deserializeAws_json1_1ScalingPolicies(output.ScalingPolicies, context)
|
|
955
914
|
: undefined,
|
|
956
915
|
};
|
|
@@ -958,7 +917,7 @@ const deserializeAws_json1_1DescribeScalingPoliciesResponse = (output, context)
|
|
|
958
917
|
const deserializeAws_json1_1DescribeScheduledActionsResponse = (output, context) => {
|
|
959
918
|
return {
|
|
960
919
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
961
|
-
ScheduledActions: output.ScheduledActions
|
|
920
|
+
ScheduledActions: output.ScheduledActions != null
|
|
962
921
|
? deserializeAws_json1_1ScheduledActions(output.ScheduledActions, context)
|
|
963
922
|
: undefined,
|
|
964
923
|
};
|
|
@@ -1013,9 +972,7 @@ const deserializeAws_json1_1PredefinedMetricSpecification = (output, context) =>
|
|
|
1013
972
|
};
|
|
1014
973
|
const deserializeAws_json1_1PutScalingPolicyResponse = (output, context) => {
|
|
1015
974
|
return {
|
|
1016
|
-
Alarms: output.Alarms
|
|
1017
|
-
? deserializeAws_json1_1Alarms(output.Alarms, context)
|
|
1018
|
-
: undefined,
|
|
975
|
+
Alarms: output.Alarms != null ? deserializeAws_json1_1Alarms(output.Alarms, context) : undefined,
|
|
1019
976
|
PolicyARN: (0, smithy_client_1.expectString)(output.PolicyARN),
|
|
1020
977
|
};
|
|
1021
978
|
};
|
|
@@ -1027,7 +984,7 @@ const deserializeAws_json1_1RegisterScalableTargetResponse = (output, context) =
|
|
|
1027
984
|
};
|
|
1028
985
|
const deserializeAws_json1_1ScalableTarget = (output, context) => {
|
|
1029
986
|
return {
|
|
1030
|
-
CreationTime: output.CreationTime
|
|
987
|
+
CreationTime: output.CreationTime != null
|
|
1031
988
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1032
989
|
: undefined,
|
|
1033
990
|
MaxCapacity: (0, smithy_client_1.expectInt32)(output.MaxCapacity),
|
|
@@ -1036,9 +993,7 @@ const deserializeAws_json1_1ScalableTarget = (output, context) => {
|
|
|
1036
993
|
RoleARN: (0, smithy_client_1.expectString)(output.RoleARN),
|
|
1037
994
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1038
995
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
1039
|
-
SuspendedState: output.SuspendedState
|
|
1040
|
-
? deserializeAws_json1_1SuspendedState(output.SuspendedState, context)
|
|
1041
|
-
: undefined,
|
|
996
|
+
SuspendedState: output.SuspendedState != null ? deserializeAws_json1_1SuspendedState(output.SuspendedState, context) : undefined,
|
|
1042
997
|
};
|
|
1043
998
|
};
|
|
1044
999
|
const deserializeAws_json1_1ScalableTargetAction = (output, context) => {
|
|
@@ -1075,15 +1030,11 @@ const deserializeAws_json1_1ScalingActivity = (output, context) => {
|
|
|
1075
1030
|
Cause: (0, smithy_client_1.expectString)(output.Cause),
|
|
1076
1031
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
1077
1032
|
Details: (0, smithy_client_1.expectString)(output.Details),
|
|
1078
|
-
EndTime: output.EndTime
|
|
1079
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
1080
|
-
: undefined,
|
|
1033
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
1081
1034
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1082
1035
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1083
1036
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
1084
|
-
StartTime: output.StartTime
|
|
1085
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
1086
|
-
: undefined,
|
|
1037
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
1087
1038
|
StatusCode: (0, smithy_client_1.expectString)(output.StatusCode),
|
|
1088
1039
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1089
1040
|
};
|
|
@@ -1101,10 +1052,8 @@ const deserializeAws_json1_1ScalingPolicies = (output, context) => {
|
|
|
1101
1052
|
};
|
|
1102
1053
|
const deserializeAws_json1_1ScalingPolicy = (output, context) => {
|
|
1103
1054
|
return {
|
|
1104
|
-
Alarms: output.Alarms
|
|
1105
|
-
|
|
1106
|
-
: undefined,
|
|
1107
|
-
CreationTime: output.CreationTime !== undefined && output.CreationTime !== null
|
|
1055
|
+
Alarms: output.Alarms != null ? deserializeAws_json1_1Alarms(output.Alarms, context) : undefined,
|
|
1056
|
+
CreationTime: output.CreationTime != null
|
|
1108
1057
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1109
1058
|
: undefined,
|
|
1110
1059
|
PolicyARN: (0, smithy_client_1.expectString)(output.PolicyARN),
|
|
@@ -1113,35 +1062,30 @@ const deserializeAws_json1_1ScalingPolicy = (output, context) => {
|
|
|
1113
1062
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1114
1063
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1115
1064
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
1116
|
-
StepScalingPolicyConfiguration: output.StepScalingPolicyConfiguration
|
|
1065
|
+
StepScalingPolicyConfiguration: output.StepScalingPolicyConfiguration != null
|
|
1117
1066
|
? deserializeAws_json1_1StepScalingPolicyConfiguration(output.StepScalingPolicyConfiguration, context)
|
|
1118
1067
|
: undefined,
|
|
1119
|
-
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration
|
|
1120
|
-
output.TargetTrackingScalingPolicyConfiguration !== null
|
|
1068
|
+
TargetTrackingScalingPolicyConfiguration: output.TargetTrackingScalingPolicyConfiguration != null
|
|
1121
1069
|
? deserializeAws_json1_1TargetTrackingScalingPolicyConfiguration(output.TargetTrackingScalingPolicyConfiguration, context)
|
|
1122
1070
|
: undefined,
|
|
1123
1071
|
};
|
|
1124
1072
|
};
|
|
1125
1073
|
const deserializeAws_json1_1ScheduledAction = (output, context) => {
|
|
1126
1074
|
return {
|
|
1127
|
-
CreationTime: output.CreationTime
|
|
1075
|
+
CreationTime: output.CreationTime != null
|
|
1128
1076
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationTime)))
|
|
1129
1077
|
: undefined,
|
|
1130
|
-
EndTime: output.EndTime
|
|
1131
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime)))
|
|
1132
|
-
: undefined,
|
|
1078
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
1133
1079
|
ResourceId: (0, smithy_client_1.expectString)(output.ResourceId),
|
|
1134
1080
|
ScalableDimension: (0, smithy_client_1.expectString)(output.ScalableDimension),
|
|
1135
|
-
ScalableTargetAction: output.ScalableTargetAction
|
|
1081
|
+
ScalableTargetAction: output.ScalableTargetAction != null
|
|
1136
1082
|
? deserializeAws_json1_1ScalableTargetAction(output.ScalableTargetAction, context)
|
|
1137
1083
|
: undefined,
|
|
1138
1084
|
Schedule: (0, smithy_client_1.expectString)(output.Schedule),
|
|
1139
1085
|
ScheduledActionARN: (0, smithy_client_1.expectString)(output.ScheduledActionARN),
|
|
1140
1086
|
ScheduledActionName: (0, smithy_client_1.expectString)(output.ScheduledActionName),
|
|
1141
1087
|
ServiceNamespace: (0, smithy_client_1.expectString)(output.ServiceNamespace),
|
|
1142
|
-
StartTime: output.StartTime
|
|
1143
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime)))
|
|
1144
|
-
: undefined,
|
|
1088
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
1145
1089
|
Timezone: (0, smithy_client_1.expectString)(output.Timezone),
|
|
1146
1090
|
};
|
|
1147
1091
|
};
|
|
@@ -1180,7 +1124,7 @@ const deserializeAws_json1_1StepScalingPolicyConfiguration = (output, context) =
|
|
|
1180
1124
|
Cooldown: (0, smithy_client_1.expectInt32)(output.Cooldown),
|
|
1181
1125
|
MetricAggregationType: (0, smithy_client_1.expectString)(output.MetricAggregationType),
|
|
1182
1126
|
MinAdjustmentMagnitude: (0, smithy_client_1.expectInt32)(output.MinAdjustmentMagnitude),
|
|
1183
|
-
StepAdjustments: output.StepAdjustments
|
|
1127
|
+
StepAdjustments: output.StepAdjustments != null
|
|
1184
1128
|
? deserializeAws_json1_1StepAdjustments(output.StepAdjustments, context)
|
|
1185
1129
|
: undefined,
|
|
1186
1130
|
};
|
|
@@ -1194,11 +1138,11 @@ const deserializeAws_json1_1SuspendedState = (output, context) => {
|
|
|
1194
1138
|
};
|
|
1195
1139
|
const deserializeAws_json1_1TargetTrackingScalingPolicyConfiguration = (output, context) => {
|
|
1196
1140
|
return {
|
|
1197
|
-
CustomizedMetricSpecification: output.CustomizedMetricSpecification
|
|
1141
|
+
CustomizedMetricSpecification: output.CustomizedMetricSpecification != null
|
|
1198
1142
|
? deserializeAws_json1_1CustomizedMetricSpecification(output.CustomizedMetricSpecification, context)
|
|
1199
1143
|
: undefined,
|
|
1200
1144
|
DisableScaleIn: (0, smithy_client_1.expectBoolean)(output.DisableScaleIn),
|
|
1201
|
-
PredefinedMetricSpecification: output.PredefinedMetricSpecification
|
|
1145
|
+
PredefinedMetricSpecification: output.PredefinedMetricSpecification != null
|
|
1202
1146
|
? deserializeAws_json1_1PredefinedMetricSpecification(output.PredefinedMetricSpecification, context)
|
|
1203
1147
|
: undefined,
|
|
1204
1148
|
ScaleInCooldown: (0, smithy_client_1.expectInt32)(output.ScaleInCooldown),
|
|
@@ -1273,5 +1217,4 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1273
1217
|
if (data["__type"] !== undefined) {
|
|
1274
1218
|
return sanitizeErrorCode(data["__type"]);
|
|
1275
1219
|
}
|
|
1276
|
-
return "";
|
|
1277
1220
|
};
|