docs: public static String buildCustomPolicy(String resourcePath,
              Date expiresOn, Date activeFrom, String ipAddress) {
          return "{\"Statement\": [{"
                  + "\"Resource\":\""
                  + resourcePath
                  + "\""
                  + ",\"Condition\":{"
                  + "\"DateLessThan\":{\"AWS:EpochTime\":"
                  + MILLISECONDS.toSeconds(expiresOn.getTime())
                  + "}"
                  + (ipAddress == null
                    ? ""
                    : ",\"IpAddress\":{\"AWS:SourceIp\":\""
                      + ipAddress + "\"}"
                    )
                  + (activeFrom == null
                     ? ""
                     : ",\"DateGreaterThan\":{\"AWS:EpochTime\":"
                       + MILLISECONDS.toSeconds(activeFrom.getTime()) + "}"
                    )
                  + "}}]}";
      }