I didn't manage to find any examples of how to set integration responses for Lambda Integration
Here I have few lines of code to put you into picture
export class TestStack extends cdk.Stack {
constructor(scope: cdk.Construct, id: string, props?: cdk.StackProps) {
super(scope, id, props);
const testHandler = new lambda.Function(this, 'TestHandler', {
runtime: lambda.Runtime.NODEJS_14_X,
code: lambda.Code.fromAsset('lambda'),
handler: 'hello.handler'
})
const api = new apigw.RestApi(this, 'books', {
restApiName: "Books service",
description: "This service serves books."
});
const integration = new apigw.LambdaIntegration(testHandler, {
proxy: false,
allowTestInvoke: true,
})
api.root.addMethod('GET', integration)
}
}
Here I don't see appropriate place where I need to provide integration responses
❓ Guidance Question
The Question
Environment
Other information
I didn't manage to find any examples of how to set integration responses for Lambda Integration
Here I have few lines of code to put you into picture
Here I don't see appropriate place where I need to provide integration responses