Created
May 28, 2023 21:34
-
-
Save maskaravivek/9759857ce20a0be6bc38f54355aa8bc8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { aws_lambda as lambda, Duration } from "aws-cdk-lib"; | |
| const preSignupLambda = new lambda.Function(this, `MyPreSignupLambda`, { | |
| functionName: `MyPreSignupLambda`, | |
| runtime: lambda.Runtime.NODEJS_14_X, | |
| handler: "index.handler", | |
| timeout: Duration.seconds(30), | |
| code: lambda.Code.fromAsset("lambda/preSignupHandler/"), | |
| environment: {}, | |
| initialPolicy: [cognitoPolicyStatement], | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment