UNPKG

@faceteer/cdk

Version:

CDK 2.0 constructs and helpers that make composing a Lambda powered service easier.

8 lines (7 loc) 509 B
/** * Takes a route string, such as /users/{userId}/emails and removes non-alphanumeric characters, attempting to maintain string-uniqueness. * Since we DO want this to change if the actual route were to change, this addition of the "hash" in the logical id should be safe IN THIS CASE. * This just helps us avoid cases where you'd end up with the same logical id otherwise, like /foo/bar and /foobar or /foo/{bar}. * @param route */ export declare const routeToAlphaNumeric: (route: string) => string;