update events

This commit is contained in:
2025-09-18 13:45:42 -03:00
parent db63dfa64d
commit a83d4b56aa
18 changed files with 109 additions and 181 deletions

View File

@@ -307,12 +307,10 @@ Resources:
keys:
sk: [SCHEDULE#REMINDER_CERT_EXPIRATION_BEFORE_30_DAYS]
# If there is no certificate and the access period has ended,
# the enrollment will be marked as expired
EventSetAsExpiredFunction:
EventSetAccessExpiredFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.set_as_expired.lambda_handler
Handler: events.set_access_expired.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
@@ -327,13 +325,12 @@ Resources:
detail-type: [EXPIRE]
detail:
keys:
sk: [SCHEDULE#SET_AS_EXPIRED]
sk: [SCHEDULE#SET_ACCESS_EXPIRED, SCHEDULE#SET_AS_EXPIRED]
# After the certificate expires, the enrollment will be marked as archived
EventSetAsArchivedFunction:
EventSetCertExpiredFunction:
Type: AWS::Serverless::Function
Properties:
Handler: events.set_as_archived.lambda_handler
Handler: events.set_cert_expired.lambda_handler
LoggingConfig:
LogGroup: !Ref EventLog
Policies:
@@ -348,7 +345,7 @@ Resources:
detail-type: [EXPIRE]
detail:
keys:
sk: [SCHEDULE#SET_AS_ARCHIVED]
sk: [SCHEDULE#SET_CERT_EXPIRED, SCHEDULE#SET_AS_ARCHIVED]
EventScheduleRemindersFunction:
Type: AWS::Serverless::Function