add purge to canceled and failed enrollment
This commit is contained in:
@@ -326,6 +326,27 @@ Resources:
|
||||
sk: ['0']
|
||||
status: [PENDING]
|
||||
|
||||
EventPurgeRemindersFunction:
|
||||
Type: AWS::Serverless::Function
|
||||
Properties:
|
||||
Handler: events.purge_reminders.lambda_handler
|
||||
LoggingConfig:
|
||||
LogGroup: !Ref EventLog
|
||||
Policies:
|
||||
- DynamoDBCrudPolicy:
|
||||
TableName: !Ref EnrollmentTable
|
||||
Events:
|
||||
DynamoDBEvent:
|
||||
Type: EventBridgeRule
|
||||
Properties:
|
||||
Pattern:
|
||||
resources: [!Ref EnrollmentTable]
|
||||
detail-type: [MODIFY]
|
||||
detail:
|
||||
new_image:
|
||||
sk: ['0']
|
||||
status: [CANCELED, FAILED]
|
||||
|
||||
# Deprecated
|
||||
EventSetAccessExpiredFunction:
|
||||
Type: AWS::Serverless::Function
|
||||
|
||||
Reference in New Issue
Block a user