def handler()

in src/pkg/get_okta_info.py [0:0]


def handler(event, _):
    """
    - Get User Info from Okta via API
    - Build User Governance Manifest File
    - Upload the Manifest to S3
    """

    LOGGER.info(f"event: {event}")

    try:
        users = get_users()
        manifest = build_user_governance_manifest(users)
        upload_to_s3(manifest)
        return SUCCESS_RESPONSE

    except Exception as err:
        LOGGER.error(traceback.format_exc())
        raise Exception(FAILURE_RESPONSE) from err