amazon-web-services - AWS API Gateway Body Mapping 的补丁路径/requestTemplates/无效

标签 amazon-web-services

我正在关注 this tutorial通过 AWS API Gateway 为 dynamoDB 设置 API。

按照说明,是body map到这段代码

{
  "TableName": "favorite_movies",
  "Key": {
    "name": {
      "S": "$input.params('name')"
    }
  }
}

但是,我收到此错误(无效的补丁路径 /requestTemplates/) 请有人帮助我。 提前致谢。

screenshot

最佳答案

内容类型需要填写为“application/json”,对应指定的模型。

理想情况下,指定模型名称就足够了,因为它也具有内容类型。

关于amazon-web-services - AWS API Gateway Body Mapping 的补丁路径/requestTemplates/无效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59351584/

相关文章:

amazon-web-services - 从 Docker 容器中获取 AWS 实例元数据?

amazon-web-services - 无效参数异常 : Enabling or disabling Dynamic Partitioning is not supported at the moment

amazon-web-services - 从 docker 容器内部连接到主机的辅助 IP

amazon-web-services - 提供的证书不是有效的自签名证书。请提供有效的自签名证书或证书链

amazon-web-services - 如果 DynamoDB 全局表不存在,则使用 Cloudformation 创建该表

javascript - 使用 JavaScript 进行 AWS DynamoDB 事务 : One or more parameter values were invalid

amazon-web-services - 具有策略分配的 terraform aws iam 角色

amazon-web-services - 如何让 kubectl 登录 AWS EKS 集群?

amazon-web-services - 无法执行 AWS Pipeline 错误 : "An error occurred (AccessDenied) when calling the PutObject operation: Access Denied"

c# - 无法使用 Mapbox "Create an Upload"api 上传数据文件