I have configured API gateway as a Kinesis proxy as described in Amazon’s tutorial for putting record into Kinesis stream.
The HTTP headers for integration request are:
- Content-Type is mapped to application/x-amz-json-1.1
The body mapping template for content-type application/json looks like:
#set($event = "{
""rows"": ""$input.json('$')"",
""uuid"": ""$input.params('uuid')"",
}")
{
"StreamName": "$input.params('stream-name')",
"Data": "$util.base64Encode($event)",
"PartitionKey": "$input.params('$partition-key')"
}
i am getting an internal server error when send a post request.