@@ -103,6 +103,8 @@ import {
103
103
expectNumber as __expectNumber ,
104
104
expectString as __expectString ,
105
105
extendedEncodeURIComponent as __extendedEncodeURIComponent ,
106
+ handleFloat as __handleFloat ,
107
+ serializeFloat as __serializeFloat ,
106
108
} from "@aws-sdk/smithy-client" ;
107
109
import {
108
110
Endpoint as __Endpoint ,
@@ -192,7 +194,8 @@ export const serializeAws_restJson1CreateDeploymentStrategyCommand = async (
192
194
...( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) ,
193
195
...( input . FinalBakeTimeInMinutes !== undefined &&
194
196
input . FinalBakeTimeInMinutes !== null && { FinalBakeTimeInMinutes : input . FinalBakeTimeInMinutes } ) ,
195
- ...( input . GrowthFactor !== undefined && input . GrowthFactor !== null && { GrowthFactor : input . GrowthFactor } ) ,
197
+ ...( input . GrowthFactor !== undefined &&
198
+ input . GrowthFactor !== null && { GrowthFactor : __serializeFloat ( input . GrowthFactor ) } ) ,
196
199
...( input . GrowthType !== undefined && input . GrowthType !== null && { GrowthType : input . GrowthType } ) ,
197
200
...( input . Name !== undefined && input . Name !== null && { Name : input . Name } ) ,
198
201
...( input . ReplicateTo !== undefined && input . ReplicateTo !== null && { ReplicateTo : input . ReplicateTo } ) ,
@@ -1240,7 +1243,8 @@ export const serializeAws_restJson1UpdateDeploymentStrategyCommand = async (
1240
1243
...( input . Description !== undefined && input . Description !== null && { Description : input . Description } ) ,
1241
1244
...( input . FinalBakeTimeInMinutes !== undefined &&
1242
1245
input . FinalBakeTimeInMinutes !== null && { FinalBakeTimeInMinutes : input . FinalBakeTimeInMinutes } ) ,
1243
- ...( input . GrowthFactor !== undefined && input . GrowthFactor !== null && { GrowthFactor : input . GrowthFactor } ) ,
1246
+ ...( input . GrowthFactor !== undefined &&
1247
+ input . GrowthFactor !== null && { GrowthFactor : __serializeFloat ( input . GrowthFactor ) } ) ,
1244
1248
...( input . GrowthType !== undefined && input . GrowthType !== null && { GrowthType : input . GrowthType } ) ,
1245
1249
} ) ;
1246
1250
const { hostname, protocol = "https" , port } = await context . endpoint ( ) ;
@@ -1536,7 +1540,7 @@ export const deserializeAws_restJson1CreateDeploymentStrategyCommand = async (
1536
1540
contents . FinalBakeTimeInMinutes = __expectNumber ( data . FinalBakeTimeInMinutes ) ;
1537
1541
}
1538
1542
if ( data . GrowthFactor !== undefined && data . GrowthFactor !== null ) {
1539
- contents . GrowthFactor = __expectNumber ( data . GrowthFactor ) ;
1543
+ contents . GrowthFactor = __handleFloat ( data . GrowthFactor ) ;
1540
1544
}
1541
1545
if ( data . GrowthType !== undefined && data . GrowthType !== null ) {
1542
1546
contents . GrowthType = __expectString ( data . GrowthType ) ;
@@ -2473,13 +2477,13 @@ export const deserializeAws_restJson1GetDeploymentCommand = async (
2473
2477
contents . FinalBakeTimeInMinutes = __expectNumber ( data . FinalBakeTimeInMinutes ) ;
2474
2478
}
2475
2479
if ( data . GrowthFactor !== undefined && data . GrowthFactor !== null ) {
2476
- contents . GrowthFactor = __expectNumber ( data . GrowthFactor ) ;
2480
+ contents . GrowthFactor = __handleFloat ( data . GrowthFactor ) ;
2477
2481
}
2478
2482
if ( data . GrowthType !== undefined && data . GrowthType !== null ) {
2479
2483
contents . GrowthType = __expectString ( data . GrowthType ) ;
2480
2484
}
2481
2485
if ( data . PercentageComplete !== undefined && data . PercentageComplete !== null ) {
2482
- contents . PercentageComplete = __expectNumber ( data . PercentageComplete ) ;
2486
+ contents . PercentageComplete = __handleFloat ( data . PercentageComplete ) ;
2483
2487
}
2484
2488
if ( data . StartedAt !== undefined && data . StartedAt !== null ) {
2485
2489
contents . StartedAt = new Date ( data . StartedAt ) ;
@@ -2572,7 +2576,7 @@ export const deserializeAws_restJson1GetDeploymentStrategyCommand = async (
2572
2576
contents . FinalBakeTimeInMinutes = __expectNumber ( data . FinalBakeTimeInMinutes ) ;
2573
2577
}
2574
2578
if ( data . GrowthFactor !== undefined && data . GrowthFactor !== null ) {
2575
- contents . GrowthFactor = __expectNumber ( data . GrowthFactor ) ;
2579
+ contents . GrowthFactor = __handleFloat ( data . GrowthFactor ) ;
2576
2580
}
2577
2581
if ( data . GrowthType !== undefined && data . GrowthType !== null ) {
2578
2582
contents . GrowthType = __expectString ( data . GrowthType ) ;
@@ -3396,13 +3400,13 @@ export const deserializeAws_restJson1StartDeploymentCommand = async (
3396
3400
contents . FinalBakeTimeInMinutes = __expectNumber ( data . FinalBakeTimeInMinutes ) ;
3397
3401
}
3398
3402
if ( data . GrowthFactor !== undefined && data . GrowthFactor !== null ) {
3399
- contents . GrowthFactor = __expectNumber ( data . GrowthFactor ) ;
3403
+ contents . GrowthFactor = __handleFloat ( data . GrowthFactor ) ;
3400
3404
}
3401
3405
if ( data . GrowthType !== undefined && data . GrowthType !== null ) {
3402
3406
contents . GrowthType = __expectString ( data . GrowthType ) ;
3403
3407
}
3404
3408
if ( data . PercentageComplete !== undefined && data . PercentageComplete !== null ) {
3405
- contents . PercentageComplete = __expectNumber ( data . PercentageComplete ) ;
3409
+ contents . PercentageComplete = __handleFloat ( data . PercentageComplete ) ;
3406
3410
}
3407
3411
if ( data . StartedAt !== undefined && data . StartedAt !== null ) {
3408
3412
contents . StartedAt = new Date ( data . StartedAt ) ;
@@ -3543,13 +3547,13 @@ export const deserializeAws_restJson1StopDeploymentCommand = async (
3543
3547
contents . FinalBakeTimeInMinutes = __expectNumber ( data . FinalBakeTimeInMinutes ) ;
3544
3548
}
3545
3549
if ( data . GrowthFactor !== undefined && data . GrowthFactor !== null ) {
3546
- contents . GrowthFactor = __expectNumber ( data . GrowthFactor ) ;
3550
+ contents . GrowthFactor = __handleFloat ( data . GrowthFactor ) ;
3547
3551
}
3548
3552
if ( data . GrowthType !== undefined && data . GrowthType !== null ) {
3549
3553
contents . GrowthType = __expectString ( data . GrowthType ) ;
3550
3554
}
3551
3555
if ( data . PercentageComplete !== undefined && data . PercentageComplete !== null ) {
3552
- contents . PercentageComplete = __expectNumber ( data . PercentageComplete ) ;
3556
+ contents . PercentageComplete = __handleFloat ( data . PercentageComplete ) ;
3553
3557
}
3554
3558
if ( data . StartedAt !== undefined && data . StartedAt !== null ) {
3555
3559
contents . StartedAt = new Date ( data . StartedAt ) ;
@@ -3950,7 +3954,7 @@ export const deserializeAws_restJson1UpdateDeploymentStrategyCommand = async (
3950
3954
contents . FinalBakeTimeInMinutes = __expectNumber ( data . FinalBakeTimeInMinutes ) ;
3951
3955
}
3952
3956
if ( data . GrowthFactor !== undefined && data . GrowthFactor !== null ) {
3953
- contents . GrowthFactor = __expectNumber ( data . GrowthFactor ) ;
3957
+ contents . GrowthFactor = __handleFloat ( data . GrowthFactor ) ;
3954
3958
}
3955
3959
if ( data . GrowthType !== undefined && data . GrowthType !== null ) {
3956
3960
contents . GrowthType = __expectString ( data . GrowthType ) ;
@@ -4244,7 +4248,7 @@ const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async (
4244
4248
} ;
4245
4249
const data : any = parsedOutput . body ;
4246
4250
if ( data . Limit !== undefined && data . Limit !== null ) {
4247
- contents . Limit = __expectNumber ( data . Limit ) ;
4251
+ contents . Limit = __handleFloat ( data . Limit ) ;
4248
4252
}
4249
4253
if ( data . Measure !== undefined && data . Measure !== null ) {
4250
4254
contents . Measure = __expectString ( data . Measure ) ;
@@ -4253,7 +4257,7 @@ const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async (
4253
4257
contents . Message = __expectString ( data . Message ) ;
4254
4258
}
4255
4259
if ( data . Size !== undefined && data . Size !== null ) {
4256
- contents . Size = __expectNumber ( data . Size ) ;
4260
+ contents . Size = __handleFloat ( data . Size ) ;
4257
4261
}
4258
4262
return contents ;
4259
4263
} ;
@@ -4429,7 +4433,7 @@ const deserializeAws_restJson1DeploymentStrategy = (output: any, context: __Serd
4429
4433
DeploymentDurationInMinutes : __expectNumber ( output . DeploymentDurationInMinutes ) ,
4430
4434
Description : __expectString ( output . Description ) ,
4431
4435
FinalBakeTimeInMinutes : __expectNumber ( output . FinalBakeTimeInMinutes ) ,
4432
- GrowthFactor : __expectNumber ( output . GrowthFactor ) ,
4436
+ GrowthFactor : __handleFloat ( output . GrowthFactor ) ,
4433
4437
GrowthType : __expectString ( output . GrowthType ) ,
4434
4438
Id : __expectString ( output . Id ) ,
4435
4439
Name : __expectString ( output . Name ) ,
@@ -4457,9 +4461,9 @@ const deserializeAws_restJson1DeploymentSummary = (output: any, context: __Serde
4457
4461
DeploymentDurationInMinutes : __expectNumber ( output . DeploymentDurationInMinutes ) ,
4458
4462
DeploymentNumber : __expectNumber ( output . DeploymentNumber ) ,
4459
4463
FinalBakeTimeInMinutes : __expectNumber ( output . FinalBakeTimeInMinutes ) ,
4460
- GrowthFactor : __expectNumber ( output . GrowthFactor ) ,
4464
+ GrowthFactor : __handleFloat ( output . GrowthFactor ) ,
4461
4465
GrowthType : __expectString ( output . GrowthType ) ,
4462
- PercentageComplete : __expectNumber ( output . PercentageComplete ) ,
4466
+ PercentageComplete : __handleFloat ( output . PercentageComplete ) ,
4463
4467
StartedAt : output . StartedAt !== undefined && output . StartedAt !== null ? new Date ( output . StartedAt ) : undefined ,
4464
4468
State : __expectString ( output . State ) ,
4465
4469
} as any ;
0 commit comments