# ConcreteWidget

A real CloudWatch widget that has its own fixed size and remembers its position.

This is in contrast to other widgets which exist for layout purposes.

Implements: [IWidget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.IWidget.html)
Superclass of: [AlarmStatusWidget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.AlarmStatusWidget.html), [AlarmWidget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.AlarmWidget.html), [CustomWidget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.CustomWidget.html), [GaugeWidget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.GaugeWidget.html), GraphWidget, LogQueryWidget, SingleValueWidget, TableWidget, TextWidget

- Source: [`aws-cloudwatch/lib/widget.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-cloudwatch/lib/widget.ts#L51)
- Type last changed: v2.93.0 · 23 Aug 2023

## Initializer

TypeScript:

```ts
new ConcreteWidget(width: number, height: number)
```

Python:

```python
ConcreteWidget(width: int | float, height: int | float)
```

Java:

```java
new ConcreteWidget(Number width, Number height)
```

C# / .NET:

```csharp
new ConcreteWidget(double width, double height)
```

Golang:

```go
NewConcreteWidget(Width *float64, Height *float64)
```

## Properties

- `height`: number — The amount of vertical grid units the widget will take up.

- `warnings`: string[] — Any warnings that are produced as a result of putting together this widget.

- `warningsV2`: { [key: string]: string } — Any warnings that are produced as a result of putting together this widget.

- `width`: number — The amount of horizontal grid units the widget will take up.

## Methods

- `position(x: number, y: number): void` — Place the widget at a given position.

- `toJson(): any[]` — Return the widget JSON for use in the dashboard.
