小编aws*_*est的帖子

使用 AWS Step Functions 将整个 json 插入 Dynamo DB 中的字段

我正在尝试使用 AWS Step Functions 将 Item 放入 DynamoDB 中。

我设法使用简单的字符串字段 (S) 保存 Item,但其中一个字段应该存储整个 JSON 负载。所以应该是地图(M)。

但我的有效负载还包括嵌套地图。

JSON 示例:

  {
  "firstMap": {
     "field": "something",
  },
  "secondMap": {
    "nestedMap": {
       "field": "something",
    },
    "anotherNestedMap": [
      {
        "field": "something",
        "oneMoreNestedMap": {
          "andOneMore": {
            "field": "something",
          },
          "arrayComesHere": [
            {
              "andAgainNestedMap": {
                "field": "something",
              },
              "andAgain": [
                {
                  "field": "something",
                  "alsoNestedArray": [
                    {
                       "field": "something"
                    }
                  ]
                }
              ]
            }
          ]
        },
        "letItBeFinalOne": [
          {
            "field": "something"
          }
        ]
      }
    ]
...
Run Code Online (Sandbox Code Playgroud)

我想做的就是说,嘿 Step …

json amazon-web-services amazon-dynamodb aws-step-functions

4
推荐指数
1
解决办法
1907
查看次数