code: public List<S3ObjectSummary> listS3Bucket(String bucketName,
        String prefix) {
  
      final AmazonS3 amazonS3 = getS3Client();
  
      final ListObjectsRequest listObjectsRequest = new ListObjectsRequest()
          .withBucketName(bucketName)
          .withPrefix(prefix);
  
      final ObjectListing objectListing = amazonS3.listObjects(listObjectsRequest);
      LOGGER.info("S3 bucket listing for bucket: " + bucketName + " with prefix: " + prefix + " is: " + objectListing);
  
      return objectListing.getObjectSummaries();
    }
docs: *
  Get list of S3 objects within a S3 bucket qualified by prefix path
  
  @param bucketName S3 bucket name
  @param prefix S3 prefix to object
  @return List of {@link S3ObjectSummary} objects within the bucket qualified by prefix path