in lib/lex_validate_lambda-stack.ts [25:41]
constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const lexlambdaFunction = new lambda.Function(this, 'LexLambdaHandler', {
code: lambda.Code.fromAsset('lex-validate-lambda'),
handler:'index.handler',
functionName: 'lex-validate-lambda',
runtime: lambda.Runtime.NODEJS_14_X,
memorySize:1024,
environment:{
"aws_appsync_graphqlEndpoint": "YOUR APPSYNC ENDPOINT",
"aws_appsync_apiKey": "YOUR APPSYNC APIKEY",
"region": "YOUR REGION"
},
});
}