HorizontalAnnotation

class aws_cdk.aws_cloudwatch.HorizontalAnnotation(*, value, color=None, fill=None, label=None, visible=None)

Bases: object

__init__(*, value, color=None, fill=None, label=None, visible=None)

Horizontal annotation to be added to a graph.

Parameters
  • value (Union[int, float]) – The value of the annotation.

  • color (Optional[str]) – Hex color code to be used for the annotation. Default: Automatic color

  • fill (Optional[Shading]) – Add shading above or below the annotation. Default: No shading

  • label (Optional[str]) – Label for the annotation. Default: No label

  • visible (Optional[bool]) – Whether the annotation is visible. Default: true

Attributes

color

Hex color code to be used for the annotation.

default :default: Automatic color

Return type

Optional[str]

fill

Add shading above or below the annotation.

default :default: No shading

Return type

Optional[Shading]

label

Label for the annotation.

default :default: No label

Return type

Optional[str]

value

The value of the annotation.

Return type

Union[int, float]

visible

Whether the annotation is visible.

default :default: true

Return type

Optional[bool]