{
"version": "2017-02-28",
"operation": "PutItem",
"key": {
"id": $util.dynamodb.toDynamoDBJson($util.autoId()),
"createdDate":$core_v2_utility.CurrentDate
},
"attributeValues": $util.dynamodb.toMapValuesJson($ctx.args.input),
"condition": {
"expression": "attribute_not_exists(#id)",
"expressionNames": {
"#id": "id",
"#createdDate":"createdDate",
},
},
}
I have been trying to add a createDate into DynamoDB using VTL.I am finding error with $core_v2_utility.CurrentDate