github.com/Foodji/aws-lambda-go@v1.20.2/events/testdata/dynamodb-event.json (about)

     1  {
     2    "Records": [
     3      {
     4        "eventID": "f07f8ca4b0b26cb9c4e5e77e69f274ee",
     5        "eventName": "INSERT",
     6        "eventVersion": "1.1",
     7        "eventSource": "aws:dynamodb",
     8        "awsRegion": "us-east-1",
     9        "userIdentity":{
    10          "type":"Service",
    11          "principalId":"dynamodb.amazonaws.com"
    12        },
    13        "dynamodb": {
    14          "ApproximateCreationDateTime": 1480642020,
    15          "Keys": {
    16            "val": {
    17              "S": "data"
    18            },
    19            "key": {
    20              "S": "binary"
    21            }
    22          },
    23          "NewImage": {
    24            "val": {
    25              "S": "data"
    26            },
    27            "asdf1": {
    28              "B": "AAEqQQ=="
    29            },
    30            "asdf2": {
    31              "BS": [
    32                "AAEqQQ==",
    33                "QSoBAA=="
    34              ]
    35            },
    36            "key": {
    37              "S": "binary"
    38            }
    39          },
    40          "SequenceNumber": "1405400000000002063282832",
    41          "SizeBytes": 54,
    42          "StreamViewType": "NEW_AND_OLD_IMAGES"
    43        },
    44        "eventSourceARN": "arn:aws:dynamodb:us-east-1:123456789012:table/Example-Table/stream/2016-12-01T00:00:00.000"
    45      },
    46      {
    47        "eventID": "f07f8ca4b0b26cb9c4e5e77e42f274ee",
    48        "eventName": "INSERT",
    49        "eventVersion": "1.1",
    50        "eventSource": "aws:dynamodb",
    51        "awsRegion": "us-east-1",
    52        "dynamodb": {
    53          "ApproximateCreationDateTime": 1480642020,
    54          "Keys": {
    55            "val": {
    56              "S": "data"
    57            },
    58            "key": {
    59              "S": "binary"
    60            }
    61          },
    62          "NewImage": {
    63            "val": {
    64              "S": "data"
    65            },
    66            "asdf1": {
    67              "B": "AAEqQQ=="
    68            },
    69            "b2": {
    70              "B": "test"
    71            },
    72            "asdf2": {
    73              "BS": [
    74                "AAEqQQ==",
    75                "QSoBAA==",
    76                "AAEqQQ=="
    77              ]
    78            },
    79            "key": {
    80              "S": "binary"
    81            },
    82            "Binary": {
    83              "B": "AAEqQQ=="
    84            },
    85            "Boolean": {
    86              "BOOL": true
    87            },
    88            "BinarySet": {
    89              "BS": [
    90                "AAEqQQ==",
    91                "AAEqQQ=="
    92              ]
    93            },
    94            "List": {
    95              "L": [
    96                {
    97                  "S": "Cookies"
    98                },
    99                {
   100                  "S": "Coffee"
   101                },
   102                {
   103                  "N": "3.14159"
   104                }
   105              ]
   106            },
   107            "Map": {
   108              "M": {
   109                "Name": {
   110                  "S": "Joe"
   111                },
   112                "Age": {
   113                  "N": "35"
   114                }
   115              }
   116            },
   117            "FloatNumber": {
   118              "N": "123.45"
   119            },
   120            "IntegerNumber": {
   121              "N": "123"
   122            },
   123            "NumberSet": {
   124              "NS": [
   125                "1234",
   126                "567.8"
   127              ]
   128            },
   129            "Null": {
   130              "NULL": true
   131            },
   132            "String": {
   133              "S": "Hello"
   134            },
   135            "StringSet": {
   136              "SS": [
   137                "Giraffe",
   138                "Zebra"
   139              ]
   140            },
   141            "EmptyStringSet": {
   142              "SS": []
   143            }
   144          },
   145          "SequenceNumber": "1405400000000002063282832",
   146          "SizeBytes": 54,
   147          "StreamViewType": "NEW_AND_OLD_IMAGES"
   148        },
   149        "eventSourceARN": "arn:aws:dynamodb:us-east-1:123456789012:table/Example-Table/stream/2016-12-01T00:00:00.000"
   150      }
   151    ]
   152  }