@baselime/cdk
Version:
Define your observability as code using the AWS CDK
18 lines (17 loc) • 585 B
TypeScript
import { CfnResource } from "aws-cdk-lib";
import { QueryProps } from "../types/query";
import { AlertProps } from "../types/alert";
/**
*
*/
export declare class Query<TKey extends string> extends CfnResource {
id: string;
props: QueryProps<TKey>;
constructor(id: string, props: QueryProps<TKey>);
addAlert(alert: ChangeFields<AlertProps<TKey>, {
parameters: Omit<AlertProps<TKey>['parameters'], "query">;
}>): void;
addFilters(filters: QueryProps<string>["parameters"]["filters"]): void;
}
type ChangeFields<T, R> = Omit<T, keyof R> & R;
export {};