forked from getndazn/dazn-lambda-powertools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
30 lines (26 loc) · 833 Bytes
/
index.d.ts
File metadata and controls
30 lines (26 loc) · 833 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import middy from "@middy/core";
import { Callback, Context } from "aws-lambda";
export * from "@dazn/lambda-powertools-middleware-correlation-ids";
declare enum FILTERING_MODE {
BLACKLIST = "BLACKLIST",
WHITELIST = "WHITELIST",
}
declare namespace dazn__lambda_powertools_pattern_obfuscate {
const FILTERING_MODE: FILTERING_MODE;
function obfuscaterPattern<
TEvent = any,
TResult = any,
TContext extends Context = Context,
TErr = Error
>(
obfuscationFilters: string[],
f: (
event: TEvent,
context: TContext,
callback: Callback<TResult>
) => void | Promise<TResult>,
filterOnAfter?: boolean,
filteringMode?: FILTERING_MODE
): middy.MiddyfiedHandler<TEvent, TResult, TErr>;
}
export default dazn__lambda_powertools_pattern_obfuscate;