/** * List the distributions whose origin is the given S3 bucket name. * * @param bucketName the name of the S3 bucket whose distributions will be returned. * @return a list of distributions applied to the given S3 bucket, or an empty list * if there are no such distributions. * @throws CloudFrontServiceException exception */ public Distribution[] listDistributions(String bucketName) throws CloudFrontServiceException { List<Distribution> bucketDistributions = listDistributionsByBucketName(false, bucketName); return bucketDistributions.toArray( new Distribution[bucketDistributions.size()]); }
/** * List the distributions whose origin is the given S3 bucket name. * * @param bucketName the name of the S3 bucket whose distributions will be returned. * @return a list of distributions applied to the given S3 bucket, or an empty list * if there are no such distributions. * @throws CloudFrontServiceException exception */ public Distribution[] listDistributions(String bucketName) throws CloudFrontServiceException { List<Distribution> bucketDistributions = listDistributionsByBucketName(false, bucketName); return bucketDistributions.toArray( new Distribution[bucketDistributions.size()]); }
/** * List the streaming distributions whose origin is the given S3 bucket name. * * @param bucketName the name of the S3 bucket whose distributions will be returned. * @return a list of distributions applied to the given S3 bucket, or an empty list * if there are no such distributions. * @throws CloudFrontServiceException exception */ public StreamingDistribution[] listStreamingDistributions(String bucketName) throws CloudFrontServiceException { List<Distribution> streamingDistributions = listDistributionsByBucketName(true, bucketName); return streamingDistributions.toArray( new StreamingDistribution[streamingDistributions.size()]); }
/** * List the streaming distributions whose origin is the given S3 bucket name. * * @param bucketName the name of the S3 bucket whose distributions will be returned. * @return a list of distributions applied to the given S3 bucket, or an empty list * if there are no such distributions. * @throws CloudFrontServiceException exception */ public StreamingDistribution[] listStreamingDistributions(String bucketName) throws CloudFrontServiceException { List<Distribution> streamingDistributions = listDistributionsByBucketName(true, bucketName); return streamingDistributions.toArray( new StreamingDistribution[streamingDistributions.size()]); }