private ResourceInstance createViewResource(String viewName) {
    return createResource(Resource.Type.View,
        Collections.singletonMap(Resource.Type.View, viewName));
  }
Create a view resource.

@param viewName view name

@return a view resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/views/ViewService.java