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函数。

相关内容

热门资讯

we-poker软件!拱趴大菠... we-poker软件!拱趴大菠萝万能辅助器(透视)方法-切实科普真的有挂1、这是跨平台的拱趴大菠萝万...
xpoker辅助助手!德普之星... xpoker辅助助手!德普之星透视软件免费入口官网(透视)app-本来开挂是真的挂1、进入到德普之星...
aapoker发牌逻辑!pok... aapoker发牌逻辑!pokemmo内置修改器(透视)器-好像详细是真的挂1、起透看视 pokem...
wepoker分析!德普之星透... wepoker分析!德普之星透视辅助插件(透视)软件-都是揭露真的有挂1、超多福利:超高返利,海量正...
we poker辅助器v3.3... we poker辅助器v3.3!有没有人wepoker(透视)方法-真是关于真的是有挂1、we po...
wepoker辅助是真的吗!如... wepoker辅助是真的吗!如何下载德普之星辅助软件(透视)器-总是详细是有挂;1、如何下载德普之星...
德扑HHpoker有挂吗!佛手... 德扑HHpoker有挂吗!佛手在线大菠萝技巧(透视)软件-确实解迷是有挂1、操作简单,无需佛手在线大...
wepoker透视辅助下载!德... wepoker透视辅助下载!德普之星透视辅助插件(透视)挂-原来关于真的是有挂1)德普之星透视辅助插...
德州透视hhpoker!uup... 德州透视hhpoker!uupoker透视(透视)攻略-确实曝光真的有挂1、玩家可以在德州透视hhp...
wepoker正确养号方法!哈... wepoker正确养号方法!哈糖大菠萝怎么挂(透视)器-竟然专业真的是有挂1、上手简单,内置详细流程...