mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
65 lines
1.5 KiB
JSON
65 lines
1.5 KiB
JSON
{
|
|
"name": "ModuleoneSimple",
|
|
"envVars": [],
|
|
"package": {
|
|
"optimize": {
|
|
"builder": "browserify",
|
|
"minify": true,
|
|
"ignore": [],
|
|
"exclude": [
|
|
"aws-sdk"
|
|
],
|
|
"includePaths": []
|
|
},
|
|
"excludePatterns": []
|
|
},
|
|
"plugins": [],
|
|
"cloudFormation": {
|
|
"lambda": {
|
|
"Function": {
|
|
"Type": "AWS::Lambda::Function",
|
|
"Properties": {
|
|
"Runtime": "nodejs",
|
|
"Handler": "modules/moduleone/simple/handler.handler",
|
|
"Role": {
|
|
"Ref": "aaLambdaRoleArn"
|
|
},
|
|
"Code": {
|
|
"S3Bucket": "",
|
|
"S3Key": ""
|
|
},
|
|
"Timeout": 6,
|
|
"MemorySize": 1024
|
|
}
|
|
}
|
|
},
|
|
"apiGateway": {
|
|
"Endpoint": {
|
|
"Type": "AWS::ApiGateway::Endpoint",
|
|
"Path": "users",
|
|
"Method": "GET",
|
|
"AuthorizationType": "none",
|
|
"ApiKeyRequired": false,
|
|
"RequestTemplates": {
|
|
"application/json": "{\"access_token\":\"$input.params('access_token')\",\"body\":\"$input.json('$')\"}"
|
|
},
|
|
"RequestParameters": {
|
|
"integration.request.querystring.integrationQueryParam": "method.request.querystring.access_token"
|
|
},
|
|
"Responses": {
|
|
"default": {
|
|
"statusCode": "200",
|
|
"responseParameters": {},
|
|
"responseModels": {},
|
|
"responseTemplates": {
|
|
"application/json": ""
|
|
}
|
|
},
|
|
"400": {
|
|
"statusCode": "400"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |