Color
- class aws_cdk.aws_cloudwatch.Color(*args: Any, **kwargs)
Bases:
object
A set of standard colours that can be used in annotations in a GraphWidget.
- ExampleMetadata:
infused
Example:
# dashboard: cloudwatch.Dashboard dashboard.add_widgets(cloudwatch.GraphWidget( # ... left_annotations=[cloudwatch.HorizontalAnnotation(value=1800, label=Duration.minutes(30).to_human_string(), color=cloudwatch.Color.RED), cloudwatch.HorizontalAnnotation(value=3600, label="1 hour", color="#2ca02c") ], vertical_annotations=[cloudwatch.VerticalAnnotation(date="2022-10-19T00:00:00Z", label="Deployment", color=cloudwatch.Color.RED) ] ))
Attributes
- BLUE = '#1f77b4'
- BROWN = '#8c564b'
- GREEN = '#2ca02c'
- GREY = '#7f7f7f'
- ORANGE = '#ff7f0e'
- PINK = '#e377c2'
- PURPLE = '#9467bd'
- RED = '#d62728'