class AwsRDSPlatform extends Platform {

    boolean snapshotIsOlderThan (String dbSnapshotName, int olderThanMinutes) {
        Matcher m = CalendarUtils.datePattern.matcher(dbSnapshotName);
        if (m.find()) {
            String dateSection = m.group(1);
            Instant snapshotTime = AwsRDSUtils.getInstantFromNameSegment(dateSection);
            log.debug("Calculated snapshot {} has a timestamp of {}", v(DataDogConstants.RDS_INSTANCE_SNAPSHOT, dbSnapshotName), v("snapshotTime", snapshotTime));
            return snapshotTime.plus(Duration.ofMinutes(olderThanMinutes)).isBefore(Instant.now());
        }
        log.warn("Could not extract a timestamp from {}.", v(DataDogConstants.RDS_INSTANCE_SNAPSHOT, dbSnapshotName));
        return false;
    }

    @Autowired public  AwsRDSPlatform();
      AwsRDSPlatform(AmazonRDS amazonRDS, AmazonEC2 amazonEC2);

}