INNER CODE UNIT · Python

__init__

mlevit/aws-auto-cleanup · app/src/main.py:45

    def __init__(self, logging):
        self.logging = logging

        # insert default values into settings and allowlist tables
        self.setup_dynamodb()

        # create dictionaries and variables
        self.execution_log = defaultdict(
            lambda: defaultdict(lambda: defaultdict(lambda: defaultdict(list)))
        )
        self.settings = self.get_settings()
        self.allowlist = self.get_allowlist()
        self.dry_run = Helper.get_setting(self.settings, "general.dry_run", True)

    @func_set_timeout(840)
    def run_cleanup(self):
        if self.dry_run:
            self.logging.info("Auto Cleanup started in DRY RUN mode.")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…