in src/pkg/qs_user_gov.py [0:0]
def handler(event, context):
"""
Handler
- Runs QuickSight User Governance
"""
LOGGER.info(f"event: {event}")
account_id = context.invoked_function_arn.split(":")[4]
manifest = get_user_manifest(account_id)
try:
for user in manifest:
apply_user_governance(user)
return SUCCESS_RESPONSE
except Exception as err:
LOGGER.error(traceback.format_exc())
raise Exception(FAILURE_RESPONSE) from err