Widget - AWS Billing and Cost Management

Widget

A configurable visualization component within a dashboard that displays specific cost and usage metrics. Each widget can show data as charts or tables and includes settings for data querying, filtering, and visual presentation.

Contents

configs

An array of configurations that define the data queries and display settings for the widget.

Type: Array of WidgetConfig objects

Array Members: Minimum number of 1 item. Maximum number of 2 items.

Required: Yes

title

The title of the widget.

Type: String

Length Constraints: Minimum length of 2. Maximum length of 50.

Pattern: (?!.* {2})[a-zA-Z0-9_-][ a-zA-Z0-9_-]*[a-zA-Z0-9_-]

Required: Yes

description

A description of the widget's purpose or the data it displays.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 200.

Pattern: (?!.* {2})[ a-zA-Z0-9.,!?;:@#$%&\-_/\\]*

Required: No

height

The height of the widget in row spans. The dashboard layout consists of a grid system.

Type: Integer

Valid Range: Minimum value of 4. Maximum value of 10.

Required: No

horizontalOffset

Specifies the starting column position of the widget in the dashboard's grid layout. Used to control widget placement.

Type: Integer

Required: No

width

The width of the widget in column spans. The dashboard layout consists of a grid system.

Type: Integer

Valid Range: Minimum value of 2. Maximum value of 6.

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: