UNPKG

871 BTypeScriptView Raw
1import { EventPattern } from './event-pattern';
2/**
3 * Merge the `src` event pattern into the `dest` event pattern by adding all
4 * values from `src` into the fields in `dest`.
5 *
6 * See `rule.addEventPattern` for details.
7 */
8export declare function mergeEventPattern(dest: any, src: any): any;
9/**
10 * Whether two string probably contain the same environment dimension (region or account)
11 *
12 * Used to compare either accounts or regions, and also returns true if both
13 * are unresolved (in which case both are expted to be "current region" or "current account").
14 * @internal
15 */
16export declare function sameEnvDimension(dim1: string, dim2: string): boolean;
17/**
18 * Transform an eventPattern object into a valid Event Rule Pattern
19 * by changing detailType into detail-type when present.
20 */
21export declare function renderEventPattern(eventPattern: EventPattern): any;