YAxisProps

class aws_cdk.aws_cloudwatch.YAxisProps(*, label=None, max=None, min=None, show_units=None)

Bases: object

Properties for a Y-Axis.

Parameters
  • label (Optional[str]) – The label. Default: - No label

  • max (Union[int, float, None]) – The max value. Default: - No maximum value

  • min (Union[int, float, None]) – The min value. Default: 0

  • show_units (Optional[bool]) – Whether to show units. Default: true

ExampleMetadata

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_cloudwatch as cloudwatch

y_axis_props = cloudwatch.YAxisProps(
    label="label",
    max=123,
    min=123,
    show_units=False
)

Attributes

label

The label.

Default
  • No label

Return type

Optional[str]

max

The max value.

Default
  • No maximum value

Return type

Union[int, float, None]

min

The min value.

Default

0

Return type

Union[int, float, None]

show_units

Whether to show units.

Default

true

Return type

Optional[bool]