aws-cdk-lib.aws_cloudwatch.Color

class Color

LanguageType name
.NETAmazon.CDK.AWS.CloudWatch.Color
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#Color
Javasoftware.amazon.awscdk.services.cloudwatch.Color
Pythonaws_cdk.aws_cloudwatch.Color
TypeScript (source)aws-cdk-lib » aws_cloudwatch » Color

A set of standard colours that can be used in annotations in a GraphWidget.

Example

declare const dashboard: cloudwatch.Dashboard;
declare const executionCountMetric: cloudwatch.Metric;
declare const errorCountMetric: cloudwatch.Metric;

dashboard.addWidgets(new cloudwatch.GraphWidget({
  title: "Executions vs error rate",

  left: [executionCountMetric],

  right: [errorCountMetric.with({
    statistic: cloudwatch.Stats.AVERAGE,
    label: "Error rate",
    color: cloudwatch.Color.GREEN,
  })]
}));

Properties

NameTypeDescription
static BLUEstringblue - hex #1f77b4.
static BROWNstringbrown - hex #8c564b.
static GREENstringgreen - hex #2ca02c.
static GREYstringgrey - hex #7f7f7f.
static ORANGEstringorange - hex #ff7f0e.
static PINKstringpink - hex #e377c2.
static PURPLEstringpurple - hex #9467bd.
static REDstringred - hex #d62728.

static BLUE

Type: string

blue - hex #1f77b4.


static BROWN

Type: string

brown - hex #8c564b.


static GREEN

Type: string

green - hex #2ca02c.


static GREY

Type: string

grey - hex #7f7f7f.


static ORANGE

Type: string

orange - hex #ff7f0e.


static PINK

Type: string

pink - hex #e377c2.


static PURPLE

Type: string

purple - hex #9467bd.


static RED

Type: string

red - hex #d62728.