I know how to expire objects in an S3 bucket using object expiration rules given a certain prefix, however for my purposes, I would like to set the expiry date programmatica
You could split the files into 'folders' based on their rules and apply Prefix Filter.