Skip to content

Commit 8cd16ef

Browse files
Added Example to the readme.
1 parent 8a7de74 commit 8cd16ef

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,24 @@ custom:
427427

428428
The object keys correspond to the API Gateway [integration response](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration-integrationresponse.html#cfn-apigateway-method-integration-integrationresponse-responseparameters) object.
429429

430+
##### Content Handling and Pass Through Behaviour customization
431+
432+
If you want to work with binary fata, you can not specify `contentHandling` and `PassThrough` inside the `request` object.
433+
434+
```yml
435+
custom:
436+
apiGatewayServiceProxies:
437+
- sns:
438+
path: /sns
439+
method: post
440+
topicName: { 'Fn::GetAtt': ['SNSTopic', 'TopicName'] }
441+
request:
442+
contentHandling: CONVERT_TO_TEXT
443+
passThrough: WHEN_NO_TEMPLATES
444+
```
445+
446+
The allowed values correspond with the API Gateway Method integration for [ContentHandling](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-contenthandling) and [PassthroughBehavior](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apitgateway-method-integration.html#cfn-apigateway-method-integration-passthroughbehavior)
447+
430448
### DynamoDB
431449

432450
Sample syntax for DynamoDB proxy in `serverless.yml`. Currently, the supported [DynamoDB Operations](https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Operations.html) are `PutItem`, `GetItem` and `DeleteItem`.

0 commit comments

Comments
 (0)