Garret Harp
10/08/2021, 5:53 PMKeys: {
pk: "Charity#something",
sk: "Charity#"
},
Record: { ...fullItem },
Changes: [...whatKeysChanged]
I want an eventbus rule to look at detail.Keys and make sure "pk" starts with "Charity#" and "sk" is equal to "Charity#" but not entirely sure how the eventPattern works for details.Garret Harp
10/08/2021, 5:54 PMeventPattern: {
source: ['softgiving.dynamodb'],
detailType: ['INSERT', 'MODIFY', 'REMOVE'],
detail: {
Keys: {
pk: 'starts with "Charity#"',
sk: 'equals "Charity#"'
}
}
}
Garret Harp
10/08/2021, 5:59 PMFrank