ResourceInstance createActionDefinitionResource(String actionName) {
    return createResource(Resource.Type.Action,
        Collections.singletonMap(Resource.Type.Action, actionName));
  }
Create a action definition resource instance.

@param actionName action name

@return a action definition resource instance
ambari-server/src/main/java/org/apache/ambari/server/api/services/ActionService.java