add set as expired

This commit is contained in:
2025-08-22 18:04:21 -03:00
parent 45f444a222
commit 4acf85fd85
17 changed files with 87 additions and 53 deletions

View File

@@ -22,11 +22,10 @@ def lambda_handler(event: EventBridgeEvent, context: LambdaContext) -> bool:
subscription = enrollment_layer.collection.get_items(
TransactKey(new_image['id'])
+ SortKey('METADATA#SUBSCRIPTION_COVERED')
+ SortKey('author')
+ SortKey('tenant')
# Post-migration: uncommet the following lines
# + SortKey('CREATED_BY')
# + SortKey('ORG')
+ SortKey('author', rename_key='CREATED_BY')
+ SortKey('tenant', rename_key='ORG')
+ SortKey('CREATED_BY')
+ SortKey('ORG')
)
with enrollment_layer.transact_writer() as transact_writer: