def get_cloudformation_template(cfn_client, stack_name):
    """
    Returns the template body of a CloudFormation stack.

    """

    response = cfn_client.get_template(StackName=stack_name)
    return response["TemplateBody"]