# Spacer

A widget that doesn't display anything but takes up space.

Implements: [IWidget](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.IWidget.html)

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

## 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';
const spacer = new cloudwatch.Spacer(/* all optional props */ {
  height: 123,
  width: 123,
});
```

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

spacer = cloudwatch.Spacer(
    height=123,
    width=123
)
```

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.*;

Spacer spacer = Spacer.Builder.create()
        .height(123)
        .width(123)
        .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 spacer = new Spacer(new SpacerProps {
    Height = 123,
    Width = 123
});
```

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"

spacer := awscdk.Aws_cloudwatch.NewSpacer(&SpacerProps{
	Height: jsii.Number(123),
	Width: jsii.Number(123),
})
```

## Initializer

TypeScript:

```ts
new Spacer(props?: SpacerProps)
```

Python:

```python
Spacer(props: typing.Optional[SpacerProps] = None)
```

Java:

```java
new Spacer(SpacerProps props)
```

C# / .NET:

```csharp
new Spacer(SpacerProps? props = null)
```

Golang:

```go
NewSpacer(Props SpacerProps)
```

## Properties

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

- `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.
