UNPKG

typed-serverless

Version:

Helps you write a consistent Serverless Framework configuration in TypeScript

17 lines (16 loc) 1.02 kB
/** * Serverless has a special logical id naming convention for the resources they manage. * So this function converts from our logical ids to the serverless ones. * * @see https://www.serverless.com/framework/docs/providers/aws/guide/resources/#override-aws-cloudformation-resource * @see https://github.com/serverless/serverless/blob/8d56d0e520db8068e89fa8d4d2bf4e64b0acd97b/lib/plugins/aws/lib/naming.js#L583 */ export declare function getServerlessAwsResourceName<T extends string = string>(resourceName: T): T; /** * Serverless has a special logical id naming convention for lambdas. * So this function converts from our logical ids to the serverless ones. * * @see https://www.serverless.com/framework/docs/providers/aws/guide/resources/#override-aws-cloudformation-resource * @see https://github.com/serverless/serverless/blob/8d56d0e520db8068e89fa8d4d2bf4e64b0acd97b/lib/plugins/aws/lib/naming.js#L146 */ export declare function getServerlessAwsFunctionLogicalId<T extends string = string>(id: T): T;