Slide 12
Slide 12 text
12
カスタムAPIも爆速
API Gatewayと絡めてカスタムAPIの作成も
爆速でできた const lambdaIntegration = new LambdaIntegration(lambda);
const apigw = new RestApi(this, "apigw", {
restApiName: "apigw",
deployOptions: {
loggingLevel: MethodLoggingLevel.INFO,
dataTraceEnabled: true,
metricsEnabled: true,
},
defaultCorsPreflightOptions: {
allowOrigins: Cors.ALL_ORIGINS,
allowMethods: Cors.ALL_METHODS,
allowHeaders: Cors.DEFAULT_HEADERS,
statusCode: 200,
},
endpointTypes: [EndpointType.REGIONAL],
cloudWatchRole: true
});