class Color
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CloudWatch.Color |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudwatch#Color |
Java | software.amazon.awscdk.services.cloudwatch.Color |
Python | aws_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;
dashboard.addWidgets(new cloudwatch.GraphWidget({
// ...
leftAnnotations: [
{ value: 1800, label: Duration.minutes(30).toHumanString(), color: cloudwatch.Color.RED, },
{ value: 3600, label: '1 hour', color: '#2ca02c', }
],
verticalAnnotations: [
{ date: '2022-10-19T00:00:00Z', label: 'Deployment', color: cloudwatch.Color.RED, }
]
}));
Properties
Name | Type | Description |
---|---|---|
static BLUE | string | blue - hex #1f77b4. |
static BROWN | string | brown - hex #8c564b. |
static GREEN | string | green - hex #2ca02c. |
static GREY | string | grey - hex #7f7f7f. |
static ORANGE | string | orange - hex #ff7f0e. |
static PINK | string | pink - hex #e377c2. |
static PURPLE | string | purple - hex #9467bd. |
static RED | string | red - 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.