what is wrong in this prefix comparator dynamodb stream fillter pattern?
0
Hi, I try to filter dynamodb stream events with the following pattern:
"MaximumRetryAttempts": 1,
"FilterCriteria": {
"Filters": [
{
"Pattern": "{\"eventName\":[\"INSERT\",\"MODIFY\",\"REMOVE\"],\"dynamodb\":{\"NewImage\":{\"PK\":{\"S\":[{\"prefix\":[\"BOOK\"]}]}}}}"
}
]
However, Cloudformation throws an error saying it is invalid. I can not see the error here? What am I doing wrong?
asked a month ago24 views
1 Answers
0
Answering my own question for someone who stumbles upon this. Apparently, for the prefix comparator, you do not need extra brackets. The following is correct:
"Filters": [
{
"Pattern": "{\"eventName\":[\"INSERT\",\"MODIFY\",\"REMOVE\"],\"dynamodb\":{\"NewImage\":{\"PK\":{\"S\":{\"prefix\":[\"BOOK\"]}}}}}"
}
]
answered a month ago
Relevant questions
What is the best practice to archive items to S3 using dynamoDB TTL?
Accepted Answerasked 3 months agowhat is wrong in this prefix comparator dynamodb stream fillter pattern?
asked a month agoHow to create dynamo db stream event filter for a field from array of objects?
asked a month agoEnable dynamodb stream for an existing dynamodb table
asked 2 months agoDynamoDB Stream filters comparing values in NewImage and OldImage
Accepted Answerasked 4 months agoDynamoDB streams filter with nested fields not working
asked 5 months agoUnable to query dynamodb table in Athena using DynamoDB Connector
Accepted Answerasked 2 years agoDynamoDB replication cross region
Accepted Answerasked 4 years agoDynamoDB Global tables do not support stream filtering.
Accepted Answerasked 6 months agoDynamoDB + Elasticsearch: is that a good architecture pattern?
asked 3 years ago