代码之家  ›  专栏  ›  技术社区  ›  Vivek Sable

如何在AWS API网关上的主体映射模板中在主体中添加新密钥

  •  0
  • Vivek Sable  · 技术社区  · 6 年前

    我是awsapi网关上的API,它触发了AWS的Step函数。

    以下体内映射模板:

    {"input" : "{\"httpMethod\": \"POST\",\"body\": \"$util.escapeJavaScript($util.escapeJavaScript($input.json('$')))\"}","stateMachineArn":"arn:aws:states:us-east-1:xxxxxxxx:stateMachine:TestStartStateMachineForUnmanaged-MnwLb4sqy6uq"}
    

    我想在主体中添加新的键,即。 "account-type": "self account"

    0 回复  |  直到 6 年前
    推荐文章