cdk-monitoring-constructs
Version:
[](https://badge.fury.io/js/cdk-monitoring-constructs) [](https://m
25 lines (24 loc) • 809 B
TypeScript
import { TextWidget } from "aws-cdk-lib/aws-cloudwatch";
export interface KeyValue {
readonly key: string;
readonly value: string;
}
/**
* A widget that displays key-value pairs in a table format.
*/
export declare class KeyValueTableWidget extends TextWidget {
/**
* Creates a key-value table widget.
* @param data An array of key-value pairs as objects
*/
constructor(data: KeyValue[]);
/**
* Creates a key-value table widget.
* @param data An array of key-value pairs as tuples
*
* @deprecated Use the KeyValue[] constructor instead. This tuple format is not compatible with JSII 5.x and will be removed in the next major version.
*/
constructor(data: [string, string][]);
private static normalizeData;
private static toMarkdown;
}