LegendPosition

class aws_cdk.aws_cloudwatch.LegendPosition(value)

Bases: Enum

The position of the legend on a GraphWidget.

ExampleMetadata

infused

Example:

# dashboard: cloudwatch.Dashboard


dashboard.add_widgets(cloudwatch.GraphWidget(
    # ...

    legend_position=cloudwatch.LegendPosition.RIGHT
))

Attributes

BOTTOM

Legend appears below the graph (default).

HIDDEN

Add shading below the annotation.

RIGHT

Add shading above the annotation.