Spacer

class aws_cdk.aws_cloudwatch.Spacer(*, height=None, width=None)

Bases: object

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

ExampleMetadata

fixture=_generated

Example:

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

spacer = cloudwatch.Spacer(
    height=123,
    width=123
)
Parameters
  • height (Union[int, float, None]) – Height of the spacer. Default: : 1

  • width (Union[int, float, None]) – Width of the spacer. Default: 1

Methods

position(_x, _y)

Place the widget at a given position.

Parameters
  • _x (Union[int, float]) –

  • _y (Union[int, float]) –

Return type

None

to_json()

Return the widget JSON for use in the dashboard.

Return type

List[Any]

Attributes

height

The amount of vertical grid units the widget will take up.

Return type

Union[int, float]

width

The amount of horizontal grid units the widget will take up.

Return type

Union[int, float]