Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* createApiGatewayForLambda is creating a Rest API Gateway to access to your lambda function
* @param id - CDK id for this lambda
* @param handler - Lambda function to call
* @param description - Description of this endpoint
*/
createApiGatewayForLambda(id: string, handler: lambda.Function, description: string): LambdaRestApi{
return new LambdaRestApi(this, id, {
handler,
description
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment