小编Ale*_*lex的帖子

如何设置 Step 函数的 Headers.$ 输入来调用 api 网关?

当我使用step函数调用API网关时,我填写了“Headers.$”:“$.input.headers”,但是当我测试它时,它could not be used to start the Task: [The value of the field 'Headers' has an invalid format]每次都会给我,我尝试了这个

"input": {
        "headers": {
            "Authorization": "abcd",
            "Content-Type": "application-json"
        }
    }
Run Code Online (Sandbox Code Playgroud)

它不起作用,任何人都可以给我这个标题字段的示例吗?

万分感激!

amazon-web-services aws-step-functions

2
推荐指数
1
解决办法
2189
查看次数