public function getBucketSubresource($bucketName, $subresource)
{
$xml = '';
$options = array('_subdomain' => (string) $bucketName);
$allowed = S3QueryClient::getAllowedSubResources();
if (!in_array($subresource, $allowed)) {
throw new \InvalidArgumentException(sprintf('Invalid subresource "%s" for the bucket. Allowed list are "%s"', $subresource, join('", "', $allowed)));
}
$response = $this->client->call('GET', $options, '/?' . $subresource);
return $response->getError() === false ? $response : null;
}