from os import environ
from loader import Loader
import actions

LOADER = Loader()


def lambda_handler(event, context):
    try:
        response = LOADER.personalize_cli.delete_campaign(
            campaignArn=event['campaignArn']
        )
    except Exception as e:
        LOADER.logger.error(f'Error deleting campaign: {e}')
        raise e

from os import environ
from loader import Loader
import actions

LOADER = Loader()


def lambda_handler(event, context):
    try:
        response = LOADER.personalize_cli.delete_campaign(
            campaignArn=event['campaignArn']
        )
    except Exception as e:
        LOADER.logger.error(f'Error deleting campaign: {e}')
        raise e
