AWSStepFunctions:忽略调用带有URL参数的APIGateway端点。
创始人
2024-09-27 14:30:40
0
  1. 在State Machine定义中定义正确的输入格式:
{
  "comment": "Calling an API Gateway endpoint with URL parameter",
  "StartAt": "CallAPIGateway",
  "States": {
    "CallAPIGateway": {
      "Type": "Task",
      "Resource": "arn:aws:states:::apigateway:invoke",
      "Parameters": {
        "RestApiId": "api-id",
        "Path": "/path/{parameter}",
        "Method": "GET",
        "Stage": "stage",
        "QueryStringParameters": {
          "queryParam1": "value1",
          "queryParam2": "value2"
        },
        "PathParameters": {
          "parameter": "value"
        },
        "Headers": {
          "header1": "value1",
          "header2": "value2"
        }
      },
      "ResultPath": "$.apiResponse",
      "End": true
    }
  }
}
  1. 在API Gateway集成请求的“Integration Request”设置中,添加正确的参数映射,如下所示:
{
    "method.request.path.parameter": "method.request.path.proxy"
}

这会将Input中的{parameter}参数映射到API Gateway集成请求中的{proxy}参数,使其能够被正确地传递到目标Lambda函数。

相关内容

热门资讯

透视解迷!wepoker免费透... 透视解迷!wepoker免费透视(透视)wpk透视是真的吗,教程方针(有挂技巧)-哔哩哔哩1、全新机...
透视总结!hh poker透视... 透视总结!hh poker透视器下载(透视)fishpoker透视,教程演示(有挂神器)-哔哩哔哩1...
透视必备!wepoker祈福有... 透视必备!wepoker祈福有用吗(透视)wpk模拟器,教程方针(有挂神器)-哔哩哔哩1)wepok...
透视有挂!wepoker如何设... 透视有挂!wepoker如何设置透视(透视)wepoker可以开透视吗,教程讲义(有挂技术)-哔哩哔...
透视总结!wepoker免费辅... 透视总结!wepoker免费辅助器(透视)德普之星辅助工具如何打开,教程要领(有挂猫腻)-哔哩哔哩小...
透视解密!wepoker如何设... 透视解密!wepoker如何设置透视(透视)佛手在线大菠萝为什么都输,教程指南书(有人有挂)-哔哩哔...
透视开挂!wepoker有透视... 透视开挂!wepoker有透视底牌吗(透视)pokemmo脚本手机版,教程法子(有挂存在)-哔哩哔哩...
透视解密!wepoker有插件... 透视解密!wepoker有插件吗(透视)hhpoker破解工具,教程法门(有挂教学)-哔哩哔哩;1、...
透视曝光!pokemmo辅助器... 透视曝光!pokemmo辅助器脚本下载(透视)wepoker私人局怎么玩,教程模板(真的有挂)-哔哩...
透视关于!wepoker底牌透... 透视关于!wepoker底牌透视(透视)wepoker手机版辅助,教程课程(的确有挂)-哔哩哔哩运w...