public function createPresignedRequest(CommandInterface $command, $expires)
{
if (empty($command['Bucket'])) {
throw new \InvalidArgumentException('The S3\\MultiRegionClient' . ' cannot create presigned requests for commands without a' . ' specified bucket.');
}
/** @var S3ClientInterface $client */
$client = $this->getClientFromPool($this->determineBucketRegion($command['Bucket']));
return $client->createPresignedRequest($client->getCommand($command->getName(), $command->toArray()), $expires);
}