Aws\S3\S3MultiRegionClient::createPresignedRequest PHP Method

createPresignedRequest() public method

public createPresignedRequest ( Aws\CommandInterface $command, $expires )
$command Aws\CommandInterface
    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);
    }