code: public BootstrapActionConfig newRunIf(String condition, BootstrapActionConfig config) {
      List<String> args = config.getScriptBootstrapAction().getArgs();
      args.add(0, condition);
      args.add(1, config.getScriptBootstrapAction().getPath());
  
      return new BootstrapActionConfig()
        .withName("Run If, " + config.getName())
        .withScriptBootstrapAction(new ScriptBootstrapActionConfig()
          .withPath("s3://" + bucket + "/bootstrap-actions/run-if")
          .withArgs(args));
    }
docs: Create a new run-if bootstrap action which lets you conditionally run bootstrap actions.
  @param condition The condition to evaluate, if true the bootstrap action executes.
  @param config The bootstrap action to execute in case of successful evaluation.
  @return A BootstrapActionConfig to be provided when running a job flow.