from localstack.runtime import hooks
from localstack_ext import config as config_ext
@hooks.on_infra_start(should_load=config_ext.ACTIVATE_PRO)
def add_iam_enforcement_listener():from localstack.aws.handlers import serve_custom_service_request_handlers as A;from localstack_ext.services.iam.policy_engine.handler import IamEnforcementHandler as B;A.handlers.append(B())