code: protected DistributionSummary getExistingDistribution(String bucketName) {
  
          List<DistributionSummary> dists = getAllExistingWebDistributions(bucketName);
          if (dists.isEmpty()) {
              return null;
          } else {
              return dists.get(0);
          }
      }
docs: Returns the first streaming web distribution associated with a given bucket