private void addApiDefinitionBody(JsonNode resources) throws IOException {
    for (Entry<String, File> api : apis.entrySet()) {
      JsonNode swagger = inputMapper.readTree(api.getValue());

      ObjectNode properties = (ObjectNode) resources.get(api.getKey()).get("Properties");
      properties.set("DefinitionBody", swagger);
    }
  }
Register an API Gateway API that should have its DefinitionBody property updated in the
Cloudformation template

@param ref the Cloudformation Ref of the API to update
@param swagger the file containing the swagger definition of the API
buildSrc/src/main/java/com/amazonaws/blox/tasks/PostProcessCloudformation.java