Skip to content

Instantly share code, notes, and snippets.

@kevprice83
Created May 16, 2016 10:07
Show Gist options
  • Save kevprice83/2fcbf7bc24635a91dce6be0f938e1dd6 to your computer and use it in GitHub Desktop.
Save kevprice83/2fcbf7bc24635a91dce6be0f938e1dd6 to your computer and use it in GitHub Desktop.
"x-amazon-apigateway-auth": {
"type": "none"
},
"x-amazon-apigateway-integration": {
"type": "AWS",
"uri": "arn:aws:apigateway:REGION:lambda:path/2015-03-31/functions/arn:aws:lambda:REGION:ACCT_ID:function:FUNCTION_NAME/invocations",
"credentials": "arn:aws:iam::ACCT_ID:role/lambda_gateway_execution",
"httpMethod": "POST",
"requestTemplates": {
"application/json": "{\"user_key\":\"$input.params('user_key')\",\"resourcePath\": \"$context.resourcePath\",\"httpMethod\": \"$context.httpMethod\",\"body\": $input.json('$')}"
},
"requestParameters": {},
"cacheNamespace": "cache-namespace",
"cacheKeyParameters": [],
"responses": {
"default": {
"statusCode": "200",
"responseParameters": {},
"responseTemplates": {
"application/json": null
}
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment