SizeRoundingBehavior

class aws_cdk.core.SizeRoundingBehavior

Bases: enum.Enum

Rounding behaviour when converting between units of Size.

Attributes

FAIL

Fail the conversion if the result is not an integer.

FLOOR

If the result is not an integer, round it to the closest integer less than the result.

NONE

Don’t round.

Return even if the result is a fraction.

Attributes

FAIL = 'FAIL'

Fail the conversion if the result is not an integer.

FLOOR = 'FLOOR'

If the result is not an integer, round it to the closest integer less than the result.

NONE = 'NONE'

Don’t round.

Return even if the result is a fraction.