@TaskAction
  public void embedSwagger() throws IOException {
    JsonNode template = inputMapper.readTree(templateFile);

    JsonNode resources = template.get("Resources");
    addApiDefinitionBody(resources);
    addLambdaCodeURI(resources);

    ObjectWriter writer = outputMapper.writer(new DefaultPrettyPrinter());
    outputTemplateFile.getParentFile().mkdirs();
    writer.writeValue(outputTemplateFile, template);
  }
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