AWS CDK user pool authorizer
问题 I'm trying to create an API gateway using the AWS-CDK and protect the REST endpoints with a Cognito user pool authorizer. I cannot find any examples how one would do this. I thought it should look something like this but maybe the methods I need do not exist? const cdk = require('@aws-cdk/cdk'); const lambda = require('@aws-cdk/aws-lambda'); const apigw = require('@aws-cdk/aws-apigateway'); const path = require('path'); // // Define the stack: class MyStack extends cdk.Stack { constructor