gpt4 book ai didi

amazon-web-services - 如何通过 API Gateway 调用 AWS Step Functions?

转载 作者:行者123 更新时间:2023-12-04 13:26:07 25 4
gpt4 key购买 nike

关闭。这个问题需要更多focused .它目前不接受答案。












想改善这个问题吗?更新问题,使其仅关注一个问题 editing this post .

4年前关闭。




Improve this question




我想知道如何让 API Gateway 调用 Step Function 并执行它。

最佳答案

API 网关添加了对 的支持阶跃函数 目前。现在,您可以通过 API Gateway 控制台创建 AWS 服务集成。

  • 集成类型: AWS 服务
  • AWS 服务:阶跃函数
  • HTTP 方法:发布
  • 操作类型:使用操作名称
  • 操作:开始执行
  • 执行角色:角色开始执行
  • 标题:

    X-Amz-Target -> 'AWSStepFunctions.StartExecution'
    内容类型 -> 'application/x-amz-json-1.0'
  • 正文映射模板/请求有效负载:

    {
    “输入”:“字符串”,
    "name": "字符串",
    “stateMachineArn”:“字符串”
    }
  • 关于amazon-web-services - 如何通过 API Gateway 调用 AWS Step Functions?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41188584/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com