def get_policy_name_from_file(file_name):
    """
    Inline policy name will have the same name of file stored in the bucket.
    Remove file extension to build the policy name.
    """
    return file_name.split('/')[-1].split('.')[0]