import json


def get_user_parameters(job):
    """
    Returns the user parameters that were defined in CodePipeline.

    """

    return json.loads(
        job["data"]["actionConfiguration"]["configuration"]["UserParameters"]
    )