Skip to content

Commit

Permalink
docs(aws-lambda) Add is_proxy_integration
Browse files Browse the repository at this point in the history
Closes #836

Co-authored-by: RomainDeSaJardim <[email protected]>
  • Loading branch information
kikito and romdsj committed Feb 18, 2019
1 parent cc5bc99 commit 207dcaf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/_hub/kong-inc/aws-lambda/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ params:
default: "`false`"
description: |
An optional value that defines whether the original HTTP request URI is to be sent in the `request_uri` field of the JSON-encoded request. Request URI arguments (if any) will be sent in the separate `request_uri_args` field of the JSON body.
- name: is_proxy_integration
required: false
default: "`false`"
description: |
An optional value that defines whether the response format to receive from the Lambda to [this format](https://docs.aws.amazon.com/apigateway/latest/developerguide/set-up-lambda-proxy-integrations.html#api-gateway-simple-proxy-for-lambda-output-format). Note that the parameter `isBase64Encoded` is not implemented.
extra: |
**Reminder**: curl by default sends payloads with an
Expand Down Expand Up @@ -182,6 +188,10 @@ from being executed. We are planning to remove this limitation in the future.
```python
import json
def lambda_handler(event, context):
"""
If is_proxy_integration is set to true :
jsonbody='''{"statusCode": 200, "body": {"response": "yes"}}'''
"""
jsonbody='''{"response": "yes"}'''
return json.loads(jsonbody)
```
Expand Down

0 comments on commit 207dcaf

Please sign in to comment.