def create_app_health_policy(warning_as_error, unhealthy_app,
    default_svc_health_map, svc_type_health_map):
    """Create an application health policy description"""
    from sfctl.custom_health import parse_service_health_policy, parse_service_health_policy_map
    from azure.servicefabric.models import ApplicationHealthPolicy
    default_svc_type_policy = parse_service_health_policy(
        default_svc_health_map)
    svc_type_policy = parse_service_health_policy_map(svc_type_health_map)
    return ApplicationHealthPolicy(consider_warning_as_error=
        warning_as_error, max_percent_unhealthy_deployed_applications=
        unhealthy_app, default_service_type_health_policy=
        default_svc_type_policy, service_type_health_policy_map=svc_type_policy
        )
