Slide 14
Slide 14 text
Event filter expressions (SAM template)
Events:
DynamoDBTable:
Type: DynamoDB
Properties:
Stream:
!GetAtt DynamoDBTable.StreamArn
StartingPosition: TRIM_HORIZON
BatchSize: 100
FilterCriteria:
Filters:
# Filter pattern to check only inserted action on DynamoDB with the item_type being THREAT
- Pattern: '{"eventName": ["INSERT"],"dynamodb":{"NewImage":{"item_type":{"S": [ "THREAT" ]}}}}'
# Filter pattern to check only deleted action on DynamoDB
- Pattern: '{"eventName": ["REMOVE"]}'