code: def create(cls, account_id, resource_id, action, timestamp, metrics):
          
  
          enforcement = Enforcements()
          enforcement.account_id = account_id
          enforcement.resource_id = resource_id
          enforcement.action = action
          enforcement.timestamp = timestamp
          enforcement.metrics = metrics
  
          try:
              db.session.add(enforcement)
  
          except SQLAlchemyError as e:
              logging.error('Could not add enforcement entry to database. {}'.format(e))
docs: Set properties for an enforcement action