Как облачно сформировать ресурс шлюза API без интеграции лямбда-прокси,
Где нужно указать, что в шаблоне sam я использую шаблон sam для создания интеграции шлюза API с функцией лямбда для узлаjs application
Пожалуйста, найдите код ниже
AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Globals:
Api:
Cors: "'*'"
Description: A starter AWS Lambda function.....
Parameters:
ProjectId:
Type: String
Description: AWS CodeStar projectID used to associate new resources to team members
Environment:
Type: String
Description: AWS CodeStar projectID used to associate new resources to team members
Resources:
helloworld:
Type: AWS::Serverless::Function
Properties:
FunctionName: rlsc-helloworld
Handler: index.handler
Runtime: nodejs6.10
CodeUri: ./Lambda/testDeployLambda/
Description: A starter AWS Lambda function.
MemorySize: 128
Timeout: 3
Events:
ApiGateway:
Type: Api
Properties:
Path: /hello
Method: post
Как задать параметры, чтобы мой запрос на интеграцию должен был по умолчанию отключить использование Lambda proxy INtegration