interface SizeConversionOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.SizeConversionOptions |
Java | software.amazon.awscdk.core.SizeConversionOptions |
Python | aws_cdk.core.SizeConversionOptions |
TypeScript (source) | @aws-cdk/core » SizeConversionOptions |
Options for how to convert time to a different unit.
Example
Size.mebibytes(2).toKibibytes() // yields 2048
Size.kibibytes(2050).toMebibytes({ rounding: SizeRoundingBehavior.FLOOR }) // yields 2
Properties
Name | Type | Description |
---|---|---|
rounding? | Size | How conversions should behave when it encounters a non-integer result. |
rounding?
Type:
Size
(optional, default: SizeRoundingBehavior.FAIL)
How conversions should behave when it encounters a non-integer result.