【发布时间】:2017-07-18 11:07:27
【问题描述】:
我已将 API 网关配置为 Kinesis 代理,如 Amazon 将记录放入 Kinesis 流的教程中所述。
集成请求的 HTTP 标头是:
- Content-Type 映射到 application/x-amz-json-1.1
content-type application/json 的 body 映射模板如下:
#set($event = "{
""rows"": ""$input.json('$')"",
""uuid"": ""$input.params('uuid')"",
}")
{
"StreamName": "$input.params('stream-name')",
"Data": "$util.base64Encode($event)",
"PartitionKey": "$input.params('$partition-key')"
}
发送发布请求时出现内部服务器错误。
【问题讨论】:
标签: json amazon-web-services aws-api-gateway amazon-kinesis