UNPKG

cdk-monitoring-constructs

Version:

[![NPM version](https://badge.fury.io/js/cdk-monitoring-constructs.svg)](https://badge.fury.io/js/cdk-monitoring-constructs) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.cdklabs/cdkmonitoringconstructs/badge.svg)](https://m

25 lines (24 loc) 809 B
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; }