# Dimension

Metric dimension.

- Source: [`aws-cloudwatch/lib/metric-types.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-cloudwatch/lib/metric-types.ts#L51)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';

declare const value: any;
const dimension: cloudwatch.Dimension = {
  name: 'name',
  value: value,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudwatch as cloudwatch

# value: Any

dimension = cloudwatch.Dimension(
    name="name",
    value=value
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;

Object value;

Dimension dimension = Dimension.builder()
        .name("name")
        .value(value)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;

var value;

var dimension = new Dimension {
    Name = "name",
    Value = value
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var value interface{}

dimension := &Dimension{
	Name: jsii.String("name"),
	Value: value,
}
```

## Properties

- `name`: string (required) — Name of the dimension.

- `value`: any (required) — Value of the dimension.
